Class DefaultRabbitTemplateObservationConvention
java.lang.Object
org.springframework.amqp.rabbit.support.micrometer.DefaultRabbitTemplateObservationConvention
- All Implemented Interfaces:
io.micrometer.observation.KeyValuesConvention
,io.micrometer.observation.ObservationConvention<RabbitMessageSenderContext>
,RabbitTemplateObservationConvention
public class DefaultRabbitTemplateObservationConvention
extends Object
implements RabbitTemplateObservationConvention
Default
RabbitTemplateObservationConvention
for Rabbit template key values.- Since:
- 3.0
- Author:
- Gary Russell
-
Field Summary
Modifier and TypeFieldDescriptionstatic final DefaultRabbitTemplateObservationConvention
A singleton instance of the convention.Fields inherited from interface io.micrometer.observation.ObservationConvention
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.micrometer.common.KeyValues
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micrometer.observation.ObservationConvention
getHighCardinalityKeyValues
Methods inherited from interface org.springframework.amqp.rabbit.support.micrometer.RabbitTemplateObservationConvention
getName, supportsContext
-
Field Details
-
INSTANCE
A singleton instance of the convention.
-
-
Constructor Details
-
DefaultRabbitTemplateObservationConvention
public DefaultRabbitTemplateObservationConvention()
-
-
Method Details
-
getLowCardinalityKeyValues
public io.micrometer.common.KeyValues getLowCardinalityKeyValues(RabbitMessageSenderContext context) - Specified by:
getLowCardinalityKeyValues
in interfaceio.micrometer.observation.ObservationConvention<RabbitMessageSenderContext>
-
getContextualName
- Specified by:
getContextualName
in interfaceio.micrometer.observation.ObservationConvention<RabbitMessageSenderContext>
-