Skip to content

Add OTel Span Attribute Filter - #409

Open
KarstenSchnitter wants to merge 2 commits into
mainfrom
otel-span-sanitize
Open

Add OTel Span Attribute Filter#409
KarstenSchnitter wants to merge 2 commits into
mainfrom
otel-span-sanitize

Conversation

@KarstenSchnitter

Copy link
Copy Markdown
Contributor

addresses #399

Provide filtering of OpenTelemetry span attributes by comma-separated inclusion and exclusion lists. The feature is semantically identical to the metrics filtering. The new configuration properties are:

  • sap.cf.integration.otel.extension.sanitizer.span.attribute.filter.include.names comma-separated attribute names to include allowing for wildcard "*" at the end
  • sap.cf.integration.otel.extension.sanitizer.span.attribute.filter.exclude.namescomma-separate attribute names to exclude allowing for wildcard "*" at the end with higher priority than includes

Introduction of SpanAttributeCustomizer interface to allow different
implementations in future. Customizers can be disabled by config in which
case they are removed from the list of potential customizers. To avoid
allocation of a new attributes map they can preemptively declare "no
changes" on a span dataset.

Signed-off-by: Karsten Schnitter <k.schnitter@sap.com>
Adds a new span exporter customizer to filter spann attributes by the same semantics
as already available for metrics by name. The user is able to provide inclusion and
exclusion lists with wildcard support.

Signed-off-by: Karsten Schnitter <k.schnitter@sap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant