@Singleton @RequiresMetrics @Requires(property="micronaut.metrics.binders.hibernate.enabled", value="true", defaultValue="true") public class HibernateMetricsBinder extends Object implements io.micronaut.context.event.BeanCreatedEventListener<EntityManagerFactory>
EntityManagerFactory
.Constructor and Description |
---|
HibernateMetricsBinder(Provider<io.micrometer.core.instrument.MeterRegistry> meterRegistryProvider,
Map<String,String> tags)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
EntityManagerFactory |
onCreated(io.micronaut.context.event.BeanCreatedEvent<EntityManagerFactory> event) |
public HibernateMetricsBinder(Provider<io.micrometer.core.instrument.MeterRegistry> meterRegistryProvider, @Property(name="micronaut.metrics.binders.hibernate.tags") @MapFormat(transformation=FLAT) Map<String,String> tags)
meterRegistryProvider
- The meter registry providertags
- The tagspublic EntityManagerFactory onCreated(io.micronaut.context.event.BeanCreatedEvent<EntityManagerFactory> event)
onCreated
in interface io.micronaut.context.event.BeanCreatedEventListener<EntityManagerFactory>