Skip to content

Rename otel.instrumentation.experimental.span-suppression-strategy #15566

@zeitlinger

Description

@zeitlinger

Rename otel.instrumentation.experimental.span-suppression-strategy to otel.instrumentation.common.experimental.span-suppression-strategy to follow common naming conventions.

This will allow us to clean up

SpanSuppressor buildSpanSuppressor() {
// otel.instrumentation.experimental.* doesn't fit the usual pattern of configuration properties
// for instrumentations, so we need to handle both declarative and non-declarative configs here
String value =
ConfigPropertiesUtil.isDeclarativeConfig(openTelemetry)
? ConfigPropertiesUtil.getString(
openTelemetry, "common", "span_suppression_strategy/development")
.orElse(null)
: ConfigPropertiesUtil.getString(
"otel.instrumentation.experimental.span-suppression-strategy");
return new SpanSuppressors.ByContextKey(
SpanSuppressionStrategy.fromConfig(value).create(getSpanKeysFromAttributesExtractors()));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneeds triageNew issue that requires triage

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions