-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[exporter/logging] Add warning to logging exporter #11050
[exporter/logging] Add warning to logging exporter #11050
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #11050 +/- ##
=======================================
Coverage 92.22% 92.23%
=======================================
Files 409 405 -4
Lines 19134 19089 -45
=======================================
- Hits 17646 17606 -40
+ Misses 1127 1123 -4
+ Partials 361 360 -1 ☔ View full report in Codecov by Sentry. |
@@ -44,6 +44,7 @@ func createDefaultConfig() component.Config { | |||
} | |||
|
|||
func createTracesExporter(ctx context.Context, set exporter.Settings, config component.Config) (exporter.Traces, error) { | |||
set.TelemetrySettings.Logger.Warn("The logging exporter is DEPRECATED and will be REMOVED in v0.111.0. Use the debug exporter instead: https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter/debugexporter") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to actually have a feature gate, we fail if not enabled? that way we signal even more?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This message has been emitted for close to a year:
2024-09-04T09:11:09.411-0700 info builders/builders.go:26 Deprecated component. Will be removed in future releases. {"kind": "exporter", "data_type": "metrics", "name": "logging"}
But I understand this is a component that has been documented/used widely. Maybe it makes sense for this component to use a feature gate
Description
Add warning to logging exporter on startup to remind users to switch to the debug exporter.
Link to tracking issue
Related to #11037
Testing