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

sample before propagation, context switching, and writing #3866

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ZStriker19
Copy link
Contributor

What does this PR do?
This change is so that sampling will be performed as late as possible for a trace. This gives us the greatest amount of information we can have on a trace available (namely tags and resource name) to choose if that trace should be sampled or not.

  1. Modifies the sampler so that it can evaluate right before propagation, forking, or writing occurs.
  2. Samples right before the above scenarios
  3. Removes sampling on span creation.

Motivation:
Bring Ruby tracer in line with other tracers and allow further user fine grain control over sampling.

How to test the change?

Unsure? Have a question? Request a review!

@ivoanjo
Copy link
Member

ivoanjo commented Dec 9, 2024

Hey @ZStriker19 is still relevant?

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

Successfully merging this pull request may close these issues.

2 participants