Class DefaultPulsarListenerObservationConvention
java.lang.Object
org.springframework.pulsar.observation.DefaultPulsarListenerObservationConvention
- All Implemented Interfaces:
io.micrometer.observation.KeyValuesConvention,io.micrometer.observation.ObservationConvention<PulsarMessageReceiverContext>,PulsarListenerObservationConvention
public class DefaultPulsarListenerObservationConvention
extends Object
implements PulsarListenerObservationConvention
Default
PulsarListenerObservationConvention for Pulsar listener key values.- Author:
- Chris Bono
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DefaultPulsarListenerObservationConventionA singleton instance of the convention.Fields inherited from interface io.micrometer.observation.ObservationConvention
EMPTY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micrometer.observation.ObservationConvention
getHighCardinalityKeyValuesMethods inherited from interface org.springframework.pulsar.observation.PulsarListenerObservationConvention
supportsContext
-
Field Details
-
INSTANCE
A singleton instance of the convention.
-
-
Constructor Details
-
DefaultPulsarListenerObservationConvention
public DefaultPulsarListenerObservationConvention()
-
-
Method Details
-
getLowCardinalityKeyValues
public io.micrometer.common.KeyValues getLowCardinalityKeyValues(PulsarMessageReceiverContext context) - Specified by:
getLowCardinalityKeyValuesin interfaceio.micrometer.observation.ObservationConvention<PulsarMessageReceiverContext>
-
getName
- Specified by:
getNamein interfaceio.micrometer.observation.ObservationConvention<PulsarMessageReceiverContext>- Specified by:
getNamein interfacePulsarListenerObservationConvention
-
getContextualName
- Specified by:
getContextualNamein interfaceio.micrometer.observation.ObservationConvention<PulsarMessageReceiverContext>
-