Class MicrometerObservationCollectorBuilder
java.lang.Object
com.rabbitmq.client.amqp.observation.micrometer.MicrometerObservationCollectorBuilder
Builder to create an instance of
ObservationCollector
using Micrometer observation.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create the configured instance.customProcessConvention
(DeliverObservationConvention customProcessConvention) Set the customObservationConvention
for processing (consuming).customPublishConvention
(PublishObservationConvention customPublishConvention) Set the customObservationConvention
for publishing.defaultProcessConvention
(DeliverObservationConvention defaultProcessConvention) Set the defaultObservationConvention
for processing (consuming).defaultPublishConvention
(PublishObservationConvention defaultPublishConvention) Set the defaultObservationConvention
for publishing.registry
(io.micrometer.observation.ObservationRegistry registry) Set the Micrometer'sObservationRegistry
.
-
Constructor Details
-
MicrometerObservationCollectorBuilder
public MicrometerObservationCollectorBuilder()
-
-
Method Details
-
registry
public MicrometerObservationCollectorBuilder registry(io.micrometer.observation.ObservationRegistry registry) Set the Micrometer'sObservationRegistry
.- Parameters:
registry
- registry- Returns:
- this builder instance
-
customPublishConvention
public MicrometerObservationCollectorBuilder customPublishConvention(PublishObservationConvention customPublishConvention) Set the customObservationConvention
for publishing.- Parameters:
customPublishConvention
- observation convention- Returns:
- this builder instance
-
defaultPublishConvention
public MicrometerObservationCollectorBuilder defaultPublishConvention(PublishObservationConvention defaultPublishConvention) Set the defaultObservationConvention
for publishing.- Parameters:
defaultPublishConvention
- observation convention- Returns:
- this builder instance
-
customProcessConvention
public MicrometerObservationCollectorBuilder customProcessConvention(DeliverObservationConvention customProcessConvention) Set the customObservationConvention
for processing (consuming).- Parameters:
customProcessConvention
- observation convention- Returns:
- this builder instance
-
defaultProcessConvention
public MicrometerObservationCollectorBuilder defaultProcessConvention(DeliverObservationConvention defaultProcessConvention) Set the defaultObservationConvention
for processing (consuming).- Parameters:
defaultProcessConvention
- observation convention- Returns:
- this builder instance
-
build
Create the configured instance.- Returns:
- the created observation collector instance
-