-
Notifications
You must be signed in to change notification settings - Fork 684
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
span: implement update_name method #112
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -132,6 +132,16 @@ def add_link(self: 'Span', | |||||||
`SpanContext` passed as argument. | ||||||||
""" | ||||||||
|
||||||||
def update_name(self, name: str) -> None: | ||||||||
"""Updates the `Span` name. | ||||||||
|
||||||||
This will override the name provided via :func:`Tracer.create_span` | ||||||||
or :func:`Tracer.start_span`. | ||||||||
|
||||||||
Upon this update, any sampling behavior based on Span name will depend | ||||||||
on the implementation. | ||||||||
""" | ||||||||
|
||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't it raise a
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't know what is the preferred way to implement interfaces in python without using ABC. So far none of the methods in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ➡️ #66 |
||||||||
|
||||||||
class TraceOptions(int): | ||||||||
"""A bitmask that represents options specific to the trace. | ||||||||
|
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.
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 just took this sentence from the specification:
https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/api-tracing.md#updatename