Skip to content

Commit

Permalink
[obsreport] remove deprecated methods (#8536)
Browse files Browse the repository at this point in the history
This removes methods deprecated in the previous release.

Signed-off-by: Alex Boten <[email protected]>
  • Loading branch information
Alex Boten authored Sep 26, 2023
1 parent d3ae2ad commit a171b09
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 139 deletions.
25 changes: 25 additions & 0 deletions .chloggen/codeboten_rm-deprecated-obsreport1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Use this changelog template to create an entry for release notes.

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

# 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: remove methods/structs deprecated in previous release.

# 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:

# 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]
23 changes: 0 additions & 23 deletions obsreport/obsreport_exporter.go

This file was deleted.

34 changes: 0 additions & 34 deletions obsreport/obsreport_processor.go

This file was deleted.

23 changes: 0 additions & 23 deletions obsreport/obsreport_receiver.go

This file was deleted.

23 changes: 0 additions & 23 deletions obsreport/obsreport_scraper.go

This file was deleted.

36 changes: 0 additions & 36 deletions obsreport/obsreporttest/obsreporttest.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ import (
"go.opentelemetry.io/collector/component"
"go.opentelemetry.io/collector/component/componenttest"
"go.opentelemetry.io/collector/config/configtelemetry"
"go.opentelemetry.io/collector/exporter"
"go.opentelemetry.io/collector/internal/obsreportconfig"
"go.opentelemetry.io/collector/processor"
"go.opentelemetry.io/collector/receiver"
)

const (
Expand Down Expand Up @@ -50,39 +47,6 @@ type TestTelemetry struct {
ocExporter *ocprom.Exporter
}

// ToExporterCreateSettings returns an exporter.CreateSettings with configured TelemetrySettings.
//
// Deprecated: [0.86.0] Use exporter.CreateSettings struct instead.
func (tts *TestTelemetry) ToExporterCreateSettings() exporter.CreateSettings {
return exporter.CreateSettings{
ID: tts.id,
TelemetrySettings: tts.TelemetrySettings,
BuildInfo: component.NewDefaultBuildInfo(),
}
}

// ToProcessorCreateSettings returns a processor.CreateSettings with configured TelemetrySettings.
//
// Deprecated: [0.86.0] Use processor.CreateSettings struct instead.
func (tts *TestTelemetry) ToProcessorCreateSettings() processor.CreateSettings {
return processor.CreateSettings{
ID: tts.id,
TelemetrySettings: tts.TelemetrySettings,
BuildInfo: component.NewDefaultBuildInfo(),
}
}

// ToReceiverCreateSettings returns a receiver.CreateSettings with configured TelemetrySettings.
//
// Deprecated: [0.86.0] Use receiver.CreateSettings struct instead.
func (tts *TestTelemetry) ToReceiverCreateSettings() receiver.CreateSettings {
return receiver.CreateSettings{
ID: tts.id,
TelemetrySettings: tts.TelemetrySettings,
BuildInfo: component.NewDefaultBuildInfo(),
}
}

// CheckExporterTraces checks that for the current exported values for trace exporter metrics match given values.
// When this function is called it is required to also call SetupTelemetry as first thing.
func (tts *TestTelemetry) CheckExporterTraces(sentSpans, sendFailedSpans int64) error {
Expand Down

0 comments on commit a171b09

Please sign in to comment.