Make Otlp exporter configuration environment variables specs-compliant#974
Conversation
Codecov Report
@@ Coverage Diff @@
## main #974 +/- ##
=======================================
Coverage 95.38% 95.38%
=======================================
Files 161 161
Lines 6817 6817
=======================================
Hits 6502 6502
Misses 315 315 |
Co-authored-by: Tom Tan <lilotom@gmail.com>
Co-authored-by: Tom Tan <lilotom@gmail.com>
jsuereth
left a comment
There was a problem hiding this comment.
Commented on the bug as well.
I don't think this is sufficient for a 1.0 against the specification.
I think there are two enviornment variables here that you can leave for legacy users BUT you should provide the new environment variables as alternatives, specifically:
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT and OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE
|
@jsuereth - It was creating more noise in code to support both legacy and compliant environment variables, and would further increase in future once we start supporting |
| const OtlpGrpcExporterOptions &options) | ||
| { | ||
| std::shared_ptr<grpc::Channel> channel; | ||
|
|
There was a problem hiding this comment.
will remove this commit later.
|
@owent - As these env variables were initially modified by you, would like to have a look into this PR. Thanks. |
LGTM. Should we also make the same changes for |
Thanks for reviewing @owais. |
OK. I think I can add support of these environment variables for
But |
That would be awesome :)
Agree. |
Fixes #971
Changes
This PR makes otlp exporter configuration environment variables specs compliant.
Also add one new env variable ( not part of specs ) -
OTEL_EXPORTER_OTLP_CERTIFICATE_STRINGto specify certificate as string.Also introduce new env-variables ( not part of specs ) `
For significant contributions please make sure you have completed the following items:
CHANGELOG.mdupdated for non-trivial changes