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

deprecate To*CreateSettings methods in obsreporttest.TestTelemetry #8501

Merged

Conversation

codeboten
Copy link
Contributor

@codeboten codeboten commented Sep 21, 2023

These methods create an import cycle when trying to move obsreporttest to
componenttest. Deprecating these methods will allow us to remove them in
the next version and move the remaining code into componenttest

Fixes #8492

@codeboten codeboten requested review from a team and dmitryax September 21, 2023 18:46
@codecov
Copy link

codecov bot commented Sep 21, 2023

Codecov Report

Patch coverage is 85.71% of modified lines.

Files Changed Coverage
obsreport/obsreporttest/obsreporttest.go 0.00%
exporter/exportertest/nop_exporter.go 100.00%
processor/processortest/nop_processor.go 100.00%
receiver/receivertest/nop_receiver.go 100.00%

📢 Thoughts on this report? Let us know!.

@codeboten codeboten force-pushed the codeboten/deprecate-obsreporttest branch from f05c9db to ecee0ec Compare September 21, 2023 19:07
Copy link
Member

@djaglowski djaglowski left a comment

Choose a reason for hiding this comment

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

LGTM. I agree if there are no known external uses of the deprecated functions we don't need to recommend alternatives.

@dmitryax
Copy link
Member

LGTM. I agree if there are no known external uses of the deprecated functions we don't need to recommend alternatives

I was talking about CheckScraperMetrics only. Other API is being used in contrib

These methods create an import cycle when trying to move obsreporttest to
componenttest. Deprecating these methods will allow us to remove them in
the next version and move the remaining code into componenttest

Signed-off-by: Alex Boten <aboten@lightstep.com>
@codeboten codeboten force-pushed the codeboten/deprecate-obsreporttest branch from ecee0ec to 70ff282 Compare September 22, 2023 17:26
@codeboten codeboten changed the title move obsreporttest from obsreport to internal/obsreportconfig deprecate To*CreateSettings methods in obsreporttest.TestTelemetry Sep 22, 2023
@codeboten codeboten merged commit 921b612 into open-telemetry:main Sep 22, 2023
@codeboten codeboten deleted the codeboten/deprecate-obsreporttest branch September 22, 2023 17:51
@github-actions github-actions bot added this to the next release milestone Sep 22, 2023
codeboten pushed a commit to codeboten/opentelemetry-collector that referenced this pull request Sep 22, 2023

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
follow up on open-telemetry#8501. As per the suggestion, the code in NewCreateSettings
is pretty small and not needed as a separate function.

Signed-off-by: Alex Boten <aboten@lightstep.com>
codeboten pushed a commit that referenced this pull request Sep 25, 2023
follow up on #8501. As per the suggestion, the code in NewCreateSettings
is pretty small and not needed as a separate function.

Signed-off-by: Alex Boten <aboten@lightstep.com>
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.

Deprecate obsreport and split its functionality into each component (exporter, extension,...) module.
3 participants