Interface OTelRuntimeConfig


@ConfigMapping(prefix="quarkus.otel") @ConfigRoot(phase=RUN_TIME) public interface OTelRuntimeConfig
  • Method Details

    • sdkDisabled

      @WithName("sdk.disabled") @WithDefault("false") boolean sdkDisabled()
      If true, disable the OpenTelemetry SDK. Runtime configuration.

      Defaults to false.

    • traces

      Traces runtime config.
    • metric

      Metric runtime config.
    • attribute

      AttributeConfig attribute()
      environment variables for the types of attributes, for which that SDK implements truncation mechanism.
    • span

      SpanConfig span()
      Span limit definitions.
    • bsp

      Batch Span Processor configurations.
    • resourceAttributes

      @WithName("resource.attributes") Optional<List<String>> resourceAttributes()
      Specify resource attributes in the following format: key1=val1,key2=val2,key3=val3.
    • serviceName

      @WithName("service.name") @WithDefault("${quarkus.application.name:unset}") Optional<String> serviceName()
      Specify logical service name. Takes precedence over service.name defined with otel.resource.attributes and from quarkus.application.name.

      Defaults to quarkus.application.name.

    • experimentalResourceDisabledKeys

      @WithName("experimental.resource.disabled-keys") Optional<List<String>> experimentalResourceDisabledKeys()
      Specify resource attribute keys that are filtered.
    • experimentalShutdownWaitTime

      @WithName("experimental.shutdown-wait-time") @WithDefault("1s") Duration experimentalShutdownWaitTime()
      The maximum amount of time Quarkus will wait for the OpenTelemetry SDK to flush unsent spans and shutdown.
    • instrument

      Enable/disable instrumentation for specific technologies.
    • mpCompatibility

      @WithName("mp.compatibility") @WithDefault("false") boolean mpCompatibility()
      Prioritize OpenTelemetry configuration otel. on top of Quarkus OpenTelemetry configuration quarkus.otel.

      By default, Quarkus configuration has priority over OpenTelemetry configuration.