[Trace SDK] OTLP Trace Exporter secure connection configuration options #1402
Labels
area:exporter:otlp
OpenTelemetry Protocol (OTLP) Exporter
bug
Something isn't working
do-not-stale
priority:p2
Issues that are not blocking
spec-compliance
Not compliant to OpenTelemetry specs
Milestone
Greetings,
In the spec, for the OpenTelemetry Protocol Exporter configurations options:
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#specifying-headers-via-environment-variables
The spec says:
(...)
(1) Certificate File:
Env vars:
OTEL_EXPORTER_OTLP_CERTIFICATE
OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE
...(2) Client key file:
Env vars:
OTEL_EXPORTER_OTLP_CLIENT_KEY
OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY
...(3) Client certificate file:
Env vars:
OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE
OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE
...Currently, opentelemetry-cpp supports the following environment variables:
OTEL_EXPORTER_OTLP_CERTIFICATE
OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE
which covers (1), per the spec.
OTEL_EXPORTER_OTLP_CERTIFICATE_STRING
OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE_STRING
which covers (1), in addition to the spec (great).
Implementation for (2) and (3) appear to be missing.
Also, secure connection options are only used for the
OtlpGrpcExporter
Should the
OtlpHttpExporter
honor the same variables as well ?Currently there are no security options in
OtlpHttpExporterOptions
.My understanding from the spec is that secure options apply to the OTLP exporter in general: that is, to both OTLP/gRPC and OTLP/HTTP end points.
Regards.
The text was updated successfully, but these errors were encountered: