Class LoggingConfig

java.lang.Object
io.opentelemetry.instrumentation.api.incubator.config.internal.LoggingConfig

public final class LoggingConfig extends Object
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
  • Method Summary

    Modifier and Type
    Method
    Description
    resolveStructuredAttributes(io.opentelemetry.api.OpenTelemetry openTelemetry, io.opentelemetry.api.incubator.config.DeclarativeConfigProperties sourceConfig, String instrumentationName, String selectorName)
    Resolves the common structured logging attribute selector, retaining the source-specific selector as a fallback until 3.0.
    resolveStructuredAttributes(io.opentelemetry.api.OpenTelemetry openTelemetry, io.opentelemetry.api.incubator.config.DeclarativeConfigProperties sourceConfig, String instrumentationName, String selectorName, String deprecatedSelectorName)
    Resolves the common structured logging attribute selector when the deprecated capture setting has a different name from the source-specific selector.

    Methods inherited from class Object

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

    • resolveStructuredAttributes

      @Nullable public static Predicate<String> resolveStructuredAttributes(io.opentelemetry.api.OpenTelemetry openTelemetry, io.opentelemetry.api.incubator.config.DeclarativeConfigProperties sourceConfig, String instrumentationName, String selectorName)
      Resolves the common structured logging attribute selector, retaining the source-specific selector as a fallback until 3.0.
    • resolveStructuredAttributes

      @Nullable public static Predicate<String> resolveStructuredAttributes(io.opentelemetry.api.OpenTelemetry openTelemetry, io.opentelemetry.api.incubator.config.DeclarativeConfigProperties sourceConfig, String instrumentationName, String selectorName, String deprecatedSelectorName)
      Resolves the common structured logging attribute selector when the deprecated capture setting has a different name from the source-specific selector.