serilog-sinks-opentelemetry
serilog-sinks-opentelemetry copied to clipboard
Add support for specific endpoint environment variables
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.
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: