Allow additional tags to be contributed to WebMvc and WebFlux defaults

Closes gh-20175
This commit is contained in:
Andy Wilkinson
2020-03-12 11:48:28 +00:00
parent e7ece77a7c
commit ef9960c69f
11 changed files with 414 additions and 11 deletions

View File

@@ -1727,7 +1727,8 @@ By default, Spring MVC-related metrics are tagged with the following information
| Request's URI template prior to variable substitution, if possible (for example, `/api/person/\{id}`)
|===
To customize the tags, provide a `@Bean` that implements `WebMvcTagsProvider`.
To add to the default tags, provide one or more `@Bean`s that implement `WebMvcTagsContributor`.
To replace the default tags, provide a `@Bean` that implements `WebMvcTagsProvider`.
@@ -1760,7 +1761,8 @@ By default, WebFlux-related metrics are tagged with the following information:
| Request's URI template prior to variable substitution, if possible (for example, `/api/person/\{id}`)
|===
To customize the tags, provide a `@Bean` that implements `WebFluxTagsProvider`.
To add to the default tags, provide one or more `@Bean`s that implement `WebFluxTagsContributor`.
To replace the default tags, provide a `@Bean` that implements `WebFluxTagsProvider`.