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

[docs] Add status header for honeycomb exporter #10318

Merged
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
### 🚩 Deprecations 🚩

- `datadogexporter`: Deprecate `Sanitize` method of `Config` struct (#8829)
- `honeycombexporter`: Deprecate honeycomb exporter (#10318)

### 🚀 New components 🚀

Expand Down
9 changes: 9 additions & 0 deletions exporter/honeycombexporter/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# Honeycomb Exporter
# Deprecated Honeycomb Exporter
| Status | |
| ------------------------ |------------------|
| Stability | [deprecated] |
| Supported pipeline types | traces |
| Distributions | [contrib] |

**NOTE:** Honeycomb now supports OTLP ingest directly. This means you can use an [OTLP](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter/otlpexporter) exporter and no longer need this exporter to send data to Honeycomb.

Expand Down Expand Up @@ -43,3 +49,6 @@ exporters:
num_consumers: 10
queue_size: 10000
```

[deprecated]:https://github.com/open-telemetry/opentelemetry-collector#deprecated
[contrib]:https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib
11 changes: 11 additions & 0 deletions exporter/honeycombexporter/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,21 @@ package honeycombexporter // import "github.com/open-telemetry/opentelemetry-col

import (
"context"
"sync"

"go.opentelemetry.io/collector/component"
"go.opentelemetry.io/collector/config"
"go.opentelemetry.io/collector/exporter/exporterhelper"
"go.uber.org/zap"
)

const (
// The value of "type" key in configuration.
typeStr = "honeycomb"
)

var once sync.Once

// NewFactory creates a factory for Honeycomb exporter.
func NewFactory() component.ExporterFactory {
return component.NewExporterFactory(
Expand All @@ -35,6 +39,12 @@ func NewFactory() component.ExporterFactory {
component.WithTracesExporter(createTracesExporter))
}

func logDeprecation(logger *zap.Logger) {
once.Do(func() {
logger.Warn("Honeycomb exporter is deprecated and will be removed in future versions.")
})
}

func createDefaultConfig() config.Exporter {
return &Config{
ExporterSettings: config.NewExporterSettings(config.NewComponentID(typeStr)),
Expand All @@ -59,6 +69,7 @@ func createTracesExporter(
return nil, err
}

logDeprecation(set.Logger)
return exporterhelper.NewTracesExporter(
cfg,
set,
Expand Down
1 change: 1 addition & 0 deletions exporter/honeycombexporter/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Deprecated: honeycombexporter exporter is deprecated and will be removed in future versions.
module github.com/open-telemetry/opentelemetry-collector-contrib/exporter/honeycombexporter

go 1.17
Expand Down
Loading