-
Notifications
You must be signed in to change notification settings - Fork 21
Bump OpenTracing to 0.32.0 #14
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
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
|
Once merged I will release it as 0.3.0 |
objectiser
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.
LGTM - just the one issue.
| new TracedRunnable(runnable, tracer)); | ||
| Span toActivate = span != null ? span : tracer.activeSpan(); | ||
| return delegate.submit(toActivate == null ? runnable : | ||
| new TracedRunnable(runnable, tracer), toActivate); |
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.
The toActivate should be in the TracedRunnable parameters I believe?
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.
good catch!
sjoerdtalsma
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.
Aside from the naming comment, functionally this looks good!
| } | ||
|
|
||
| Scope createScope(String operationName) { | ||
| Span createSpan(String operationName) { |
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.
Nit: The method name does not indicate that there may not be a span created (which in cases with active spans would actually be the norm).
The name should make it feel natural that null gets returned and in which situations. Something like createNewSpanWhenNoActiveSpanExists() may be a bit too verbose, but I hope you get my point.
This rename may be a good time to think of a better 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.
thanks @sjoerdtalsma I will leave it as it was. The method also takes into account an internal parameter whether to create a span or not.
Signed-off-by: Pavol Loffay ploffay@redhat.com