Skip to content

Replace Stream.AttributeFilter with AllowAttributeKeys#4288

Merged
MrAlias merged 5 commits into
open-telemetry:mainfrom
MrAlias:view-attr-filter
Jul 8, 2023
Merged

Replace Stream.AttributeFilter with AllowAttributeKeys#4288
MrAlias merged 5 commits into
open-telemetry:mainfrom
MrAlias:view-attr-filter

Conversation

@MrAlias
Copy link
Copy Markdown
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
Comment thread CHANGELOG.md Outdated
Co-authored-by: Damien Mathieu <42@dmathieu.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 8, 2023

Codecov Report

Attention: Patch coverage is 88.88889% with 2 lines in your changes missing coverage. Please review.

Project coverage is 83.5%. Comparing base (c404a30) to head (b25c2e2).
Report is 1565 commits behind head on main.

Files with missing lines Patch % Lines
sdk/metric/instrument.go 81.8% 1 Missing and 1 partial ⚠️
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     
Files with missing lines Coverage Δ
sdk/metric/pipeline.go 91.4% <100.0%> (ø)
sdk/metric/view.go 86.2% <100.0%> (ø)
sdk/metric/instrument.go 91.7% <81.8%> (-1.3%) ⬇️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@MrAlias MrAlias merged commit 1633c74 into open-telemetry:main Jul 8, 2023
@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>
@MrAlias MrAlias added the area:metrics Part of OpenTelemetry Metrics label Jun 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:metrics Part of OpenTelemetry Metrics 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