Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add drop aggregation #2544

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

Merged
merged 2 commits into from
Mar 24, 2022
Merged

Add drop aggregation #2544

merged 2 commits into from
Mar 24, 2022

Conversation

ocelotl
Copy link
Contributor

@ocelotl ocelotl commented Mar 23, 2022

Fixes #2536

@ocelotl ocelotl self-assigned this Mar 23, 2022
@ocelotl ocelotl requested a review from a team March 23, 2022 05:19
@ocelotl ocelotl added sdk Affects the SDK package. metrics Skip Changelog PRs that do not require a CHANGELOG.md entry labels Mar 23, 2022
@ocelotl
Copy link
Contributor Author

ocelotl commented Mar 23, 2022

Intentionally implemented this as a regular aggregation to avoid not creating ViewInstrumentMatch objects, because the lack of these objects can cause the default view to be applied to instruments and I don't think that is something we want happening.

@aabmass

Copy link
Member

@aabmass aabmass left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ocelot I see what you mean about the default being created. We could also add a boolean to check if a view matched instead of checking for empty array?

not view_instrument_matches
and self._sdk_config.enable_default_view

I'm ok with this for now and we can address it later as an optimization.

@aabmass
Copy link
Member

aabmass commented Mar 24, 2022

@ocelotl it would be good to start updating the changelog now that we have an experimental release I think

@lzchen lzchen merged commit b7f9157 into open-telemetry:main Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
metrics sdk Affects the 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.

Implement Drop aggregation
3 participants