open-telemetry / opentelemetry-configuration

JSON Schema definitions for OpenTelemetry file configuration
Apache License 2.0
41 stars 17 forks source link

Add `*.otlp.headers_list` property to support `OTEL_EXPORTER_OTLP_{SIGNAL}_HEADERS` #117

Closed jack-berg closed 2 months ago

jack-berg commented 2 months ago

Similar to the support for .resource.attributes_list added #106 to support OTEL_RESOURCE_ATTRIBUTES, we should add *.otlp.headers_list to support OTEL_EXPORTER_OTLP_{SIGNAL}_HEADERS.

Yes I agree. I punted on that in #106 to minimize the scope of the PR, but definitely think we should add support for *.otlp.headers_list to allow compatibility with the OTEL_EXPORTER_OTLP_{SIGNAL}_HEADERS env vars.

_Originally posted by @jack-berg in https://github.com/open-telemetry/opentelemetry-configuration/pull/115#discussion_r1742666660_