Skip to content
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

Replace Stream.AttributeFilter with AllowAttributeKeys #4288

Merged
merged 5 commits into from
Jul 8, 2023

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Jul 6, 2023

Resolves #4156

Note: the field name is AllowAtttributeKeys instead of AttributeKeys to ensure forward compatibility in the case where the specification wants to add a deny-list for attribute keys (open-telemetry/opentelemetry-specification#3441).

@MrAlias MrAlias added pkg:SDK Related to an SDK package Skip Changelog PRs that do not require a CHANGELOG.md entry labels Jul 6, 2023
CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Damien Mathieu <42@dmathieu.com>
@codecov
Copy link

codecov bot commented Jul 8, 2023

Codecov Report

Merging #4288 (b25c2e2) into main (c404a30) will decrease coverage by 0.1%.
The diff coverage is 88.8%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #4288     +/-   ##
=======================================
- Coverage   83.5%   83.5%   -0.1%     
=======================================
  Files        183     183             
  Lines      14207   14218     +11     
=======================================
+ Hits       11877   11884      +7     
- Misses      2104    2107      +3     
- Partials     226     227      +1     
Impacted Files Coverage Δ
sdk/metric/instrument.go 91.7% <81.8%> (-1.3%) ⬇️
sdk/metric/pipeline.go 91.4% <100.0%> (ø)
sdk/metric/view.go 86.2% <100.0%> (ø)

... and 1 file with indirect coverage changes

@MrAlias MrAlias merged commit 1633c74 into open-telemetry:main Jul 8, 2023
21 checks passed
@MrAlias MrAlias deleted the view-attr-filter branch July 8, 2023 15:01
MrAlias added a commit to MrAlias/opentelemetry-go that referenced this pull request Aug 14, 2023
MrAlias added a commit that referenced this pull request Aug 25, 2023
…w*Filter` functions (#4444)

* Add allow/deny attr filters

* Revert "Replace `Stream.AttributeFilter` with `AllowAttributeKeys` (#4288)"

This reverts commit 1633c74.

* Rename new attr filter funcs

Do not include the term "Attribute" in a creation function of the
"attribute" pkg.

* Update the AttributeFilter field documentation

* Add tests for filter creation funcs

* Add change to changelog

* Apply feedback

* Use NewDenyKeysFilter for allow-all and deny-list filters

* Remove links from field docs

These links do not render.

---------

Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:SDK Related to an SDK package Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

View attribute filtering is not compliant with the specification
4 participants