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

Fix Console metric exporter null reference #5099

Merged

Conversation

vishweshbankwar
Copy link
Member

Fixes #
Design discussion issue #

Changes

Please provide a brief description of the changes here.

Merge requirement checklist

  • CONTRIBUTING guidelines followed (nullable enabled, static analysis, etc.)
  • Unit tests added/updated
  • Appropriate CHANGELOG.md files updated for non-trivial changes
  • Changes in public API reviewed (if applicable)

@vishweshbankwar vishweshbankwar requested a review from a team as a code owner November 29, 2023 23:19
Copy link
Contributor

@utpilla utpilla left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this!

Copy link

codecov bot commented Nov 29, 2023

Codecov Report

Merging #5099 (f6f50ba) into main (a47b222) will decrease coverage by 0.23%.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5099      +/-   ##
==========================================
- Coverage   83.14%   82.91%   -0.23%     
==========================================
  Files         296      296              
  Lines       12317    12318       +1     
==========================================
- Hits        10241    10214      -27     
- Misses       2076     2104      +28     
Flag Coverage Δ
unittests 82.91% <0.00%> (-0.23%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...elemetry.Exporter.Console/ConsoleMetricExporter.cs 0.00% <0.00%> (ø)

... and 4 files with indirect coverage changes

@utpilla utpilla merged commit 014d5a1 into open-telemetry:main Nov 29, 2023
40 checks passed
@@ -75,12 +75,15 @@ public override ExportResult Export(in Batch<Metric> batch)

this.WriteLine(msg.ToString());

foreach (var meterTag in metric.MeterTags)
if (metric.MeterTags != null)
Copy link
Member

Choose a reason for hiding this comment

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

thanks!

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.

None yet

3 participants