[sdk-metrics] remove attributeKeys View option and allow custom filters instead #4109
Labels
never-stale
target:next-major-release
This PR targets the next major release (`next` branch)
triage:accepted
This feature has been accepted
type:feature
A feature with no sub-issues to address
Milestone
Currently our
attributeKeys
view option was implementing an allow-list type of behavior, which was defined by the specification. Once open-telemetry/opentelemetry-specification#3680 merges, the specification explicitly states that custom filters are also allowed.For SDK 2.0 we should consider replacing
attributeKeys
withattributeFilter
, and functionality that allows for both allow-list and deny-list. A deny-list could be especially helpful for "misbehaving" instrumentations that cause metrics cardinality explosions. A problematic attribute can this way be easily turned off without having to know all the other attributes.Additional Context
View
'sattribute_keys
is an allow-list opentelemetry-specification#3680The text was updated successfully, but these errors were encountered: