diff --git a/CHANGELOG.md b/CHANGELOG.md index a45870bd0992..f84c57f21a23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 💡 diff --git a/exporter/splunkhecexporter/exporter.go b/exporter/splunkhecexporter/exporter.go index 703a24638641..4d928584e034 100644 --- a/exporter/splunkhecexporter/exporter.go +++ b/exporter/splunkhecexporter/exporter.go @@ -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,