Skip to content

[metadatatest] Generate NewSettings that accepts componenttest.Telemetry #12216

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

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

bogdandrutu
Copy link
Member

@bogdandrutu bogdandrutu commented Jan 30, 2025

This is the last functionality needed to replace metadatatest.Telemetry with componenttest.Telemetry.

The metadatatest.Telemetry will be deprecated next release to give time to change contrib since it is a large change.

Copy link

codecov bot commented Jan 30, 2025

Codecov Report

Attention: Patch coverage is 77.01149% with 20 lines in your changes missing coverage. Please review.

Project coverage is 91.22%. Comparing base (fb8bb93) to head (e51bc79).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
component/componenttest/obsreporttest.go 0.00% 10 Missing ⚠️
...r/internal/metadatatest/generated_telemetrytest.go 68.75% 5 Missing ⚠️
...r/internal/metadatatest/generated_telemetrytest.go 54.54% 5 Missing ⚠️

❌ Your patch status has failed because the patch coverage (77.01%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12216      +/-   ##
==========================================
- Coverage   91.29%   91.22%   -0.07%     
==========================================
  Files         465      465              
  Lines       25629    25647      +18     
==========================================
  Hits        23397    23397              
- Misses       1819     1837      +18     
  Partials      413      413              

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

@bogdandrutu bogdandrutu force-pushed the newsettings branch 2 times, most recently from a21490e to 4140fce Compare January 30, 2025 19:29
@@ -49,7 +49,7 @@ type Telemetry struct {
traceProvider *sdktrace.TracerProvider
}

func NewTelemetry(opts ...TelemetryOption) Telemetry {
func NewTelemetry(opts ...TelemetryOption) *Telemetry {
Copy link
Member Author

Choose a reason for hiding this comment

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

Not a breaking change because it was added this release.

@bogdandrutu bogdandrutu added Skip Changelog PRs that do not require a CHANGELOG.md entry Skip Contrib Tests and removed Skip Changelog PRs that do not require a CHANGELOG.md entry labels Jan 30, 2025
@bogdandrutu bogdandrutu reopened this Jan 30, 2025
@bogdandrutu bogdandrutu added this pull request to the merge queue Jan 30, 2025
Merged via the queue into open-telemetry:main with commit d9b97ff Jan 30, 2025
95 of 114 checks passed
@bogdandrutu bogdandrutu deleted the newsettings branch January 30, 2025 22:02
sfc-gh-sili pushed a commit to sfc-gh-sili/opentelemetry-collector that referenced this pull request Feb 3, 2025
…try (open-telemetry#12216)

This is the last functionality needed to replace
`metadatatest.Telemetry` with `componenttest.Telemetry`.

The `metadatatest.Telemetry` will be deprecated next release to give
time to change contrib since it is a large change.

Signed-off-by: Bogdan Drutu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants