Skip to content

Latest commit

 

History

History

context-propagation-micrometer

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Maven Version

Micrometer instrumentation for context-propagation

This module provides Micrometer Timer instrumentation for:

  • all context snapshots that are created with ContextManagers.createContextSnapshot()
  • all context snapshots that are reactivated with ContextSnapshot.reactivate()
  • for each specific ContextManager:
    • calls to ContextManager.getActiveContext and
    • calls to ContextManager.initializeNewContext

How to use this module

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.