Skip to content

Replace filter aggregator with direct filter on measure#4342

Merged
MrAlias merged 3 commits into
open-telemetry:mainfrom
MrAlias:simp-agg-fltr
Jul 20, 2023
Merged

Replace filter aggregator with direct filter on measure#4342
MrAlias merged 3 commits into
open-telemetry:mainfrom
MrAlias:simp-agg-fltr

Conversation

@MrAlias
Copy link
Copy Markdown
Contributor

@MrAlias MrAlias commented Jul 19, 2023

Part of #4220

Instead of using an aggregator to filter measured attributes, directly filter the attributes in the constructed Measure function the Builder creates.

Includes unit testing of new filtering.

@MrAlias MrAlias added pkg:SDK Related to an SDK package area:metrics Part of OpenTelemetry Metrics labels Jul 19, 2023
@MrAlias MrAlias added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jul 19, 2023
@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 19, 2023

Codecov Report

Merging #4342 (c491513) into main (a5c82bf) will decrease coverage by 0.1%.
The diff coverage is 100.0%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #4342     +/-   ##
=======================================
- Coverage   83.4%   83.4%   -0.1%     
=======================================
  Files        185     184      -1     
  Lines      14359   14349     -10     
=======================================
- Hits       11985   11975     -10     
  Misses      2147    2147             
  Partials     227     227             
Impacted Files Coverage Δ
sdk/metric/internal/aggregate/aggregate.go 100.0% <100.0%> (ø)

... and 2 files with indirect coverage changes

Part of open-telemetry#4220

Instead of using an aggregator to filter measured attributes, directly
filter the attributes in the constructed Measure function the Builder
creates.

Include unit and integration testing of new filtering.
Comment thread sdk/metric/internal/aggregate/aggregate.go Outdated
Co-authored-by: David Ashpole <dashpole@google.com>
@MrAlias MrAlias merged commit a37cb05 into open-telemetry:main Jul 20, 2023
@MrAlias MrAlias deleted the simp-agg-fltr branch July 20, 2023 20:53
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

None yet

Development

Successfully merging this pull request may close these issues.

3 participants