Class DefaultObservedFactory
java.lang.Object
io.micronaut.micrometer.observation.DefaultObservedFactory
Factory for Micrometer Observation integration. Creates the following beans:
ObservationRegistry
- Instrumented ObservationRegistryObservationHandler
- Observation Handlers for exporting metrics, tracesObservationFilter
- ObservationFilter that adds common low cardinality key values to all observations
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
@Order
value ofdefaultTracingObservationHandler(Tracer)
.static final int
@Order
value ofpropagatingReceiverTracingObservationHandler(Tracer, Propagator)
.static final int
@Order
value ofpropagatingSenderTracingObservationHandler(Tracer, Propagator)
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.micrometer.observation.ObservationFilter
commonKeyValuesFilter
(io.micronaut.micrometer.observation.ObservationProperties properties) io.micrometer.observation.ObservationHandler<?>
defaultMeterObservationHandler
(io.micrometer.core.instrument.MeterRegistry meterRegistry) io.micrometer.observation.ObservationHandler<?>
defaultTracingObservationHandler
(io.micrometer.tracing.Tracer tracer) io.micrometer.observation.ObservationHandler<?>
propagatingReceiverTracingObservationHandler
(io.micrometer.tracing.Tracer tracer, io.micrometer.tracing.propagation.Propagator propagator) io.micrometer.observation.ObservationHandler<?>
propagatingSenderTracingObservationHandler
(io.micrometer.tracing.Tracer tracer, io.micrometer.tracing.propagation.Propagator propagator) io.micrometer.observation.ObservationHandler<?>
tracingAwareMeterObservationHandler
(io.micrometer.core.instrument.MeterRegistry meterRegistry, io.micrometer.tracing.Tracer tracer)
-
Field Details
-
DEFAULT_TRACING_OBSERVATION_HANDLER_ORDER
public static final int DEFAULT_TRACING_OBSERVATION_HANDLER_ORDER@Order
value ofdefaultTracingObservationHandler(Tracer)
.- See Also:
-
RECEIVER_TRACING_OBSERVATION_HANDLER_ORDER
public static final int RECEIVER_TRACING_OBSERVATION_HANDLER_ORDER@Order
value ofpropagatingReceiverTracingObservationHandler(Tracer, Propagator)
.- See Also:
-
SENDER_TRACING_OBSERVATION_HANDLER_ORDER
public static final int SENDER_TRACING_OBSERVATION_HANDLER_ORDER@Order
value ofpropagatingSenderTracingObservationHandler(Tracer, Propagator)
.- See Also:
-
-
Constructor Details
-
DefaultObservedFactory
public DefaultObservedFactory()
-
-
Method Details
-
defaultTracingObservationHandler
@Singleton @Requires(classes=io.micrometer.tracing.Tracer.class) @Requires(bean=io.micrometer.tracing.Tracer.class) @Order(2147482647) public io.micrometer.observation.ObservationHandler<?> defaultTracingObservationHandler(io.micrometer.tracing.Tracer tracer) -
propagatingSenderTracingObservationHandler
@Singleton @Requires(classes=io.micrometer.tracing.Tracer.class) @Requires(beans={io.micrometer.tracing.Tracer.class,io.micrometer.tracing.propagation.Propagator.class}) @Order(2000) public io.micrometer.observation.ObservationHandler<?> propagatingSenderTracingObservationHandler(io.micrometer.tracing.Tracer tracer, io.micrometer.tracing.propagation.Propagator propagator) -
propagatingReceiverTracingObservationHandler
@Singleton @Requires(classes=io.micrometer.tracing.Tracer.class) @Requires(beans={io.micrometer.tracing.Tracer.class,io.micrometer.tracing.propagation.Propagator.class}) @Order(1000) public io.micrometer.observation.ObservationHandler<?> propagatingReceiverTracingObservationHandler(io.micrometer.tracing.Tracer tracer, io.micrometer.tracing.propagation.Propagator propagator) -
defaultMeterObservationHandler
@Singleton @Requires(classes=io.micrometer.core.instrument.MeterRegistry.class) @Requires(beans=io.micrometer.core.instrument.MeterRegistry.class) @Requires(missingBeans=io.micrometer.tracing.Tracer.class) public io.micrometer.observation.ObservationHandler<?> defaultMeterObservationHandler(io.micrometer.core.instrument.MeterRegistry meterRegistry) -
tracingAwareMeterObservationHandler
@Singleton @Requires(classes={io.micrometer.core.instrument.MeterRegistry.class,io.micrometer.tracing.Tracer.class}) @Requires(beans={io.micrometer.core.instrument.MeterRegistry.class,io.micrometer.tracing.Tracer.class}) public io.micrometer.observation.ObservationHandler<?> tracingAwareMeterObservationHandler(io.micrometer.core.instrument.MeterRegistry meterRegistry, io.micrometer.tracing.Tracer tracer) -
commonKeyValuesFilter
@Singleton public static io.micrometer.observation.ObservationFilter commonKeyValuesFilter(io.micronaut.micrometer.observation.ObservationProperties properties)
-