@Singleton
@RequiresMetrics
@Requires(property="micronaut.metrics.binders.rabbitmq.enabled",
notEquals="false")
public class RabbitMetricsInterceptor
extends java.lang.Object
implements io.micronaut.context.event.BeanCreatedEventListener<com.rabbitmq.client.ConnectionFactory>
Constructor and Description |
---|
RabbitMetricsInterceptor(io.micronaut.context.BeanProvider<io.micrometer.core.instrument.MeterRegistry> meterRegistryBeanProvider,
java.lang.String prefix,
java.util.Map<java.lang.String,java.lang.String> tags)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
com.rabbitmq.client.ConnectionFactory |
onCreated(io.micronaut.context.event.BeanCreatedEvent<com.rabbitmq.client.ConnectionFactory> event) |
public RabbitMetricsInterceptor(io.micronaut.context.BeanProvider<io.micrometer.core.instrument.MeterRegistry> meterRegistryBeanProvider, @Nullable @Property(name="micronaut.metrics.binders.rabbitmq.prefix") java.lang.String prefix, @Property(name="micronaut.metrics.binders.rabbitmq.tags") @MapFormat(transformation=FLAT) java.util.Map<java.lang.String,java.lang.String> tags)
meterRegistryBeanProvider
- The meter registry bean providerprefix
- The prefixtags
- The tags