@Singleton @RequiresMetrics @Requires(property="micronaut.metrics.binders.rabbitmq.enabled", notEquals="false") public class RabbitMetricsInterceptor extends Object implements io.micronaut.context.event.BeanCreatedEventListener<com.rabbitmq.client.ConnectionFactory>
Constructor and Description |
---|
RabbitMetricsInterceptor(Provider<io.micrometer.core.instrument.MeterRegistry> meterRegistryProvider,
String prefix,
Map<String,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(Provider<io.micrometer.core.instrument.MeterRegistry> meterRegistryProvider, @Nullable @Property(name="micronaut.metrics.binders.rabbitmq.prefix") String prefix, @Property(name="micronaut.metrics.binders.rabbitmq.tags") @MapFormat(transformation=FLAT) Map<String,String> tags)
prefix
- The prefixmeterRegistryProvider
- The meter registry providertags
- The tags