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

[exporter/logging] Add warning to logging exporter #11050

Merged

Conversation

TylerHelmuth
Copy link
Member

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

image

@TylerHelmuth TylerHelmuth requested review from a team and dmitryax September 4, 2024 14:58
@TylerHelmuth TylerHelmuth added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Sep 4, 2024
Copy link

codecov bot commented Sep 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.23%. Comparing base (15542e6) to head (3939180).
Report is 10 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

@codeboten codeboten merged commit 631df98 into open-telemetry:main Sep 4, 2024
50 of 66 checks passed
@github-actions github-actions bot added this to the next release milestone Sep 4, 2024
@@ -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")
Copy link
Member

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?

Copy link
Contributor

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

@TylerHelmuth TylerHelmuth deleted the add-warning-to-logging-exporter branch September 4, 2024 16:26
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.

4 participants