Skip to content

Support for exclude list is missing in attributesΒ #5331

Description

@saurabh-saraswat

Describe your environment

OS: (e.g, Ubuntu)
Python version: (e.g., Python 3.10.0)
SDK version: (e.g., 1.25.0)
API version: (e.g., 1.25.0)

What happened?

The Metrics SDK spec says Implementations SHOULD support configuring an exclude-list of attribute keys. The exclude-list contains attribute keys that identify the attributes that MUST be excluded, all other attributes MUST be kept. (https://opentelemetry.io/docs/specs/otel/metrics/sdk/#instrument-selection-criteria)

In the current Python View API, the constructor exposes attribute_keys (allow-list style) but there is no corresponding exclude-list parameter.

Steps to Reproduce

Try to provide exclude attributes in View.

Expected Result

View Constructor should support exclude attributes parameter.

Actual Result

Support for exclude attributes is missing

Additional context

No response

Would you like to implement a fix?

Yes

Tip

React with πŸ‘ to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions