We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 173831c commit 02f478bCopy full SHA for 02f478b
instrumentation/httpx/lib/opentelemetry/instrumentation/httpx/plugin.rb
@@ -41,9 +41,9 @@ def call
41
)
42
43
@span = tracer.start_span(span_name, attributes: attributes, kind: :client)
44
- trace_ctx = OpenTelemetry::Trace.context_with_span(@span)
45
-
46
- OpenTelemetry.propagation.inject(@request.headers, context: trace_ctx)
+ OpenTelemetry::Trace.with_span(@span) do
+ OpenTelemetry.propagation.inject(@request.headers)
+ end
47
rescue StandardError => e
48
OpenTelemetry.handle_error(exception: e)
49
end
0 commit comments