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

Add an option to force capture of Jaeger traces #414

Merged
merged 3 commits into from
Jun 3, 2024

Conversation

jquirke
Copy link
Contributor

@jquirke jquirke commented May 31, 2024

Currently, the existing --jaeger flag adds trace, span and parent span information to outgoing RPCs.

However it does not set the sampling bit, which means analysing the trace is impossible if the backend infrastructure is not recording the distributed trace.

This new option --force-jaeger-sample ensures that every originating yab RPC is captured, most useful in the single yab (non benchmarking) case.

It uses constSampler with a decision value of true to ensure the sampling bit in the Jaeger headers. See:
https://www.jaegertracing.io/docs/1.22/client-libraries/#tracespan-identity

Currently, the existing --jaeger flag adds trace, span and parent span
information to outgoing RPCs.

However it does not set the sampling bit, which means analysing the
trace is impossible if the backend infrastructure is not recording
the distributed trace.

This new option --force-jaeger-sample ensures that every originating
yab RPC is captured, most useful in the single yab (non benchmarking)
case.

It uses constSampler with a decision value of true to ensure the
sampling bit in the Jaeger headers. See:
https://www.jaegertracing.io/docs/1.22/client-libraries/#tracespan-identity
Copy link
Contributor

@jronak jronak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks for adding this option

main_test.go Outdated Show resolved Hide resolved
options.go Outdated Show resolved Hide resolved
@AllenLuUber AllenLuUber merged commit a2443f4 into yarpc:dev Jun 3, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants