Add support for OTEL_LOG_LEVEL env var#1069
Add support for OTEL_LOG_LEVEL env var#1069ffe4 wants to merge 2 commits intoopen-telemetry:masterfrom
Conversation
4361aa7 to
b7954b6
Compare
Allows user to configure tracer's sampling probability via an env var. Uses parentOrElse sampler with a probability sampler delegate when setting OTEL_SAMPLING_PROBABILITY Defaults to AlwaysOnSampler when unset or set to 1. Signed-off-by: Naseem <naseem@transit.app>
|
@ffe4 |
|
@lzchen there wasn't much discussion in the specs issue for clarifying the allowed env var values open-telemetry/opentelemetry-specification#920 and it has been marked for after GA. The issue does not have the |
|
@ffe4 |
|
@lzchen I'll have a look once the spec issue is resolved, but it might make sense to just close this PR for now and post updates to the issue instead. |
|
Closing for now. |
|
@lzchen why did you close ? |
|
From the above comment:
|
|
can we re open it ? |
|
Depending on if @ffe4 would like to continue to work on this, we can reopen this pr. |
|
@lzchen Not sure about the details of this anymore, but I've noticed that the spec issue is still open. I can take a look over the weekend to see whether this PR might still be useful. |
|
@lzchen the structure of the codebase has changed quite a bit, so I don't think reopening this PR makes sense. I've also posted an update on the issue. |
Description
Adds support for configuring the SDK log level using the
OTEL_LOG_LEVELenvironment variable.Fixes #1059
Type of change
Checklist: