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] Replace telemetryInitializer by MeterProvider wrapper #9454

Merged
merged 4 commits into from
Feb 13, 2024

Conversation

mx-psi
Copy link
Member

@mx-psi mx-psi commented Feb 2, 2024

Description:

Refactor meter provider initialization; removes telemetryInitializer and replaces it by a MeterProvider wrapper that owns the lifetime of the OpenCensus registry and the servers associated with the MeterProvider.

Link to tracking Issue: Relates to #4970 (first refactor before trying out the factory pattern in an internal package)

@mx-psi mx-psi added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Feb 2, 2024
Copy link

codecov bot commented Feb 2, 2024

Codecov Report

Attention: 20 lines in your changes are missing coverage. Please review.

Comparison is base (586631b) 90.56% compared to head (acfb6ba) 90.55%.

Files Patch % Lines
service/telemetry.go 68.57% 9 Missing and 2 partials ⚠️
service/service.go 76.92% 5 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9454      +/-   ##
==========================================
- Coverage   90.56%   90.55%   -0.01%     
==========================================
  Files         347      347              
  Lines       18234    18247      +13     
==========================================
+ Hits        16513    16524      +11     
- Misses       1389     1392       +3     
+ Partials      332      331       -1     

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

@mx-psi mx-psi marked this pull request as ready for review February 2, 2024 13:10
@mx-psi mx-psi requested review from a team, Aneurysm9, codeboten and bogdandrutu February 2, 2024 13:10
@mx-psi
Copy link
Member Author

mx-psi commented Feb 9, 2024

@codeboten could you take a look?

service/service.go Outdated Show resolved Hide resolved
@mx-psi mx-psi merged commit 069118b into open-telemetry:main Feb 13, 2024
45 of 46 checks passed
@mx-psi mx-psi deleted the mx-psi/service-refactor branch February 13, 2024 14:01
@github-actions github-actions bot added this to the next release milestone Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants