java.lang.Object
io.opentelemetry.instrumentation.api.incubator.semconv.messaging.internal.MessagingConfig

public final class MessagingConfig extends Object
Resolves the common messaging header selector, shared by every messaging instrumentation so that precedence and deprecation warnings are uniform.

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
    static io.opentelemetry.instrumentation.api.config.IncludeExclude
    getHeaders(io.opentelemetry.api.OpenTelemetry openTelemetry)
    Returns the configured messaging header selector, or an empty selector when no headers are configured to be captured.
    static io.opentelemetry.instrumentation.api.config.IncludeExclude
    getHeaders(io.opentelemetry.api.OpenTelemetry openTelemetry, boolean systemPropertyFallback)
    Returns the configured messaging header selector, or an empty selector when no headers are configured to be captured.

    Methods inherited from class java.lang.Object

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

    • getHeaders

      public static io.opentelemetry.instrumentation.api.config.IncludeExclude getHeaders(io.opentelemetry.api.OpenTelemetry openTelemetry)
      Returns the configured messaging header selector, or an empty selector when no headers are configured to be captured.
    • getHeaders

      public static io.opentelemetry.instrumentation.api.config.IncludeExclude getHeaders(io.opentelemetry.api.OpenTelemetry openTelemetry, boolean systemPropertyFallback)
      Returns the configured messaging header selector, or an empty selector when no headers are configured to be captured.
      Parameters:
      systemPropertyFallback - whether to fall back to the flat system properties when the declarative configuration does not contain a value. This is needed by library instrumentation entry points that have no programmatic configuration surface.