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 processor API in obsreport #8496

Merged

Conversation

codeboten
Copy link
Contributor

@codeboten codeboten commented Sep 20, 2023

These deprecated methods/structs have been moved to processorhelper:

  • obsreport.BuildProcessorCustomMetricName -> processorhelper.BuildCustomMetricName
  • obsreport.Processor -> processorhelper.ObsReport
  • obsreport.ProcessorSettings -> processorhelper.ObsReportSettings
  • obsreport.NewProcessor -> processorhelper.NewObsReport

Same as the change for the exporter, no functional changes just moving code over to the
new location.

Follows #8493

@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Patch coverage is 93.43% of modified lines.

Files Changed Coverage
obsreport/obsreport_processor.go 0.00%
processor/processorhelper/obsreport.go 94.02%
processor/batchprocessor/metrics.go 100.00%
processor/memorylimiterprocessor/memorylimiter.go 100.00%
service/internal/proctelemetry/config.go 100.00%

📢 Thoughts on this report? Let us know!.

@codeboten codeboten force-pushed the codeboten/obsreport-processor branch from df40229 to d5c813d Compare September 20, 2023 16:33
@codeboten codeboten marked this pull request as ready for review September 20, 2023 16:34
@codeboten codeboten requested review from a team and bogdandrutu September 20, 2023 16:34
@codeboten codeboten force-pushed the codeboten/obsreport-processor branch 2 times, most recently from bb9e22d to d431e72 Compare September 20, 2023 17:28
These deprecated methods/structs have been moved to processorhelper:
  - `obsreport.BuildProcessorCustomMetricName` -> `processorhelper.BuildCustomMetricName`
  - `obsreport.Processor` -> `processorhelper.Processor`
  - `obsreport.ProcessorSettings` -> `processorhelper.Settings`
  - `obsreport.NewProcessor` -> `processorhelper.New`

Same as the change for the exporter, no functional changes just moving code over to the
new location.

Signed-off-by: Alex Boten <[email protected]>
@codeboten codeboten force-pushed the codeboten/obsreport-processor branch from d431e72 to 01e612e Compare September 20, 2023 22:33
Signed-off-by: Alex Boten <[email protected]>
@codeboten codeboten merged commit 9549a14 into open-telemetry:main Sep 20, 2023
@codeboten codeboten deleted the codeboten/obsreport-processor branch September 20, 2023 23:51
@github-actions github-actions bot added this to the next release milestone Sep 20, 2023
codeboten pushed a commit that referenced this pull request Sep 21, 2023
These deprecated methods/structs have been moved to receiverhelper and
scraperhelper:
  - `obsreport.Receiver` -> `receiverhelper.ObsReport`
  - `obsreport.ReceiverSettings` -> `receiverhelper.ObsReportSettings`
  - `obsreport.NewReceiver` -> `receiverhelper.NewObsReport`
  - `obsreport.Scraper` -> `scraperhelper.ObsReport`
  - `obsreport.ScraperSettings` -> `scraperhelper.ObsReportSettings`
  - `obsreport.NewScraper` -> `scraperhelper.NewObsReport`

~Follows #8496~

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.

2 participants