Package com.linecorp.armeria.common.grpc
Class GrpcMeterIdPrefixFunction
java.lang.Object
com.linecorp.armeria.common.grpc.GrpcMeterIdPrefixFunction
- All Implemented Interfaces:
MeterIdPrefixFunction
Creates a
MeterIdPrefix
from a RequestLog
.
This adds the grpc.status
tag upon the tags that DefaultMeterIdPrefixFunction
appends.-
Method Summary
Modifier and TypeMethodDescriptionactiveRequestPrefix
(MeterRegistry registry, RequestOnlyLog log) Creates aMeterIdPrefix
for the active request counter gauges from the specifiedRequestOnlyLog
.completeRequestPrefix
(MeterRegistry registry, RequestLog log) Creates aMeterIdPrefix
from the specified completeRequestLog
.static GrpcMeterIdPrefixFunction
Returns a newly createdGrpcMeterIdPrefixFunction
with the specifiedname
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.linecorp.armeria.common.metric.MeterIdPrefixFunction
andThen, withTags, withTags, withTags
-
Method Details
-
of
Returns a newly createdGrpcMeterIdPrefixFunction
with the specifiedname
. -
activeRequestPrefix
Description copied from interface:MeterIdPrefixFunction
Creates aMeterIdPrefix
for the active request counter gauges from the specifiedRequestOnlyLog
. Note that the givenRequestOnlyLog
might not have all properties available. However, the following properties' availability is guaranteed:- Specified by:
activeRequestPrefix
in interfaceMeterIdPrefixFunction
-
completeRequestPrefix
Description copied from interface:MeterIdPrefixFunction
Creates aMeterIdPrefix
from the specified completeRequestLog
.- Specified by:
completeRequestPrefix
in interfaceMeterIdPrefixFunction
-