opentelemetry.environment_variables package

Module contents

opentelemetry.environment_variables.OTEL_LOGS_EXPORTER = 'OTEL_LOGS_EXPORTER'
OTEL_LOGS_EXPORTER
opentelemetry.environment_variables.OTEL_METRICS_EXPORTER = 'OTEL_METRICS_EXPORTER'
OTEL_METRICS_EXPORTER

Specifies which exporter is used for metrics. See General SDK Configuration.

Default value: "otlp"

Example:

export OTEL_METRICS_EXPORTER="prometheus"

Accepted values for OTEL_METRICS_EXPORTER are:

  • "otlp"

  • "prometheus"

  • "none": No automatically configured exporter for metrics.

Note

Exporter packages may add entry points for group opentelemetry_metrics_exporter which can then be used with this environment variable by name. The entry point should point to either a opentelemetry.sdk.metrics.export.MetricExporter (push exporter) or opentelemetry.sdk.metrics.export.MetricReader (pull exporter) subclass; it must be constructable without any required arguments. This mechanism is considered experimental and may change in subsequent releases.

opentelemetry.environment_variables.OTEL_PROPAGATORS = 'OTEL_PROPAGATORS'
OTEL_PROPAGATORS
opentelemetry.environment_variables.OTEL_PYTHON_CONTEXT = 'OTEL_PYTHON_CONTEXT'
OTEL_PYTHON_CONTEXT
opentelemetry.environment_variables.OTEL_PYTHON_ID_GENERATOR = 'OTEL_PYTHON_ID_GENERATOR'
OTEL_PYTHON_ID_GENERATOR
opentelemetry.environment_variables.OTEL_TRACES_EXPORTER = 'OTEL_TRACES_EXPORTER'
OTEL_TRACES_EXPORTER
opentelemetry.environment_variables.OTEL_PYTHON_TRACER_PROVIDER = 'OTEL_PYTHON_TRACER_PROVIDER'
OTEL_PYTHON_TRACER_PROVIDER
opentelemetry.environment_variables.OTEL_PYTHON_METER_PROVIDER = 'OTEL_PYTHON_METER_PROVIDER'
OTEL_PYTHON_METER_PROVIDER