Class DefaultOkHttpObservationConvention

java.lang.Object
io.micrometer.core.instrument.binder.okhttp3.DefaultOkHttpObservationConvention
All Implemented Interfaces:
OkHttpObservationConvention, io.micrometer.observation.KeyValuesConvention, io.micrometer.observation.ObservationConvention<OkHttpContext>

@NonNullApi @NonNullFields public class DefaultOkHttpObservationConvention extends Object implements OkHttpObservationConvention
  • Constructor Details

    • DefaultOkHttpObservationConvention

      public DefaultOkHttpObservationConvention(String metricName)
  • Method Details

    • getLowCardinalityKeyValues

      public io.micrometer.common.KeyValues getLowCardinalityKeyValues(OkHttpContext context)
      Specified by:
      getLowCardinalityKeyValues in interface io.micrometer.observation.ObservationConvention<OkHttpContext>
    • getName

      public String getName()
      Specified by:
      getName in interface io.micrometer.observation.ObservationConvention<OkHttpContext>
    • getContextualName

      @Nullable public String getContextualName(OkHttpContext context)
      Specified by:
      getContextualName in interface io.micrometer.observation.ObservationConvention<OkHttpContext>