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

[EXPORTER] Fix Aggregation type detection in OTLP Exporter #2467

Merged
merged 3 commits into from
Dec 22, 2023

Conversation

lalitb
Copy link
Member

@lalitb lalitb commented Dec 21, 2023

Fixes #2466

Changes

The Aggregation type should be detected by checking the variant type, and not the instrument type. As it is possible to change the Aggregation type for an instrument through View configuration.

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • Changes in public API reviewed

Copy link

codecov bot commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e8afbb8) 87.06% compared to head (fce6477) 87.06%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2467   +/-   ##
=======================================
  Coverage   87.06%   87.06%           
=======================================
  Files         199      199           
  Lines        6087     6087           
=======================================
  Hits         5299     5299           
  Misses        788      788           

Copy link
Member

@owent owent left a comment

Choose a reason for hiding this comment

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

LGTM and thanks.

Copy link
Member

@marcalff marcalff left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the fix.

@marcalff marcalff merged commit 0dd5eed into open-telemetry:main Dec 22, 2023
46 checks passed
@marcalff marcalff changed the title Fix Aggregation type detection in OTLP Exporter [EXPORTER] Fix Aggregation type detection in OTLP Exporter Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Metrics: Using View to change aggregation causes an abort during export
3 participants