-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
@@ -59,6 +59,7 @@ std::unique_ptr<proto::collector::trace::v1::TraceService::Stub> MakeServiceStub | |||
const OtlpGrpcExporterOptions &options) | |||
{ | |||
std::shared_ptr<grpc::Channel> channel; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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_STRING
to 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.md
updated for non-trivial changes