Skip to content

Need ability to access URI template in WebClient metrics/tracing instrumentation [SPR-16537] #21080

@spring-projects-issues

Description

@spring-projects-issues

Jon Schneider opened SPR-16537 and commented

For tagging on metrics and tracing, it is essential that we have access to the templated URI before it is expanded with variables. For example, a metrics tag should have uri=/users/{id} and not uri=/users/1 to perform useful aggregation on requests and not overwhelm a monitoring system with unique tags.

There is a way to set the uriBuilderFactory on WebClient.Builder, but no effective way to retrieve the preconfigured uriBuilderFactory in order to delegate to it while capturing the template.


Affects: 5.0.4

Issue Links:

Referenced from: commits 9352e3d

1 votes, 7 watchers

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions