-
Notifications
You must be signed in to change notification settings - Fork 58
Add Spring web operation name handler #115
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
| }; | ||
|
|
||
| /** | ||
| * Decorator to record details about the handler as log events recorded on the 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.
It does not seem to set any logs on the 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.
thanks, fixed it
| /** | ||
| * Use the Spring RequestMapping's value as the span's operation name. | ||
| */ | ||
| HandlerInterceptorSpanDecorator HANDLER_SPRING_WEB_METHOD_OPERATION_NAME = new HandlerInterceptorSpanDecorator() { |
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.
Could you please rename this to REQUEST_MAPPING_OPERATION_NAME?
pavolloffay
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.
Could you please provide a test to test this operation name?
|
any update on this? |
Do you want to use this feature? |
Yes, Currently I just copied your code in my application. It would be nice if this is made available as part of the library. |
Ok, I tried to finish this feature in this week. @pavolloffay |
…ize the default behaviour (opentracing-contrib#126)
* Finish the span when subscription is canceled * Fix licensing headers
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1. - [Release notes](https://github.com/junit-team/junit4/releases) - [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.12.md) - [Commits](junit-team/junit4@r4.12...r4.13.1) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1.Support Spring RequestMapping
2.HandlerUtils.requestMapping,if use
.path()can not get anything when use@Requestmappingso change to value()