-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
View attribute filtering is not compliant with the specification #4156
View attribute filtering is not compliant with the specification #4156
Comments
Specification PR: open-telemetry/opentelemetry-specification#3550 |
Adding this to the specification does not appear viable. Moving to update our implemenetation. |
The resolution applied makes the fix for #3765, and likely other future fixes, impossible. Alternative discussed in yesterdays SIG meeting:
This seems like it would be in line with the specification in spirit, a user would be able to provide a slice of keys they want to allow in-line with their
|
Spec update: open-telemetry/opentelemetry-specification#3680 |
The specification states the stream configuration of a view must have an allow-list of attribute keys that it will use to filter out attributes:
However, the opentelemetry-go implementation uses an
attribute.Filter
.The non-compliance of the implementation needs to be addressed
Proposal
Update the specification to allow something like the
attribute.Filter
to be used for this functionality.Having a list of attribute keys that are allowed is in the stream configuration limits the usefulness of attribute filtering. It only allows an allow-list type filtering for static pre-determined attribute keys. Having something allowed like the
attribute.Filter
allows for deny-lists, filtering on values, fuzzy filtering algorithms, probabilistic filtering ... It seems like users would benefit by keeping theattribute.Filter
here instead of replacing it with a[]attribute.Key
field.Alternatives
Replace the
attribute.Filter
type with[]attribute.Key
in theStream.AttributeFilter
field. Use these keys to filter attributes.The text was updated successfully, but these errors were encountered: