Customize naming of span for Spring MVC
See original GitHub issueThe span name for a RestController
is the name of the method. It would be nice to be able to configure it to something like ClassName#methodName
. The name would help to distinguish the same method name but from different controllers.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to change the Span Name for a REST Endpoint with ...
You can modify the Span using a SpanHandler : see the docs or inject the tracer, get the current span and change the...
Read more >Using Spring Cloud Sleuth
1. Span Lifecycle with Spring Cloud Sleuth's API · start: When you start a span, its name is assigned and the start timestamp...
Read more >[Custom Tags] Dynamic Variable Name // Spring MVC
I am having a problem with a tag, i try to make a dynamic select tag that is reuseable, the problem is that...
Read more >Add possibility to set the operation name after the span has ...
Span name is always required, but if it needs to be set later you can pass empty string to the builder.
Read more >Custom Instrumentation for Spring Boot | Sentry Documentation
@SentrySpan can be configured with custom description property. If not defined, operation will be resolved from the class, and the method name. @SentrySpan...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@chengchen use code to init strategy as below
@chengchen I got it.We should provided the better
HandlerInterceptorSpanDecorator
as default span name naming strategy. This PR has provided the RequestMapping naming strategy. https://github.com/opentracing-contrib/java-spring-web/pull/115