Sha256: 7314c0174d918574167353dd00265a3250785a9fa7bfe655943daad22a72cf02
Contents?: true
Size: 458 Bytes
Versions: 13
Compression:
Stored size: 458 Bytes
Contents
# typed: false # frozen_string_literal: true class ApplicationController < Hephaestus::ApplicationController before_action :set_request_span_context def set_request_span_context end after_action :set_response_span_context def set_response_span_context OpenTelemetry::Trace.current_span.add_attributes({ OpenTelemetry::SemanticConventions::Trace::HTTP_RESPONSE_CONTENT_LENGTH => response.headers["content-length"] || 0, }) end end
Version data entries
13 entries across 13 versions & 1 rubygems