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

Version Path
hephaestus-0.8.16.1 templates/app/controllers/application_controller.rb
hephaestus-0.8.16 templates/app/controllers/application_controller.rb
hephaestus-0.8.15.5 templates/app/controllers/application_controller.rb
hephaestus-0.8.15.4 templates/app/controllers/application_controller.rb
hephaestus-0.8.15.3 templates/app/controllers/application_controller.rb
hephaestus-0.8.15.2 templates/app/controllers/application_controller.rb
hephaestus-0.8.15.1 templates/app/controllers/application_controller.rb
hephaestus-0.8.15 templates/app/controllers/application_controller.rb
hephaestus-0.8.14 templates/app/controllers/application_controller.rb
hephaestus-0.8.13 templates/app/controllers/application_controller.rb
hephaestus-0.8.12.2 templates/app/controllers/application_controller.rb
hephaestus-0.8.12.1 templates/app/controllers/application_controller.rb
hephaestus-0.8.12 templates/app/controllers/application_controller.rb