Class RetrofitMeterIdPrefixFunction
java.lang.Object
com.linecorp.armeria.client.retrofit2.RetrofitMeterIdPrefixFunction
- All Implemented Interfaces:
com.linecorp.armeria.common.metric.MeterIdPrefixFunction
public final class RetrofitMeterIdPrefixFunction
extends Object
implements com.linecorp.armeria.common.metric.MeterIdPrefixFunction
Returns the default function for retrofit that creates a
MeterIdPrefix with the specified name and
the Tags derived from the RequestLog properties and Invocation.
service(orserviceTagName) - Retrofit service interface name, providedserviceNameorUNKNOWNif Retrofit service interface method availablepath- Retrofit service interface method path taken from method annotation orRequestHeaderGetters.path()if Retrofit service interface method availablemethod- Retrofit service interface method orUNKNOWNif Retrofit service interface method availablehttp.method- HTTP method name from Retrofit service interface method annotation or fromRequestHeaderGetters.method()if Retrofit service interface method not availablehttp.status-HttpStatus.code()
-
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) Returns a newly createdRetrofitMeterIdPrefixFunctionwith 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 createdRetrofitMeterIdPrefixFunctionwith 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
-