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