-
Notifications
You must be signed in to change notification settings - Fork 711
Add SpanKind option at span creation (closes #103). #139
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
Co-Authored-By: Aliaksei Urbanski <[email protected]>
Co-authored-by: Mauricio Vásquez <[email protected]>
@@ -241,6 +241,7 @@ def __init__( | |||
attributes: types.Attributes = None, # TODO | |||
events: typing.Sequence[trace_api.Event] = None, # TODO | |||
links: typing.Sequence[trace_api.Link] = None, # TODO | |||
kind: trace_api.SpanKind = trace_api.SpanKind.INTERNAL, |
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.
Add kind
in the docstring
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.
LGTM
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.
LGTM.
* fix: add exported const of NoopSpan instance * fix: add INVALID_SPAN_CONTEXT as default value * fix: remove instance suffix
Even though the Spec PR isn't merged and there's some discussion going on, I think this will be more useful than not being able to distinguish HTTP client & server at all.