Class RetrofitMeterIdPrefixFunction

java.lang.Object
com.linecorp.armeria.client.retrofit2.RetrofitMeterIdPrefixFunction
All Implemented Interfaces:
MeterIdPrefixFunction

public final class RetrofitMeterIdPrefixFunction
extends Object
implements 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 (or serviceTagName) - Retrofit service interface name, provided serviceName or UNKNOWN if Retrofit service interface method available
  • path - Retrofit service interface method path taken from method annotation or RequestHeaderGetters.path() if Retrofit service interface method available
  • method - Retrofit service interface method or UNKNOWN if Retrofit service interface method available
  • http.method - HTTP method name from Retrofit service interface method annotation or from RequestHeaderGetters.method() if Retrofit service interface method not available
  • http.status - HttpStatus.code()