# typed: false # frozen_string_literal: true class ApplicationController < ActionController::Base include ActionController::MimeResponds include Hephaestus::Responses rescue_from ActionController::UnknownFormat, with: :not_acceptable 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