Skip to content

Commit

Permalink
[exporter/splunkhec] Deprecate otel_to_hec_fields.name setting (open-…
Browse files Browse the repository at this point in the history
…telemetry#7560)

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 authored and tomsanbear committed Mar 2, 2022
1 parent 7f7db49 commit 8167918
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 @@ -37,6 +37,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 8167918

Please sign in to comment.