Skip to content

TomcatInvokeInterceptor doesn't include HTTP method in endpoint name #7113

@BFergerson

Description

@BFergerson

Why do you submit this issue?

  • Feature or performance improvement

Requirement or improvement

You can use "Group Parameterized Endpoints" to collapse endpoint /users/10 and /users/100 but it doesn't differentiate between HTTP method types so doing a {GET}/users/10 looks the same as {DELETE}/users/10.

I've created a patch that adds the HTTP method type before the URL but I'm curious if anyone knows whether the dynamic endpoint can also be determined. That's the /users/{id} part that's defined in @RequestMapping. My guess is you can't since Tomcat sits a layer above SpringMVC. If that's the case, could you update an entry span's operation name? I ask because I would rather auto-detect this information than create the necessary endpoint-name-grouping.yml file. I like that that file exists but I think it's best to consider it as a last result. The idea would be to let Tomcat set the operation name and if a better operation name can be determined by SpringMVC, it would override the original operation name.

If neither method works, is there a way to implement something like USE_QUALIFIED_NAME_AS_ENDPOINT_NAME like SpringMVC, or is that again an issue because Tomcat sits above SpringMVC?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions