Class DefaultObservedFactory

java.lang.Object
io.micronaut.micrometer.observation.DefaultObservedFactory

@Factory @Internal public final class DefaultObservedFactory extends Object
Factory for Micrometer Observation integration. Creates the following beans:
  • ObservationRegistry - Instrumented ObservationRegistry
  • ObservationHandler - Observation Handlers for exporting metrics, traces
  • ObservationFilter - ObservationFilter that adds common low cardinality key values to all observations
  • Field Details

  • 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)