Skip to content

Commit

Permalink
[chore] fix deprecation version (#8506)
Browse files Browse the repository at this point in the history
Incorrectly labelled it as 0.85.0 before.

Signed-off-by: Alex Boten <[email protected]>
  • Loading branch information
Alex Boten committed Sep 25, 2023
1 parent b8eb083 commit 8643389
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions obsreport/obsreport_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ import "go.opentelemetry.io/collector/exporter/exporterhelper"

// Exporter is a helper to add observability to an exporter.
//
// Deprecated: [0.85.0] Use exporterhelper.ObsReport instead.
// Deprecated: [0.86.0] Use exporterhelper.ObsReport instead.
type Exporter = exporterhelper.ObsReport

// ExporterSettings are settings for creating an Exporter.
//
// Deprecated: [0.85.0] Use exporterhelper.ObsReportSettings instead.
// Deprecated: [0.86.0] Use exporterhelper.ObsReportSettings instead.
type ExporterSettings = exporterhelper.ObsReportSettings

// NewExporter creates a new Exporter.
//
// Deprecated: [0.85.0] Use exporterhelper.New instead.
// Deprecated: [0.86.0] Use exporterhelper.New instead.
func NewExporter(cfg ExporterSettings) (*exporterhelper.ObsReport, error) {
return exporterhelper.NewObsReport(cfg)
}
8 changes: 4 additions & 4 deletions obsreport/obsreport_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@ import (
// the standards used in the Collector. The configType should be the same
// value used to identify the type on the config.
//
// Deprecated: [0.85.0] Use processorhelper.BuildCustomMetricName instead.
// Deprecated: [0.86.0] Use processorhelper.BuildCustomMetricName instead.
func BuildProcessorCustomMetricName(configType, metric string) string {
return processorhelper.BuildCustomMetricName(configType, metric)
}

// Processor is a helper to add observability to a processor.
//
// Deprecated: [0.85.0] Use processorhelper.ObsReport instead.
// Deprecated: [0.86.0] Use processorhelper.ObsReport instead.
type Processor = processorhelper.ObsReport

// ProcessorSettings is a helper to add observability to a processor.
//
// Deprecated: [0.85.0] Use processorhelper.ObsReportSettings instead.
// Deprecated: [0.86.0] Use processorhelper.ObsReportSettings instead.
type ProcessorSettings = processorhelper.ObsReportSettings

// NewProcessor creates a new Processor.
//
// Deprecated: [0.85.0] Use processorhelper.NewObsReport instead.
// Deprecated: [0.86.0] Use processorhelper.NewObsReport instead.
func NewProcessor(cfg ProcessorSettings) (*Processor, error) {
return processorhelper.NewObsReport(cfg)
}
6 changes: 3 additions & 3 deletions obsreport/obsreport_receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ import "go.opentelemetry.io/collector/receiver/receiverhelper"

// Receiver is a helper to add observability to a receiver.
//
// Deprecated: [0.85.0] Use receiverhelper.ObsReport instead.
// Deprecated: [0.86.0] Use receiverhelper.ObsReport instead.
type Receiver = receiverhelper.ObsReport

// ReceiverSettings are settings for creating an Receiver.
//
// Deprecated: [0.85.0] Use receiverhelper.ObsReportSettings instead.
// Deprecated: [0.86.0] Use receiverhelper.ObsReportSettings instead.
type ReceiverSettings = receiverhelper.ObsReportSettings

// NewReceiver creates a new Receiver.
//
// Deprecated: [0.85.0] Use receiverhelper.NewObsReport instead.
// Deprecated: [0.86.0] Use receiverhelper.NewObsReport instead.
func NewReceiver(cfg ReceiverSettings) (*Receiver, error) {
return receiverhelper.NewObsReport(cfg)
}
6 changes: 3 additions & 3 deletions obsreport/obsreport_scraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ import "go.opentelemetry.io/collector/receiver/scraperhelper"

// Scraper is a helper to add observability to a scraper.
//
// Deprecated: [0.85.0] Use scraperhelper.ObsReport instead.
// Deprecated: [0.86.0] Use scraperhelper.ObsReport instead.
type Scraper = scraperhelper.ObsReport

// ScraperSettings are settings for creating a Scraper.
//
// Deprecated: [0.85.0] Use scraperhelper.ObsReportSettings instead.
// Deprecated: [0.86.0] Use scraperhelper.ObsReportSettings instead.
type ScraperSettings = scraperhelper.ObsReportSettings

// NewScraper creates a new Scraper.
//
// Deprecated: [0.85.0] Use scraperhelper.NewObsReport instead.
// Deprecated: [0.86.0] Use scraperhelper.NewObsReport instead.
func NewScraper(cfg ScraperSettings) (*Scraper, error) {
return scraperhelper.NewObsReport(cfg)
}
6 changes: 3 additions & 3 deletions obsreport/obsreporttest/obsreporttest.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,21 @@ type TestTelemetry struct {

// ToExporterCreateSettings returns an exporter.CreateSettings with configured TelemetrySettings.
//
// Deprecated: [0.85.0] Use exportertest.NewCreateSettings instead
// Deprecated: [0.86.0] Use exportertest.NewCreateSettings instead
func (tts *TestTelemetry) ToExporterCreateSettings() exporter.CreateSettings {
return exportertest.NewCreateSettings(tts.id, tts.TelemetrySettings)
}

// ToProcessorCreateSettings returns a processor.CreateSettings with configured TelemetrySettings.
//
// Deprecated: [0.85.0] Use processortest.NewCreateSettings instead
// Deprecated: [0.86.0] Use processortest.NewCreateSettings instead
func (tts *TestTelemetry) ToProcessorCreateSettings() processor.CreateSettings {
return processortest.NewCreateSettings(tts.id, tts.TelemetrySettings)
}

// ToReceiverCreateSettings returns a receiver.CreateSettings with configured TelemetrySettings.
//
// Deprecated: [0.85.0] Use receivertest.NewCreateSettings instead
// Deprecated: [0.86.0] Use receivertest.NewCreateSettings instead
func (tts *TestTelemetry) ToReceiverCreateSettings() receiver.CreateSettings {
return receivertest.NewCreateSettings(tts.id, tts.TelemetrySettings)
}
Expand Down

0 comments on commit 8643389

Please sign in to comment.