open-telemetry / opentelemetry-python

OpenTelemetry Python API and SDK
https://opentelemetry.io
Apache License 2.0
1.69k stars 591 forks source link

Support mtls for otlp exporter #3327

Open vlaborie opened 1 year ago

vlaborie commented 1 year ago

Hello,

Is your feature request related to a problem?

I want to use client cert authentification (mtls) between an application instrumented with python opentelemetry-sdk and otel-collector with otlp protocol but this cannot be configured (at least from env).

Describe the solution you'd like

I want the posibility to configure mtls with OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE and OTEL_EXPORTER_OTLP_CLIENT_KEY env variables like specified in opentelemetry specification.

Additional context

The specific version ot thoses variables for metrics (OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE and OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY) have been added in #2968 but not seem to be used.

srikanthccv commented 1 year ago

Feel free to send a PR :)