Class TaggedMetricsServiceInvocationEventHandler
java.lang.Object
com.palantir.tritium.event.AbstractInvocationEventHandler<com.palantir.tritium.event.InvocationContext>
com.palantir.tritium.event.metrics.TaggedMetricsServiceInvocationEventHandler
- All Implemented Interfaces:
com.palantir.tritium.event.InvocationEventHandler<com.palantir.tritium.event.InvocationContext>
public class TaggedMetricsServiceInvocationEventHandler
extends com.palantir.tritium.event.AbstractInvocationEventHandler<com.palantir.tritium.event.InvocationContext>
An implementation of
AbstractInvocationEventHandler whose purpose is to provide tagged metrics for classes
which look like services.
Specifically, this class will generate metrics with the following parameters:
- Metric Name: the service name supplied to the constructor
- Tag - service-name: The service name
- Tag - endpoint: The name of the method that was invoked
- Tag - result:
successif the method completed normally orfailureif the method completed exceptionally.
-
Constructor Summary
ConstructorsConstructorDescriptionTaggedMetricsServiceInvocationEventHandler(com.palantir.tritium.metrics.registry.TaggedMetricRegistry taggedMetricRegistry, @Safe String serviceName) -
Method Summary
Methods inherited from class com.palantir.tritium.event.AbstractInvocationEventHandler
debugIfNullContext, getSystemPropertySupplier, isEnabled, nullToEmpty
-
Constructor Details
-
TaggedMetricsServiceInvocationEventHandler
public TaggedMetricsServiceInvocationEventHandler(com.palantir.tritium.metrics.registry.TaggedMetricRegistry taggedMetricRegistry, @Safe @Safe String serviceName)
-
-
Method Details