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

mdatagen: NewTelemetryBuilder does nil check #11687

Closed
wants to merge 2 commits into from

Conversation

braydonk
Copy link
Contributor

Description

Previously, the NewTelemetryBuilder function would panic if the LeveledMeterProvider function wasn't specified in the settings. This PR adds a nil check to that function, as well as a test that it responds with an error rather than panicking.

Link to tracking issue

Fixes #11684

Testing

make gogenerate
make gotest

Documentation

Previously, the NewTelemetryBuilder function would panic if the
LeveledMeterProvider function wasn't specified in the settings. This PR
adds a nil check to that function, as well as a test that it responds
with an error rather than panicking.
@braydonk braydonk requested a review from a team as a code owner November 15, 2024 23:33
@braydonk braydonk requested a review from songy23 November 15, 2024 23:33
@bogdandrutu
Copy link
Member

Hi @braydonk I am merging this PR #11415, which would change quite something here.

@braydonk
Copy link
Contributor Author

Thanks for letting me know @bogdandrutu, I will close this PR and the issue as obsolete.

@braydonk braydonk closed this Nov 15, 2024
Copy link

codecov bot commented Nov 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.64%. Comparing base (8b99b80) to head (72b37f6).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #11687   +/-   ##
=======================================
  Coverage   91.64%   91.64%           
=======================================
  Files         442      442           
  Lines       23746    23770   +24     
=======================================
+ Hits        21761    21785   +24     
  Misses       1616     1616           
  Partials      369      369           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

Generated NewTelemetryBuilder function panics with no LeveledMeterProvider
2 participants