serilog-sinks-opentelemetry icon indicating copy to clipboard operation
serilog-sinks-opentelemetry copied to clipboard

Add support for specific endpoint environment variables

Open neistow opened this issue 3 months ago • 1 comments

Partially fixes #165

Refactored OpenTelemetryEnvironment.Configure to account for specific endpoint environment variables. Introduced OpenTelemetryEnvironmentVariables helper, where all well-known OTEL environment variables are defined.

More work needs to be done to support OTEL_EXPORTER_OTLP_LOGS_PROTOCOL/OTEL_EXPORTER_OTLP_TRACES_PROTOCOL and OTEL_EXPORTER_OTLP_LOGS_HEADERS/OTEL_EXPORTER_OTLP_TRACES_HEADERS variables, since with the current implementation IExporter doesn't support different protocols for traces and logs.

neistow avatar Aug 19 '25 18:08 neistow

Thanks for sending this. Currently running tight on time to review but should be able to loop back around to it in the next week or so :+1:

nblumhardt avatar Aug 25 '25 00:08 nblumhardt