skywalking
skywalking copied to clipboard
There's a bit of doubt about the way springMVC gets the operationName
Please answer these questions before submitting your issue.
- Why do you submit this issue?
- [x] Question or discussion
- [ ] Bug
- [ ] Requirement
- [ ] Feature or performance improvement
Question
- What do you want to know?
Like this,
the RequestMappingMethodInterceptor#getRequestURLjust get theRequestMappingannotation'spathorvalueas operationName, I think maybe I need the parsed path as operationName.
Yes. only use path pattern as the operation name, the backend will aggregate and analysis the metrics for the service(based on operation name).
What's the difference, if the operationName use parsed path pattern~
I guess parsed path pattern, you mean the real URL?
- Pattern: ${spring.application.name}/access/page
- URI: application-xxx/access/page
Right? If yes, try to think some one will put userid, accountid in the url, the patten looks like /prod/order/${orderid}. Then you can image what happens... Metrics will be useless..
Thanks, I get it.