Using Counter from io.micrometer:micrometer-registry-prometheus causes error in the application #41136
Labels
for: external-project
For an external project and not something we can fix
status: invalid
An issue that we don't feel is valid
Context
After the upgrade to Spring
3.3.+
, when starting a project that contains the libraryio.micrometer:micrometer-registry-prometheus
, and we useCounter
, it couses the error on runtime:Stack Trace
How to reproduce the error?
https://start.spring.io/
)web
andprometheus
implementation
and notruntimeOnly
Controller
--> Download a demo project:
demo.zip
http://localhost:8080/test
Alternatives
The alternatives found to fix the issue, is setting the Counter without Examples (method
.withoutExemplars()
), or import the libraryio.prometheus:metrics.tracer.initializer
explicitly.Notes
During investigation, found that the issue started with the change in the java_client 1.x on this commit
The text was updated successfully, but these errors were encountered: