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 shouldTrace decision based on sampling decision from edge #542

Merged
merged 12 commits into from
Sep 19, 2023

Conversation

Jeymisson
Copy link
Contributor

@Jeymisson Jeymisson commented Sep 1, 2023

What is the purpose of this pull request?

This is complimentary to the previous PR: #541

Jaeger client tracer.extract will always return a rootSpan context, the Sampling decision is inside this context, as we can see in it's code implementation, https://github.com/jaegertracing/jaeger-client-node/blob/29365a4475285423490813187ea48136b5135167/src/span_context.js#L186.

Example of tagged trace through header: jaeger-debug-id: trace-test-sampling
Screenshot 2023-09-07 at 18 14 04

What problem is this solving?

How should this be manually tested?

Screenshots or example usage

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires change to documentation, which has been updated accordingly.

Copy link
Contributor

@arturpimentel arturpimentel left a comment

Choose a reason for hiding this comment

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

Looks like we had a lot of nullchecks to do haha. It LGTM if we can reproduce the conditions for the errors we had last time

src/service/tracing/tracingMiddlewares.ts Show resolved Hide resolved
@Jeymisson Jeymisson merged commit a5066fa into master Sep 19, 2023
3 checks passed
@Jeymisson Jeymisson deleted the fix/tracing-sampling-edge branch September 19, 2023 20:02
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.

2 participants