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

fix: maintain jaeger trace b3 sampled state #726

Closed
wants to merge 1 commit into from

Conversation

jtescher
Copy link
Contributor

AlwaysSample() will include spans whose parents were not sampled, which is generally unwanted as it leads to leaf nodes without parents in the telemetry graph. This change updates the jaeger setup to use the otel spec default ParentBased(AlwaysSample()) which fixes this issue.

Checklist

  • I have read the contributing guidelines and signed the CLA.
  • I have referenced an issue containing the design document if my change introduces a new feature.
  • I have read the security policy.
  • I confirm that this pull request does not address a security vulnerability.
    If this pull request addresses a security vulnerability,
    I confirm that I got approval (please contact [email protected]) from the maintainers to push the changes.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added the necessary documentation within the code base (if appropriate).

Further comments

This parent-based behavior was used in this repo via the jaeger-client-go library before the switch to otel as that exporter always defers to parent span sampling decisions.

`AlwaysSample()` will include spans whose parents were not sampled,
which is generally unwanted as it leads to leaf nodes without parents in
the telemetry graph. This change updates the jaeger setup to use the
[otel spec default] `ParentBased(AlwaysSample())` which fixes this
issue.

[otel spec default]: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.25.0/specification/trace/sdk.md#built-in-samplers
@alnr
Copy link
Contributor

alnr commented Mar 28, 2024

Implemented in #765

@alnr alnr closed this Mar 28, 2024
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.

3 participants