Class DefaultOpenTelemetryFactory

java.lang.Object
io.micronaut.tracing.opentelemetry.DefaultOpenTelemetryFactory

@Factory public class DefaultOpenTelemetryFactory extends Object
Registers an OpenTelemetry bean.
Since:
4.2.0
Author:
Nemanja Mikic
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected io.opentelemetry.api.OpenTelemetry
    defaultOpenTelemetry(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, Map<String,String> otelConfig, @Nullable io.opentelemetry.sdk.trace.IdGenerator idGenerator, @Nullable io.opentelemetry.sdk.trace.SpanProcessor spanProcessor, @Nullable ResourceProvider resourceProvider, @Nullable io.opentelemetry.sdk.trace.samplers.Sampler sampler)
    The OpenTelemetry bean with default values.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultOpenTelemetryFactory

      public DefaultOpenTelemetryFactory()
  • Method Details

    • defaultOpenTelemetry

      @Singleton protected io.opentelemetry.api.OpenTelemetry defaultOpenTelemetry(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, @Property(name="otel") @MapFormat(transformation=FLAT) Map<String,String> otelConfig, @Nullable @Nullable io.opentelemetry.sdk.trace.IdGenerator idGenerator, @Nullable @Nullable io.opentelemetry.sdk.trace.SpanProcessor spanProcessor, @Nullable @Nullable ResourceProvider resourceProvider, @Nullable @Nullable io.opentelemetry.sdk.trace.samplers.Sampler sampler)
      The OpenTelemetry bean with default values.
      Parameters:
      applicationConfiguration - the ApplicationConfiguration
      otelConfig - the configuration values for the opentelemetry autoconfigure
      idGenerator - the IdGenerator
      spanProcessor - the SpanProcessor
      resourceProvider - Resource Provider
      Returns:
      the OpenTelemetry bean with default values