-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Call sampler on local child spans. #1233
Call sampler on local child spans. #1233
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1233 +/- ##
======================================
Coverage 76.7% 76.7%
======================================
Files 130 130
Lines 5832 5828 -4
======================================
Hits 4475 4475
+ Misses 1110 1105 -5
- Partials 247 248 +1
|
@paulosman it looks like maintainer edits are turned off for this PR so I can't merge master into this. If you can do this sync this PR looks ready to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please write tests for this.
Added a test to catch local child spans. Build is fixed, but circle seems stuck - pushed a changed and it won't rebuild. |
* Call sampler on local child spans. * Update CHANGELOG.md * Adding a test for calling the sampler on local child spans * Add clarifying comment to test
Fixes #1228
Previously, the sampler would only be called for the first span in a process. This makes sense for trace level sampling but doesn't allow the sampler to specify attributes to be set on each span, which is important for some implementations. This change removes the guard that limits sampling decisions to local root spans.