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] Remove servicetelemetry.TelemetrySettings #10728

Merged

Conversation

TylerHelmuth
Copy link
Member

Description

Reorganizes service to not require servicetelemetry.TelemetrySettings and instead depend directly on component.TelemetrySettings

Whether or not we move forward with #10725 I think this is a useful change for service.

Testing

Unit tests

@TylerHelmuth TylerHelmuth force-pushed the service-remove-servicetelemetry branch from dae58da to 5aaad3c Compare July 25, 2024 21:19
Copy link

codecov bot commented Jul 25, 2024

Codecov Report

Attention: Patch coverage is 87.09677% with 4 lines in your changes missing coverage. Please review.

Project coverage is 92.18%. Comparing base (ef7f285) to head (e26c02d).
Report is 5 commits behind head on main.

Files Patch % Lines
service/service.go 66.66% 0 Missing and 3 partials ⚠️
service/extensions/extensions.go 94.44% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #10728   +/-   ##
=======================================
  Coverage   92.18%   92.18%           
=======================================
  Files         403      401    -2     
  Lines       18792    18786    -6     
=======================================
- Hits        17323    17318    -5     
+ Misses       1109     1108    -1     
  Partials      360      360           

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

# Use this changelog template to create an entry for release notes.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: breaking
Copy link
Member

Choose a reason for hiding this comment

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

I did a Github search: https://github.com/search?q=+language%3AGo+%2F%5B%28%2C+%5Cn%5Dextensions%5C.New%5B+%28%29%2C%5Cn%5D%2F+-repo%3Aopen-telemetry%2Fopentelemetry-collector+-repo%3Aopen-telemetry%2Fopentelemetry-collector-contrib+NOT+is%3Afork&type=code

I have not been able to find any public references to this symbol being used as an argument to a function, so I think it's okay to do in one go

Copy link
Contributor

@atoulme atoulme left a comment

Choose a reason for hiding this comment

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

thanks, this feels less ambiguous.

Copy link
Member

@mwear mwear left a comment

Choose a reason for hiding this comment

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

LGTM. Nice to see servicetelemetry.TelemetrySettings gone.

@mx-psi mx-psi merged commit fb5b1e6 into open-telemetry:main Jul 29, 2024
49 of 50 checks passed
@github-actions github-actions bot added this to the next release milestone Jul 29, 2024
@TylerHelmuth TylerHelmuth deleted the service-remove-servicetelemetry branch July 29, 2024 14:17
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