-
Notifications
You must be signed in to change notification settings - Fork 375
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
[OpenTracing] Tracer start_span and start_active_span implementation #490
Conversation
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
ignore_active_scope: ignore_active_scope | ||
) | ||
|
||
scope_manager.activate(span, finish_on_close: finish_on_close).tap do |scope| |
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.
👍
# References#CHILD_OF reference to the ScopeManager#active. | ||
# @return [Span] the newly-started Span instance, which has not been | ||
# automatically registered via the ScopeManager | ||
def start_span(operation_name, |
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.
Implementation and tests both look good to me 👍
Thanks for the reviews guys. Think I'm going to add a few more tests to verify basic features (like tags, etc.) |
277294b
to
45ab187
Compare
c7f386c
to
b1028be
Compare
b1028be
to
ca4a379
Compare
Found a small bug where the |
…490) * Fixed: ThreadLocalScopeManager not passing finish_on_close to scope. * Added: Implementation for OpenTracer::Tracer * Added: OpenTracing::Tracer integration specs.
…490) * Fixed: ThreadLocalScopeManager not passing finish_on_close to scope. * Added: Implementation for OpenTracer::Tracer * Added: OpenTracing::Tracer integration specs.
…490) * Fixed: ThreadLocalScopeManager not passing finish_on_close to scope. * Added: Implementation for OpenTracer::Tracer * Added: OpenTracing::Tracer integration specs.
…490) * Fixed: ThreadLocalScopeManager not passing finish_on_close to scope. * Added: Implementation for OpenTracer::Tracer * Added: OpenTracing::Tracer integration specs.
This pull request uses the other components from Datadog::OpenTrace to implement the
start_span
andstart_active_span
functions.It does not implement the
inject
orextract
functions, which will come in a separate pull request.