-
Notifications
You must be signed in to change notification settings - Fork 532
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
chore: Make start_span
fail if unsupported args are provided
#4201
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## potel-base #4201 +/- ##
==============================================
+ Coverage 83.58% 83.61% +0.03%
==============================================
Files 144 144
Lines 14661 14663 +2
Branches 2323 2324 +1
==============================================
+ Hits 12254 12261 +7
+ Misses 1688 1685 -3
+ Partials 719 717 -2
|
Span
interface
Reverted the |
Preparing to remove this in #4201
Span
interfacestart_span
fail if unsupported args are provided
@@ -543,7 +540,7 @@ def timestamp(self): | |||
|
|||
def start_child(self, **kwargs): | |||
# type: (**Any) -> Span | |||
return Span(sampled=self.sampled, parent_span=self, **kwargs) | |||
return Span(parent_span=self, **kwargs) |
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.
Doesn't make sense to propagate the sampled
flag to the children as it's only taken into account for root spans in the sampler (by design)
Make the
Span
constructor actually fail if it gets unsupported arguments, as opposed to silently ignoring them, so that folks get notified early.Deprecating some of these in #4244
Closes #4200