Skip to content

Commit

Permalink
Deprecating obsreport scraper and receiver API (#8498)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Alex Boten authored Sep 21, 2023
1 parent 9549a14 commit 68dd7d7
Show file tree
Hide file tree
Showing 23 changed files with 743 additions and 633 deletions.
32 changes: 32 additions & 0 deletions .chloggen/codeboten_obsreport-scraper.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Use this changelog template to create an entry for release notes.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: deprecation

# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
component: obsreport

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: "Deprecating obsreport scraper and receiver API"

# One or more tracking issues or pull requests related to the change
issues: [8492]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext: |
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`
# Optional: The change log or logs in which this entry should be included.
# e.g. '[user]' or '[user, api]'
# Include 'user' if the change is relevant to end users.
# Include 'api' if there is a change to a library API.
# Default: '[user]'
change_logs: [api]
1 change: 0 additions & 1 deletion exporter/otlphttpexporter/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ require (
go.opentelemetry.io/collector/extension v0.85.0 // indirect
go.opentelemetry.io/collector/extension/auth v0.85.0 // indirect
go.opentelemetry.io/collector/featuregate v1.0.0-rcv0014 // indirect
go.opentelemetry.io/collector/processor v0.85.0 // indirect
go.opentelemetry.io/collector/service v0.0.0-20230915215502-07938f20fcc7 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.44.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.44.0 // indirect
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,9 @@ require (
go.opentelemetry.io/collector/service v0.0.0-20230915215502-07938f20fcc7
go.opentelemetry.io/otel v1.18.0
go.opentelemetry.io/otel/exporters/prometheus v0.41.0
go.opentelemetry.io/otel/metric v1.18.0
go.opentelemetry.io/otel/sdk v1.18.0
go.opentelemetry.io/otel/sdk/metric v0.41.0
go.opentelemetry.io/otel/trace v1.18.0
go.uber.org/multierr v1.11.0
go.uber.org/zap v1.26.0
)

require (
Expand Down Expand Up @@ -63,7 +60,10 @@ require (
github.com/yusufpapurcu/wmi v1.2.3 // indirect
go.opentelemetry.io/collector/confmap v0.85.0 // indirect
go.opentelemetry.io/collector/extension v0.85.0 // indirect
go.opentelemetry.io/otel/metric v1.18.0 // indirect
go.opentelemetry.io/otel/trace v1.18.0 // indirect
go.uber.org/goleak v1.2.1 // indirect
go.uber.org/zap v1.26.0 // indirect
golang.org/x/net v0.15.0 // indirect
golang.org/x/sys v0.12.0 // indirect
golang.org/x/text v0.13.0 // indirect
Expand Down
21 changes: 0 additions & 21 deletions obsreport/obsreport.go

This file was deleted.

Loading

0 comments on commit 68dd7d7

Please sign in to comment.