Skip to content

Latest commit

 

History

History

context-timer-metrics

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Maven Version

Metrics instrumentation for context-propagation

This module provides metrics 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

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-metrics</artifactId>
    <version>[see Maven badge above]</version>
</dependency>

That will add Timer metrics to the default shared MetricRegistry. For more details on the metrics library, please see its documentation.