We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A common instrumentation pattern for tracing is to return the the TracerProvider from the span held in a context:
TracerProvider
import ( "net/http" "go.opentelemetry.io/otel/trace" ) func handler(w http.ResponseWriter, r *http.Request) { ctx := r.Context() tracer := trace.SpanFromContext(ctx).TracerProvider().Tracer("tracer") ctx, span := tracer.Start(ctx, "span") defer span.End() /* ... */ }
When using the instrumentation of the global trace API, this span will not be recorded.
Describe the solution you'd like
The span created in this above code should be captured by auto-instrumentation. Meaning the nonRecordingSpan should be instrumented.
nonRecordingSpan
The text was updated successfully, but these errors were encountered:
No branches or pull requests
A common instrumentation pattern for tracing is to return the the
TracerProvider
from the span held in a context:When using the instrumentation of the global trace API, this span will not be recorded.
Describe the solution you'd like
The span created in this above code should be captured by auto-instrumentation. Meaning the
nonRecordingSpan
should be instrumented.The text was updated successfully, but these errors were encountered: