-
Notifications
You must be signed in to change notification settings - Fork 452
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
update ShouldSample's parent parameter to be Context #368
Conversation
Codecov Report
@@ Coverage Diff @@
## master #368 +/- ##
==========================================
+ Coverage 53.90% 53.92% +0.02%
==========================================
Files 71 71
Lines 6074 6081 +7
==========================================
+ Hits 3274 3279 +5
- Misses 2800 2802 +2
Continue to review full report at Codecov.
|
3fdf975
to
a1182f1
Compare
a1182f1
to
b52c684
Compare
So looking further into the discussion in open-telemetry/opentelemetry-specification#881, it looks like the intent may be to have access to the parent span itself from the context. May have to think about this more as currently |
I think it would be wired to build a |
@TommyCpp yeah that seems similar to what we currently have right? Not sure the best way to apply the spec change if they do want to have access to full spans, also an option to simply not conform to the spec for this language. |
I think at API level, passing But for SDK I guess we are only use the |
Sorry, personal life is a bit busy at the moment. I don't manage to do as much on the project. I hope that changes in a week or two. On topic: I think you're right. The purpose of this change seems to be to have the entire parent span available. It sounds like this requires additional changes anyway, like always accepting a I didn't yet think about if it's feasible to implement these changes, though. So I'm okay with going in another direction, too. |
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.
I don't think we need to change API even if we want to do a subsequent PR. So I guess we can merge it as it is.
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.
I think this can be merged with one small adjustment below, even if the intention of the spec is not followed, then as @TommyCpp mentioned it will at least not be a future breaking change. The performance changes look negligible from the trace benches so no real downside.
Thanks for the review and feedback. I'll take a look wrap this up come the weekend. |
b52c684
to
c9fa6a3
Compare
c9fa6a3
to
65c7c75
Compare
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.
Looks good, thanks! we can work on the best ways of getting access to what is intended in the spec in subsequent PRs
Resolves #290