Skip to content

Commit

Permalink
Deprecate otel_to_hec_fields.name setting from splunkhec exporter
Browse files Browse the repository at this point in the history
The LogRecord Name field [is removed](open-telemetry/opentelemetry-specification#2271) from the specification and is [going to be removed](open-telemetry/opentelemetry-proto#357) from the OTLP.
  • Loading branch information
tigrannajaryan committed Feb 3, 2022
1 parent 2bcba8c commit fb06a6f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
- `resourcetotelemetry`: Ensure resource attributes are added to summary
and exponential histogram data points. (#7523)

## Deprecations

- Deprecated otel_to_hec_fields.name setting from splunkhec exporter. (#7560)

## v0.43.0

## 💡 Enhancements 💡
Expand Down
4 changes: 4 additions & 0 deletions exporter/splunkhecexporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ func createExporter(
config.SplunkAppVersion = buildinfo.Version
}

if config.HecFields.Name != "" {
logger.Warn("otel_to_hec_fields.name setting is deprecated and will be removed soon.")
}

options, err := config.getOptionsFromConfig()
if err != nil {
return nil,
Expand Down

0 comments on commit fb06a6f

Please sign in to comment.