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

[service] fix proctelemetry registration bug #11093

Merged
merged 5 commits into from
Sep 11, 2024

Conversation

codeboten
Copy link
Contributor

This bug caused proctelemetry metrics to not be registered if a user configured the Collector's internal telemetry via readers only and disabled address. The check in the if statement is no longer needed since a no-op meter provider will be configured unless the telemetry level is set.

Mentioned in #10919

Copy link

codecov bot commented Sep 9, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 92.28%. Comparing base (47b0203) to head (0e1a0dc).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
service/service.go 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11093      +/-   ##
==========================================
+ Coverage   92.23%   92.28%   +0.05%     
==========================================
  Files         414      414              
  Lines       19810    19798      -12     
==========================================
- Hits        18271    18270       -1     
+ Misses       1167     1156      -11     
  Partials      372      372              

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

@codeboten codeboten marked this pull request as ready for review September 10, 2024 20:48
@codeboten codeboten requested review from a team and dmitryax September 10, 2024 20:48
This bug caused proctelemetry metrics to not be registered if a user
configured the Collector's internal telemetry via `readers` only and disabled
`address`. The check in the `if` statement is no longer needed since a no-op
meter provider will be configured unless the telemetry level is set.

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
@codeboten codeboten merged commit 168bba7 into open-telemetry:main Sep 11, 2024
48 of 49 checks passed
@github-actions github-actions bot added this to the next release milestone Sep 11, 2024
@codeboten codeboten deleted the codeboten/fix-bug branch September 11, 2024 14:39
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.

4 participants