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
No description provided.
The text was updated successfully, but these errors were encountered:
Suggestion to add a helper function to set deepTracing flag on trace baggage which is propagated across the stack:
deepTracing
baggage
package trace import ( "context" "fmt" "go.opentelemetry.io/otel/baggage" "go.opentelemetry.io/otel/label" ) // AddDeepTracingToContext adds the deepTracing flag to the context as baggage. func AddDeepTracingToContext(ctx context.Context, enableDeepTracing bool) (context.Context, error) { if enableDeepTracing { member, err := label.New("deepTracing", "true") if err != nil { return ctx, fmt.Errorf("failed to create baggage member: %w", err) } return baggage.ContextWithValues(ctx, member), nil } return ctx, nil }
Sorry, something went wrong.
sam-at-luther
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: