Package com.linecorp.armeria.common.grpc
Class GrpcMeterIdPrefixFunction
java.lang.Object
com.linecorp.armeria.common.grpc.GrpcMeterIdPrefixFunction
- All Implemented Interfaces:
com.linecorp.armeria.common.metric.MeterIdPrefixFunction
public final class GrpcMeterIdPrefixFunction
extends Object
implements com.linecorp.armeria.common.metric.MeterIdPrefixFunction
Creates a
MeterIdPrefix from a RequestLog.
This adds the grpc.status tag upon the tags that DefaultMeterIdPrefixFunction appends.- See Also:
-
MetricCollectingClientMetricCollectingService
-
Method Summary
Modifier and TypeMethodDescriptioncom.linecorp.armeria.common.metric.MeterIdPrefixactiveRequestPrefix(MeterRegistry registry, com.linecorp.armeria.common.logging.RequestOnlyLog log) com.linecorp.armeria.common.metric.MeterIdPrefixcompleteRequestPrefix(MeterRegistry registry, com.linecorp.armeria.common.logging.RequestLog log) static GrpcMeterIdPrefixFunctionReturns a newly createdGrpcMeterIdPrefixFunctionwith the specifiedname.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.linecorp.armeria.common.metric.MeterIdPrefixFunction
andThen, withTags, withTags, withTags
-
Method Details
-
of
Returns a newly createdGrpcMeterIdPrefixFunctionwith the specifiedname. -
activeRequestPrefix
public com.linecorp.armeria.common.metric.MeterIdPrefix activeRequestPrefix(MeterRegistry registry, com.linecorp.armeria.common.logging.RequestOnlyLog log) - Specified by:
activeRequestPrefixin interfacecom.linecorp.armeria.common.metric.MeterIdPrefixFunction
-
completeRequestPrefix
public com.linecorp.armeria.common.metric.MeterIdPrefix completeRequestPrefix(MeterRegistry registry, com.linecorp.armeria.common.logging.RequestLog log) - Specified by:
completeRequestPrefixin interfacecom.linecorp.armeria.common.metric.MeterIdPrefixFunction
-