Document need for micrometer-jersey2 dependency to get Jersey metrics

Closes gh-18622
This commit is contained in:
Andy Wilkinson 2019-10-24 10:46:18 +01:00
parent 5be562440c
commit d4cd03ebd8
1 changed files with 1 additions and 1 deletions

View File

@ -1713,7 +1713,7 @@ To customize the tags, provide a `@Bean` that implements `WebFluxTagsProvider`.
[[production-ready-metrics-jersey-server]]
==== Jersey Server Metrics
Auto-configuration enables the instrumentation of requests handled by the Jersey JAX-RS implementation.
When Micrometer's `micrometer-jersey2` module is on the classpath, auto-configuration enables the instrumentation of requests handled by the Jersey JAX-RS implementation.
When `management.metrics.web.server.auto-time-requests` is `true`, this instrumentation occurs for all requests.
Alternatively, when set to `false`, you can enable instrumentation by adding `@Timed` to a request-handling method: