Skip to content

[SDK] MetricFilter needs a new AttributeProcessor to handle IncludeExclude #3546

@marcalff

Description

@marcalff

Metric filtering allows to include or exclude some attributes during metric collection.

The declarative configuration defines attribute_keys filtering with:

  • an include list
  • an exclude list

See also the SDK spec for stream configuration:

https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#stream-configuration

The opentelemetry-cpp SDK needs to provide a proper subclass of AttributeProcessor to implement this behavior.

Current AttributeProcessor subclasses like FilteringAttributesProcessor only implement partially the desired filtering.

Metadata

Metadata

Labels

bugSomething isn't workinggood first issueGood for newcomershelp wantedGood for taking. Extra help will be provided by maintainerstriage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions