This module provides Micrometer Timer
instrumentation for:
- all context snapshots that are created with
ContextSnapshot.capture()
- all context snapshots that are reactivated with
ContextSnapshot.reactivate()
- for each specific
ContextManager
:- calls to
ContextManager.getActiveContext
and - calls to
ContextManager.initializeNewContext
- calls to
All you need to do is add it to your classpath:
<dependency>
<groupId>nl.talsmasoftware.context</groupId>
<artifactId>context-propagation-micrometer</artifactId>
<version>[see Maven badge above]</version>
</dependency>
That will add Timer
metrics to the global composite registry
as used by the io.micrometer.core.instrument.Metrics
utility class.
For more details on the Micrometer library, please see its documentation.