-
Notifications
You must be signed in to change notification settings - Fork 566
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
[3.x] - Migrate opentracing to Helidon Tracing #7709
[3.x] - Migrate opentracing to Helidon Tracing #7709
Conversation
Signed-off-by: Dmitry Aleksandrov <dmitry.aleksandrov@oracle.com>
} | ||
Tags.COMPONENT.set(span, "dbclient"); | ||
Tags.DB_TYPE.set(span, serviceContext.dbType()); | ||
Tag.COMPONENT.create("dbclient").apply(span); |
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 part Tag.COMPONENT.create("dbclient")
should be done just once and stored in a constant, there is no need to re-create it for every reported span
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.
fixed!
Tags.ERROR.set(span, Boolean.TRUE); | ||
span.log(Map.of("event", "error", | ||
"error.kind", "Exception", | ||
Tag.ERROR.create(Boolean.TRUE).apply(span); |
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.
Please replace the whole thing with span.end(throwable)
- this is all handled already (see OpenTracingSpan.end(Throwable)
)
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.
done
/** | ||
* Tag marking an Error. | ||
*/ | ||
public static final TagSource<Boolean> ERROR = new BooleanTagSource("error"); |
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.
This tag does not belong here and should not be used (see comment above)
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.
removed
Signed-off-by: Dmitry Aleksandrov <dmitry.aleksandrov@oracle.com>
Resolves #7617 for Helidon 3