Class MessagingConfig
java.lang.Object
io.opentelemetry.instrumentation.api.incubator.semconv.messaging.internal.MessagingConfig
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 TypeMethodDescriptionstatic io.opentelemetry.instrumentation.api.config.IncludeExcludegetHeaders(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.IncludeExcludegetHeaders(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.
-
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.
-