-
Notifications
You must be signed in to change notification settings - Fork 571
Make PropagationContext hold baggage instead of dynamic_sampling_context #5156
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
Conversation
| span_id=None, # type: Optional[str] | ||
| parent_span_id=None, # type: Optional[str] | ||
| parent_sampled=None, # type: Optional[bool] | ||
| dynamic_sampling_context=None, # type: Optional[Dict[str, str]] |
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'm not removing the constructor parameter because that would be technically breaking but it does nothing now.
@sentrivana if we consider this class purely internal, I can also remove, wdyt?
Also, we never call this constructor with any arguments ourselves.
EDIT: Ignore, added backwards compat.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5156 +/- ##
==========================================
- Coverage 84.02% 83.98% -0.04%
==========================================
Files 180 180
Lines 18223 18226 +3
Branches 3233 3233
==========================================
- Hits 15311 15307 -4
- Misses 1922 1929 +7
Partials 990 990
|
7a0d9d6 to
8aba654
Compare
sentrivana
left a comment
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.
Much better, ty!
|
Maybe check cursor before merging @sl0thentr0py |
The tracing incoming headers implementation and the Transaction constructor take a `Baggage` object so this was incosistent with how I originally designed the baggage handling and created spaghetti loops between the two concepts.
8aba654 to
f0639ce
Compare
Description
The
Transaction.continue_from_headersand theTransactionconstructor take aBaggageobject so this was inconsistent with how I originally designed the baggage handling and created spaghetti loops between the two concepts.