Skip to content

Document that auto-configuration of Jersey server metrics requires a dependency on micrometer-jersey2 #18622

@krzyk

Description

@krzyk

I have both Jersey and Spring MVC in classpath (actuators are using Spring MVC and the rest of application uses Jersey).
When I enable management.metrics.web.server.auto-time-requests only Spring MVC requests are metered - so in my case only actuators (I think), I see only following links:

  • UNKNOWN
  • NOT_FOUND
  • /**
  • /health
  • /info
  • root

(I have no idea what a root, UNKNOWN, NOT_FOUND, /** or root urls are, I don't have those in my application, all links in my application start with /v1 or /v2).

I suggest to split the management.metrics.web.server.auto-time-requests to be technology specific so I can enable either Jersey or Spring MVC.
Something like:
management.metrics.web.server.jersey.auto-time-requests
management.metrics.web.server.spring-mvc.auto-time-requests

I hope the @Timed works in such case, so I can have Spring MVC and I can annotate Jersey controllers and get the metrics.

Spring Boot version 2.1.6.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions