lib/aspecto/opentelemetry.rb in aspecto-opentelemetry-0.1.3 vs lib/aspecto/opentelemetry.rb in aspecto-opentelemetry-0.1.4

- old
+ new

@@ -28,10 +28,10 @@ c.logger = Logger.new($stdout, level: configurator.log_level) c.resource = Aspecto::OpenTelemetry::Resource::Detectors::Aspecto.detect c.resource = Aspecto::OpenTelemetry::Resource::Detectors::Deployment.detect c.resource = configurator.config_override_resource # must be last c.use_all "OpenTelemetry::Instrumentation::ActionPack" => { enable_recognize_route: true }, - "OpenTelemetry::Instrumentation::AwsSdk" => { suppress_internal_instrumentation: true } + "OpenTelemetry::Instrumentation::AwsSdk" => { suppress_internal_instrumentation: true, inject_messaging_context: true } otlp_exporter = ::OpenTelemetry::Exporter::OTLP::Exporter.new(endpoint: configurator.otel_exporter_otlp_traces_endpoint, headers: { "Authorization" => configurator.aspecto_auth }) span_processor = ::OpenTelemetry::SDK::Trace::Export::BatchSpanProcessor.new otlp_exporter