Skip to content
New issue

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

feat: only add response header for sampled traces #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

costela
Copy link

@costela costela commented Jul 10, 2024

This changes the behavior of WithTraceIDResponseHeader to only add the header if the trace was actually sampled. A trace-id for a trace that wasn't sent anywhere doesn't seem particularly useful?

This could be considered a breaking change. Alternatively, we could add an extra option to control that, but that seems a bit overkill IMHO?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant