From 1370586bc4fde13cb622a48540012307e7d37240 Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Mon, 13 Dec 2021 11:09:50 -0800 Subject: [PATCH] add OTEL_LOGS_EXPORTER env variable As per the change in the specification, adding the variable. There will be a follow up PR to use the variable. --- CHANGELOG.md | 2 ++ .../src/opentelemetry/environment_variables.py | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd154b753cb..08b3d63ecb0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ([#2253](https://github.com/open-telemetry/opentelemetry-python/pull/2253)) - Rename ConsoleExporter to ConsoleLogExporter ([#2307](https://github.com/open-telemetry/opentelemetry-python/pull/2307)) +- Adding OTEL_LOGS_EXPORTER environment variable + ([#](https://github.com/open-telemetry/opentelemetry-python/pull/)) ## [1.7.1-0.26b1](https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.7.0-0.26b0) - 2021-11-11 diff --git a/opentelemetry-api/src/opentelemetry/environment_variables.py b/opentelemetry-api/src/opentelemetry/environment_variables.py index af2319453cd..0810acc5ff0 100644 --- a/opentelemetry-api/src/opentelemetry/environment_variables.py +++ b/opentelemetry-api/src/opentelemetry/environment_variables.py @@ -12,6 +12,12 @@ # See the License for the specific language governing permissions and # limitations under the License. +OTEL_LOGS_EXPORTER = "OTEL_LOGS_EXPORTER" +""" +.. envvar:: OTEL_LOGS_EXPORTER + +""" + OTEL_METRICS_EXPORTER = "OTEL_METRICS_EXPORTER" """ .. envvar:: OTEL_METRICS_EXPORTER