Open bderrly opened 1 week ago
Pinging code owners:
exporter/splunkhec: @atoulme @dmitryax
See Adding Labels via Comments if you do not have permissions to add labels yourself.
Would you like to offer a PR to fix the naming?
I could do that. Before I set out to do it, is there agreement that the naming is confusing enough that we should change it?
Yes, I think so. As you change the name, we will want to mark the current field deprecated and keep it around for a little while, and introduce a new field. Best to discuss the name of the new field in this issue. I guess it should be otel_attrs_to_hec_metadata
?
I guess it should be
otel_attrs_to_hec_metadata
?
That is what I was thinking.
Component(s)
exporter/splunkhec
Describe the issue you're reporting
The config option
hec_metadata_to_otel_attrs
is confusing when used with the splunkhec exporter as the actual effect is the opposite, i.e. taking otel attributes and using them as HEC metadata when sending to some destination.https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/bd66cebb0a7848c5e38a8d29a26532ee2c5a1d91/exporter/splunkhecexporter/config.go#L120