-
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
Switch Stream
back to having an AttributeFilter
field and add New*Filter
functions
#4444
Conversation
…pen-telemetry#4288)" This reverts commit 1633c74.
Do not include the term "Attribute" in a creation function of the "attribute" pkg.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #4444 +/- ##
=======================================
- Coverage 78.9% 78.9% -0.1%
=======================================
Files 254 255 +1
Lines 20642 20651 +9
=======================================
+ Hits 16301 16308 +7
- Misses 3996 3999 +3
+ Partials 345 344 -1
|
Have we gotten this OK'd with a TC reviewer as being spec compliant? |
Not yet. Still working on it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, as long as it complies with the spec.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there is TC sign-off, then I Approve this.
These links do not render.
…-go into attr-filter-revert
It was pointed out by @jack-berg that having a filter function in the stream definition here will be similar to the Java approach: https://github.com/open-telemetry/opentelemetry-java/blob/bebf684436b0f54c0c81b19eba1dd9d12ff37532/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/ViewBuilder.java#L67-L77 There they allow a you to define a generic predicate to decide which attribute keys are retained. However, that only allows attribute keys to be used as the predicate, not values. |
After a slack conversation with @jack-berg he pointed out that @reyang, @jsuereth, and @jmacd will have more context here. I have created open-telemetry/opentelemetry-specification#3664 and pinged them in the issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approve this with the assumption that this is for beta release. The Spec compliance is still in process.
SIG meeting notes:
|
The existing fix to #4156 (#4288) introduced a change that limited the functionality of the SDK. Specifically it prevents the solution of the type of problems found in #3765. This does the following to address #4156:
Stream.AttributeFilter
withAllowAttributeKeys
(ReplaceStream.AttributeFilter
withAllowAttributeKeys
#4288)"NewAllowKeysFilter
andNewDenyKeysFilter
tootel/attribute
to provide easy allow-keys and deny-keys filter creation.