Skip to content

[OTel]: Spin should support OTEL_EXPORTER_OTLP_HEADERS  #2880

@ThorstenHans

Description

@ThorstenHans

Having support for OTEL_EXPORTER_OTLP_HEADERS could unlock several scenarios. For example, we could support OTLP exporters that require header based authentication.

Spin should allow users to specify individual headers that will be used when emitting traces, logs, or metrics.

If the OTEL_EXPORTER_OTLP_HEADERS environment variable is present, Spin should configure outgoing headers on both TonicExporterBuilder and HttpExporterBuilder using the with_headers function

(see https://docs.rs/opentelemetry-otlp/0.26.0/opentelemetry_otlp/struct.HttpExporterBuilder.html#method.with_headers for example)

More about OTEL_EXPORTER_OTLP_HEADERS:

https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/#otel_exporter_otlp_headers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions