Skip to content
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

Update jaxrs-1.0 to Instrumenter API #3797

Merged
merged 4 commits into from
Aug 10, 2021
Merged

Update jaxrs-1.0 to Instrumenter API #3797

merged 4 commits into from
Aug 10, 2021

Conversation

trask
Copy link
Member

@trask trask commented Aug 8, 2021

No description provided.

Comment on lines -48 to -53
if (serverSpan == null) {
spanName = pathBasedSpanName;
} else {
spanName = SpanNames.fromMethod(target, method);
updateServerSpanName(parentContext, serverSpan, pathBasedSpanName);
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to #3796

I removed this special case of having a different name for the handler span name when there is no server span (now the handler span has the same name whether or not there is a server span, which is consistent with other instrumentations).

Comment on lines 35 to 36
String spanName() {
return SpanNames.fromMethod(target, method);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use CodeSpanNameExtractor?

@trask trask merged commit 19711ca into open-telemetry:main Aug 10, 2021
@trask trask deleted the update-jaxrs-1.0-to-instrumenter-api branch August 10, 2021 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants