Skip to content

Conversation

@axw
Copy link
Contributor

@axw axw commented Oct 22, 2025

Description

Remove the default telemetry factory, and require callers to specify one, to keep things maintainable.

Link to tracking issue

Fixes #14003

Testing

Documentation

N/A

@codecov
Copy link

codecov bot commented Oct 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.47%. Comparing base (74fe363) to head (d46adfd).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14062      +/-   ##
==========================================
+ Coverage   92.45%   92.47%   +0.01%     
==========================================
  Files         660      660              
  Lines       36218    36218              
==========================================
+ Hits        33486    33492       +6     
+ Misses       1911     1907       -4     
+ Partials      821      819       -2     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@axw
Copy link
Contributor Author

axw commented Oct 23, 2025

Just waiting for open-telemetry/opentelemetry-collector-contrib#43718 to be merged now

@axw axw force-pushed the otelcol-factoriestelemetry-required branch from 5747c70 to 1f6461c Compare October 27, 2025 00:59
Remove the default telemetry factory, and require
callers to specify one, to keep things maintainable.
@axw axw force-pushed the otelcol-factoriestelemetry-required branch from 1f6461c to d46adfd Compare October 27, 2025 01:03
@axw axw marked this pull request as ready for review October 27, 2025 01:52
@axw axw requested a review from a team as a code owner October 27, 2025 01:52
@axw axw requested a review from mx-psi October 27, 2025 01:52
Copy link
Member

@mx-psi mx-psi left a comment

Choose a reason for hiding this comment

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

LGTM. Do we want to wait until the previous change has been released in a tagged version before merging this?

Comment on lines 23 to 25
if factories.Telemetry == nil {
factories.Telemetry = otelconftelemetry.NewFactory()
factories.Telemetry = nopTelemetryFactory()
}
Copy link
Member

Choose a reason for hiding this comment

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

Why not really ask users to provide even the no-op?

Copy link
Contributor

Choose a reason for hiding this comment

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

i'm ok with setting this as a convenience in otelcoltest

Comment on lines 23 to 25
if factories.Telemetry == nil {
factories.Telemetry = otelconftelemetry.NewFactory()
factories.Telemetry = nopTelemetryFactory()
}
Copy link
Contributor

Choose a reason for hiding this comment

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

i'm ok with setting this as a convenience in otelcoltest

@axw
Copy link
Contributor Author

axw commented Oct 28, 2025

Waiting for the following release is fine by me.

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.

otelcol: make Factories.Telemetry required

5 participants