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

update usage of logging exporter #2130

Merged
merged 6 commits into from
Oct 10, 2023

Conversation

codeboten
Copy link
Contributor

The logging exporter is being deprecated in favour of the debug exporter. This changes references to the logging exporter to use the new debug exporter instead.

Note: this will remain in draft until v0.86.0 is released which will be the first release to include the debug exporter.

@@ -48,21 +48,21 @@ spec:
timeout: 10s

exporters:
logging:
debug:
Copy link
Member

Choose a reason for hiding this comment

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

Should reflect this in a changelog? @open-telemetry/operator-approvers

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah we should probably changelog this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added changelog

Copy link
Member

Choose a reason for hiding this comment

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

The PR changes just docs and e2e tests. Not sure why the changelog is needed. Users defining the logging exporter in their manifests will need to migrate explicitly.

@codeboten is the collector printing a warning if the logging exporter is used? The operator could parse the config and print a warning in the validating webhook.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pavolloffay if the logging exporter is used, it will print out a warning like this:

2023-09-29T08:00:43.970-0700	info	exporter/exporter.go:275	Deprecated component. Will be removed in future releases.	{"kind": "exporter", "data_type": "traces", "name": "logging"}
2023-09-29T08:00:43.970-0700	info	exporter/exporter.go:275	Deprecated component. Will be removed in future releases.	{"kind": "exporter", "data_type": "metrics", "name": "logging"}
2023-09-29T08:00:43.972-0700	info	exporter/exporter.go:275	Deprecated component. Will be removed in future releases.	{"kind": "exporter", "data_type": "logs", "name": "logging"}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This deprecation warning appears for any components that are marked as deprecated

Copy link
Contributor

Choose a reason for hiding this comment

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

this sounds like a good followup task, but something we can do later

@codeboten codeboten force-pushed the codeboten/logging-debug branch from 2abbabc to eddb9bb Compare September 28, 2023 19:23
@codeboten codeboten marked this pull request as ready for review September 28, 2023 19:25
@codeboten codeboten requested review from a team September 28, 2023 19:25
@pavolloffay
Copy link
Member

@codeboten you can update https://github.com/open-telemetry/opentelemetry-operator/blob/main/versions.txt#L5 to 0.86 which will use the latest collector. It should fix failing e2e tests.

Alex Boten added 3 commits September 29, 2023 07:58
The logging exporter is being deprecated in favour of the debug exporter. This changes references to the logging
exporter to use the new debug exporter instead.

Note: this will remain in draft until v0.86.0 is released which will be the first release to include the debug exporter.

Signed-off-by: Alex Boten <[email protected]>
Signed-off-by: Alex Boten <[email protected]>
Signed-off-by: Alex Boten <[email protected]>
@codeboten codeboten force-pushed the codeboten/logging-debug branch from eddb9bb to e5b6735 Compare September 29, 2023 14:59
@codeboten
Copy link
Contributor Author

@pavolloffay rebased and bumped the version. Looks like there's still some failure. Will try to dig into them further

Alex Boten added 2 commits October 6, 2023 09:05
Signed-off-by: Alex Boten <[email protected]>
Signed-off-by: Alex Boten <[email protected]>
@codeboten
Copy link
Contributor Author

@pavolloffay @jaronoff97 finally got around to fixing the tests. PTAL

versions.txt Outdated Show resolved Hide resolved
Copy link
Contributor

@jaronoff97 jaronoff97 left a comment

Choose a reason for hiding this comment

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

this LGTM, I'm going to merge after the tests pass

@jaronoff97 jaronoff97 merged commit 282c169 into open-telemetry:main Oct 10, 2023
24 checks passed
ItielOlenick pushed a commit to ItielOlenick/opentelemetry-operator that referenced this pull request May 1, 2024
* update usage of logging exporter

The logging exporter is being deprecated in favour of the debug exporter. This changes references to the logging
exporter to use the new debug exporter instead.

Note: this will remain in draft until v0.86.0 is released which will be the first release to include the debug exporter.

Signed-off-by: Alex Boten <[email protected]>

* add changelog

Signed-off-by: Alex Boten <[email protected]>

* update collector version

Signed-off-by: Alex Boten <[email protected]>

* update expected data

Signed-off-by: Alex Boten <[email protected]>

* fix test expectations

Signed-off-by: Alex Boten <[email protected]>

---------

Signed-off-by: Alex Boten <[email protected]>
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