opentelemetry.sdk.environment_variables
The OpenTelemetry Python SDK can be configured through environment variables. These variables control behaviors such as exporter selection, resource attributes, span limits, and trace sampling. They follow the conventions defined by the OpenTelemetry specification.
- opentelemetry.sdk.environment_variables.OTEL_SDK_DISABLED = 'OTEL_SDK_DISABLED'
- OTEL_SDK_DISABLED
The
OTEL_SDK_DISABLEDenvironment variable disables the SDK for all signals Default: “false”
- opentelemetry.sdk.environment_variables.OTEL_RESOURCE_ATTRIBUTES = 'OTEL_RESOURCE_ATTRIBUTES'
- OTEL_RESOURCE_ATTRIBUTES
The
OTEL_RESOURCE_ATTRIBUTESenvironment variable allows resource attributes to be passed to the SDK at process invocation. The attributes fromOTEL_RESOURCE_ATTRIBUTESare merged with those passed toResource.create, meaningOTEL_RESOURCE_ATTRIBUTEStakes lower priority. Attributes should be in the formatkey1=value1,key2=value2. Additional details are available in the specification.$ OTEL_RESOURCE_ATTRIBUTES="service.name=shoppingcard,will_be_overridden=foo" python - <<EOF import pprint from opentelemetry.sdk.resources import Resource pprint.pprint(Resource.create({"will_be_overridden": "bar"}).attributes) EOF {'service.name': 'shoppingcard', 'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', 'telemetry.sdk.version': '0.13.dev0', 'will_be_overridden': 'bar'}
- opentelemetry.sdk.environment_variables.OTEL_LOG_LEVEL = 'OTEL_LOG_LEVEL'
- OTEL_LOG_LEVEL
The
OTEL_LOG_LEVELenvironment variable sets the log level used by the SDK logger Default: “info”
- opentelemetry.sdk.environment_variables.OTEL_TRACES_SAMPLER = 'OTEL_TRACES_SAMPLER'
- OTEL_TRACES_SAMPLER
The
OTEL_TRACES_SAMPLERenvironment variable sets the sampler to be used for traces. Sampling is a mechanism to control the noise introduced by OpenTelemetry by reducing the number of traces collected and sent to the backend Default: “parentbased_always_on”
- opentelemetry.sdk.environment_variables.OTEL_TRACES_SAMPLER_ARG = 'OTEL_TRACES_SAMPLER_ARG'
- OTEL_TRACES_SAMPLER_ARG
The
OTEL_TRACES_SAMPLER_ARGenvironment variable will only be used if OTEL_TRACES_SAMPLER is set. Each Sampler type defines its own expected input, if any. Invalid or unrecognized input is ignored, i.e. the SDK behaves as if OTEL_TRACES_SAMPLER_ARG is not set.
- opentelemetry.sdk.environment_variables.OTEL_BLRP_SCHEDULE_DELAY = 'OTEL_BLRP_SCHEDULE_DELAY'
- OTEL_BLRP_SCHEDULE_DELAY
The
OTEL_BLRP_SCHEDULE_DELAYrepresents the delay interval between two consecutive exports of the BatchLogRecordProcessor. Default: 1000
- opentelemetry.sdk.environment_variables.OTEL_BLRP_EXPORT_TIMEOUT = 'OTEL_BLRP_EXPORT_TIMEOUT'
- OTEL_BLRP_EXPORT_TIMEOUT
The
OTEL_BLRP_EXPORT_TIMEOUTrepresents the maximum allowed time to export data from the BatchLogRecordProcessor. This environment variable currently does nothing, see https://github.com/open-telemetry/opentelemetry-python/issues/4555. Default: 30000
- opentelemetry.sdk.environment_variables.OTEL_BLRP_MAX_QUEUE_SIZE = 'OTEL_BLRP_MAX_QUEUE_SIZE'
- OTEL_BLRP_MAX_QUEUE_SIZE
The
OTEL_BLRP_MAX_QUEUE_SIZErepresents the maximum queue size for the data export of the BatchLogRecordProcessor. Default: 2048
- opentelemetry.sdk.environment_variables.OTEL_BLRP_MAX_EXPORT_BATCH_SIZE = 'OTEL_BLRP_MAX_EXPORT_BATCH_SIZE'
- OTEL_BLRP_MAX_EXPORT_BATCH_SIZE
The
OTEL_BLRP_MAX_EXPORT_BATCH_SIZErepresents the maximum batch size for the data export of the BatchLogRecordProcessor. Default: 512
- opentelemetry.sdk.environment_variables.OTEL_BSP_SCHEDULE_DELAY = 'OTEL_BSP_SCHEDULE_DELAY'
- OTEL_BSP_SCHEDULE_DELAY
The
OTEL_BSP_SCHEDULE_DELAYrepresents the delay interval between two consecutive exports of the BatchSpanProcessor. Default: 5000
- opentelemetry.sdk.environment_variables.OTEL_BSP_EXPORT_TIMEOUT = 'OTEL_BSP_EXPORT_TIMEOUT'
- OTEL_BSP_EXPORT_TIMEOUT
The
OTEL_BSP_EXPORT_TIMEOUTrepresents the maximum allowed time to export data from the BatchSpanProcessor. Default: 30000
- opentelemetry.sdk.environment_variables.OTEL_BSP_MAX_QUEUE_SIZE = 'OTEL_BSP_MAX_QUEUE_SIZE'
- OTEL_BSP_MAX_QUEUE_SIZE
The
OTEL_BSP_MAX_QUEUE_SIZErepresents the maximum queue size for the data export of the BatchSpanProcessor. Default: 2048
- opentelemetry.sdk.environment_variables.OTEL_BSP_MAX_EXPORT_BATCH_SIZE = 'OTEL_BSP_MAX_EXPORT_BATCH_SIZE'
- OTEL_BSP_MAX_EXPORT_BATCH_SIZE
The
OTEL_BSP_MAX_EXPORT_BATCH_SIZErepresents the maximum batch size for the data export of the BatchSpanProcessor. Default: 512
- opentelemetry.sdk.environment_variables.OTEL_ATTRIBUTE_COUNT_LIMIT = 'OTEL_ATTRIBUTE_COUNT_LIMIT'
- OTEL_ATTRIBUTE_COUNT_LIMIT
The
OTEL_ATTRIBUTE_COUNT_LIMITrepresents the maximum allowed attribute count for spans, events and links. This limit is overridden by model specific limits such as OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT. Default: 128
- opentelemetry.sdk.environment_variables.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT = 'OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT'
- OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT
The
OTEL_ATTRIBUTE_VALUE_LENGTH_LIMITrepresents the maximum allowed attribute length.
- opentelemetry.sdk.environment_variables.OTEL_EVENT_ATTRIBUTE_COUNT_LIMIT = 'OTEL_EVENT_ATTRIBUTE_COUNT_LIMIT'
- OTEL_EVENT_ATTRIBUTE_COUNT_LIMIT
The
OTEL_EVENT_ATTRIBUTE_COUNT_LIMITrepresents the maximum allowed event attribute count. Default: 128
- opentelemetry.sdk.environment_variables.OTEL_LINK_ATTRIBUTE_COUNT_LIMIT = 'OTEL_LINK_ATTRIBUTE_COUNT_LIMIT'
- OTEL_LINK_ATTRIBUTE_COUNT_LIMIT
The
OTEL_LINK_ATTRIBUTE_COUNT_LIMITrepresents the maximum allowed link attribute count. Default: 128
- opentelemetry.sdk.environment_variables.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT = 'OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT'
- OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT
The
OTEL_SPAN_ATTRIBUTE_COUNT_LIMITrepresents the maximum allowed span attribute count. Default: 128
- opentelemetry.sdk.environment_variables.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT = 'OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT'
- OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT
The
OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMITrepresents the maximum allowed length span attribute values can have. This takes precedence overOTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT.
- opentelemetry.sdk.environment_variables.OTEL_SPAN_EVENT_COUNT_LIMIT = 'OTEL_SPAN_EVENT_COUNT_LIMIT'
- OTEL_SPAN_EVENT_COUNT_LIMIT
The
OTEL_SPAN_EVENT_COUNT_LIMITrepresents the maximum allowed span event count. Default: 128
- opentelemetry.sdk.environment_variables.OTEL_SPAN_LINK_COUNT_LIMIT = 'OTEL_SPAN_LINK_COUNT_LIMIT'
- OTEL_SPAN_LINK_COUNT_LIMIT
The
OTEL_SPAN_LINK_COUNT_LIMITrepresents the maximum allowed span link count. Default: 128
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_ZIPKIN_ENDPOINT = 'OTEL_EXPORTER_ZIPKIN_ENDPOINT'
- OTEL_EXPORTER_ZIPKIN_ENDPOINT
Zipkin collector endpoint to which the exporter will send data. This may include a path (e.g.
http://example.com:9411/api/v2/spans).
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_ZIPKIN_TIMEOUT = 'OTEL_EXPORTER_ZIPKIN_TIMEOUT'
- OTEL_EXPORTER_ZIPKIN_TIMEOUT
Maximum time (in seconds) the Zipkin exporter will wait for each batch export. Default: 10
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_PROTOCOL = 'OTEL_EXPORTER_OTLP_PROTOCOL'
- OTEL_EXPORTER_OTLP_PROTOCOL
The
OTEL_EXPORTER_OTLP_PROTOCOLrepresents the transport protocol for the OTLP exporter.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_TRACES_PROTOCOL = 'OTEL_EXPORTER_OTLP_TRACES_PROTOCOL'
- OTEL_EXPORTER_OTLP_TRACES_PROTOCOL
The
OTEL_EXPORTER_OTLP_TRACES_PROTOCOLrepresents the transport protocol for spans.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_METRICS_PROTOCOL = 'OTEL_EXPORTER_OTLP_METRICS_PROTOCOL'
- OTEL_EXPORTER_OTLP_METRICS_PROTOCOL
The
OTEL_EXPORTER_OTLP_METRICS_PROTOCOLrepresents the transport protocol for metrics.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_LOGS_PROTOCOL = 'OTEL_EXPORTER_OTLP_LOGS_PROTOCOL'
- OTEL_EXPORTER_OTLP_LOGS_PROTOCOL
The
OTEL_EXPORTER_OTLP_LOGS_PROTOCOLrepresents the transport protocol for logs.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_CERTIFICATE = 'OTEL_EXPORTER_OTLP_CERTIFICATE'
- OTEL_EXPORTER_OTLP_CERTIFICATE
The
OTEL_EXPORTER_OTLP_CERTIFICATEstores the path to the certificate file for TLS credentials of gRPC client. Should only be used for a secure connection.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_HEADERS = 'OTEL_EXPORTER_OTLP_HEADERS'
- OTEL_EXPORTER_OTLP_HEADERS
The
OTEL_EXPORTER_OTLP_HEADERScontains the key-value pairs to be used as headers associated with gRPC or HTTP requests.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_COMPRESSION = 'OTEL_EXPORTER_OTLP_COMPRESSION'
- OTEL_EXPORTER_OTLP_COMPRESSION
Specifies a gRPC compression method to be used in the OTLP exporters. Possible values are:
gzipcorresponding togrpc.Compression.Gzip.deflatecorresponding togrpc.Compression.Deflate.
If no
OTEL_EXPORTER_OTLP_*COMPRESSIONenvironment variable is present orcompressionargument passed to the exporter, the defaultgrpc.Compression.NoCompressionwill be used. Additional details are available in the specification.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_TIMEOUT = 'OTEL_EXPORTER_OTLP_TIMEOUT'
- OTEL_EXPORTER_OTLP_TIMEOUT
The
OTEL_EXPORTER_OTLP_TIMEOUTis the maximum time (in seconds) the OTLP exporter will wait for each batch export. Default: 10
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_ENDPOINT = 'OTEL_EXPORTER_OTLP_ENDPOINT'
- OTEL_EXPORTER_OTLP_ENDPOINT
The
OTEL_EXPORTER_OTLP_ENDPOINTtarget to which the exporter is going to send spans or metrics. The endpoint MUST be a valid URL host, and MAY contain a scheme (http or https), port and path. A scheme of https indicates a secure connection and takes precedence over the insecure configuration setting. Default: “http://localhost:4317”
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_INSECURE = 'OTEL_EXPORTER_OTLP_INSECURE'
- OTEL_EXPORTER_OTLP_INSECURE
The
OTEL_EXPORTER_OTLP_INSECURErepresents whether to enable client transport security for gRPC requests. A scheme of https takes precedence over this configuration setting. Default: False
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_TRACES_INSECURE = 'OTEL_EXPORTER_OTLP_TRACES_INSECURE'
- OTEL_EXPORTER_OTLP_TRACES_INSECURE
The
OTEL_EXPORTER_OTLP_TRACES_INSECURErepresents whether to enable client transport security for gRPC requests for spans. A scheme of https takes precedence over the this configuration setting. Default: False
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT = 'OTEL_EXPORTER_OTLP_TRACES_ENDPOINT'
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
The
OTEL_EXPORTER_OTLP_TRACES_ENDPOINTtarget to which the span exporter is going to send spans. The endpoint MUST be a valid URL host, and MAY contain a scheme (http or https), port and path. A scheme of https indicates a secure connection and takes precedence over this configuration setting.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_METRICS_ENDPOINT = 'OTEL_EXPORTER_OTLP_METRICS_ENDPOINT'
- OTEL_EXPORTER_OTLP_METRICS_ENDPOINT
The
OTEL_EXPORTER_OTLP_METRICS_ENDPOINTtarget to which the metrics exporter is going to send metrics. The endpoint MUST be a valid URL host, and MAY contain a scheme (http or https), port and path. A scheme of https indicates a secure connection and takes precedence over this configuration setting.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_LOGS_ENDPOINT = 'OTEL_EXPORTER_OTLP_LOGS_ENDPOINT'
- OTEL_EXPORTER_OTLP_LOGS_ENDPOINT
The
OTEL_EXPORTER_OTLP_LOGS_ENDPOINTtarget to which the log exporter is going to send logs. The endpoint MUST be a valid URL host, and MAY contain a scheme (http or https), port and path. A scheme of https indicates a secure connection and takes precedence over this configuration setting.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE = 'OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE'
- OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE
The
OTEL_EXPORTER_OTLP_TRACES_CERTIFICATEstores the path to the certificate file for TLS credentials of gRPC client for traces. Should only be used for a secure connection for tracing.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE = 'OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE'
- OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE
The
OTEL_EXPORTER_OTLP_METRICS_CERTIFICATEstores the path to the certificate file for TLS credentials of gRPC client for metrics. Should only be used for a secure connection for exporting metrics.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_CLIENT_KEY = 'OTEL_EXPORTER_OTLP_CLIENT_KEY'
- OTEL_EXPORTER_OTLP_CLIENT_KEY
The
OTEL_EXPORTER_OTLP_CLIENT_KEYstores the path to the client private key to use in mTLS communication in PEM format.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY = 'OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY'
- OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY
The
OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEYstores the path to the client private key to use in mTLS communication in PEM format for traces.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY = 'OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY'
- OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY
The
OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEYstores the path to the client private key to use in mTLS communication in PEM format for metrics.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY = 'OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY'
- OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY
The
OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEYstores the path to the client private key to use in mTLS communication in PEM format for logs.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE = 'OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE'
- OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE
The
OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATEstores the path to the client certificate/chain trust for clients private key to use in mTLS communication in PEM format.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE = 'OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE'
- OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE
The
OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATEstores the path to the client certificate/chain trust for clients private key to use in mTLS communication in PEM format for traces.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE = 'OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE'
- OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE
The
OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATEstores the path to the client certificate/chain trust for clients private key to use in mTLS communication in PEM format for metrics.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE = 'OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE'
- OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE
The
OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATEstores the path to the client certificate/chain trust for clients private key to use in mTLS communication in PEM format for logs.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_TRACES_HEADERS = 'OTEL_EXPORTER_OTLP_TRACES_HEADERS'
- OTEL_EXPORTER_OTLP_TRACES_HEADERS
The
OTEL_EXPORTER_OTLP_TRACES_HEADERScontains the key-value pairs to be used as headers for spans associated with gRPC or HTTP requests.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_METRICS_HEADERS = 'OTEL_EXPORTER_OTLP_METRICS_HEADERS'
- OTEL_EXPORTER_OTLP_METRICS_HEADERS
The
OTEL_EXPORTER_OTLP_METRICS_HEADERScontains the key-value pairs to be used as headers for metrics associated with gRPC or HTTP requests.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_LOGS_HEADERS = 'OTEL_EXPORTER_OTLP_LOGS_HEADERS'
- OTEL_EXPORTER_OTLP_LOGS_HEADERS
The
OTEL_EXPORTER_OTLP_LOGS_HEADERScontains the key-value pairs to be used as headers for logs associated with gRPC or HTTP requests.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_TRACES_COMPRESSION = 'OTEL_EXPORTER_OTLP_TRACES_COMPRESSION'
- OTEL_EXPORTER_OTLP_TRACES_COMPRESSION
Same as
OTEL_EXPORTER_OTLP_COMPRESSIONbut only for the span exporter. If both are present, this takes higher precedence.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_METRICS_COMPRESSION = 'OTEL_EXPORTER_OTLP_METRICS_COMPRESSION'
- OTEL_EXPORTER_OTLP_METRICS_COMPRESSION
Same as
OTEL_EXPORTER_OTLP_COMPRESSIONbut only for the metric exporter. If both are present, this takes higher precedence.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_LOGS_COMPRESSION = 'OTEL_EXPORTER_OTLP_LOGS_COMPRESSION'
- OTEL_EXPORTER_OTLP_LOGS_COMPRESSION
Same as
OTEL_EXPORTER_OTLP_COMPRESSIONbut only for the log exporter. If both are present, this takes higher precedence.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_TRACES_TIMEOUT = 'OTEL_EXPORTER_OTLP_TRACES_TIMEOUT'
- OTEL_EXPORTER_OTLP_TRACES_TIMEOUT
The
OTEL_EXPORTER_OTLP_TRACES_TIMEOUTis the maximum time (in seconds) the OTLP exporter will wait for each batch export for spans. Default: 10
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_METRICS_TIMEOUT = 'OTEL_EXPORTER_OTLP_METRICS_TIMEOUT'
- OTEL_EXPORTER_OTLP_METRICS_TIMEOUT
The
OTEL_EXPORTER_OTLP_METRICS_TIMEOUTis the maximum time (in seconds) the OTLP exporter will wait for each batch export for metrics. Default: 10
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_METRICS_INSECURE = 'OTEL_EXPORTER_OTLP_METRICS_INSECURE'
- OTEL_EXPORTER_OTLP_METRICS_INSECURE
The
OTEL_EXPORTER_OTLP_METRICS_INSECURErepresents whether to enable client transport security for gRPC requests for metrics. A scheme of https takes precedence over the this configuration setting. Default: False
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_LOGS_INSECURE = 'OTEL_EXPORTER_OTLP_LOGS_INSECURE'
- OTEL_EXPORTER_OTLP_LOGS_INSECURE
The
OTEL_EXPORTER_OTLP_LOGS_INSECURErepresents whether to enable client transport security for gRPC requests for logs. A scheme of https takes precedence over the this configuration setting. Default: False
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE = 'OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE'
- OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE
The
OTEL_EXPORTER_OTLP_LOGS_CERTIFICATEstores the path to the certificate file for TLS credentials of gRPC client for logs. Should only be used for a secure connection for logs.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_LOGS_TIMEOUT = 'OTEL_EXPORTER_OTLP_LOGS_TIMEOUT'
- OTEL_EXPORTER_OTLP_LOGS_TIMEOUT
The
OTEL_EXPORTER_OTLP_LOGS_TIMEOUTis the maximum time (in seconds) the OTLP exporter will wait for each batch export for logs. Default: 10
- opentelemetry.sdk.environment_variables.OTEL_SERVICE_NAME = 'OTEL_SERVICE_NAME'
- OTEL_SERVICE_NAME
Convenience environment variable for setting the service name resource attribute. The following two environment variables have the same effect
OTEL_SERVICE_NAME=my-python-service OTEL_RESOURCE_ATTRIBUTES=service.name=my-python-service
If both are set,
OTEL_SERVICE_NAMEtakes precedence.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE = 'OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE'
- OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
The
OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCEenvironment variable allows users to set the default aggregation temporality policy to use on the basis of instrument kind. The valid (case-insensitive) values are:CUMULATIVE: UseCUMULATIVEaggregation temporality for all instrument kinds.DELTA: UseDELTAaggregation temporality forCounter,Asynchronous CounterandHistogram. UseCUMULATIVEaggregation temporality forUpDownCounterandAsynchronous UpDownCounter.LOWMEMORY: UseDELTAaggregation temporality forCounterandHistogram. UseCUMULATIVEaggregation temporality forUpDownCounter,AsynchronousCounterandAsynchronous UpDownCounter.
- opentelemetry.sdk.environment_variables.OTEL_METRIC_EXPORT_INTERVAL = 'OTEL_METRIC_EXPORT_INTERVAL'
- OTEL_METRIC_EXPORT_INTERVAL
The
OTEL_METRIC_EXPORT_INTERVALis the time interval (in milliseconds) between the start of two export attempts.
- opentelemetry.sdk.environment_variables.OTEL_METRIC_EXPORT_TIMEOUT = 'OTEL_METRIC_EXPORT_TIMEOUT'
- OTEL_METRIC_EXPORT_TIMEOUT
The
OTEL_METRIC_EXPORT_TIMEOUTis the maximum allowed time (in milliseconds) to export data.
- opentelemetry.sdk.environment_variables.OTEL_METRICS_EXEMPLAR_FILTER = 'OTEL_METRICS_EXEMPLAR_FILTER'
- OTEL_METRICS_EXEMPLAR_FILTER
The
OTEL_METRICS_EXEMPLAR_FILTERis the filter for which measurements can become Exemplars.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION = 'OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION'
- OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION
The
OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATIONis the default aggregation to use for histogram instruments.
- opentelemetry.sdk.environment_variables.OTEL_EXPERIMENTAL_RESOURCE_DETECTORS = 'OTEL_EXPERIMENTAL_RESOURCE_DETECTORS'
- OTEL_EXPERIMENTAL_RESOURCE_DETECTORS
The
OTEL_EXPERIMENTAL_RESOURCE_DETECTORSis a comma-separated string of names of resource detectors. These names must be the same as the names of entry points for the`opentelemetry_resource_detector`entry point. This is an experimental feature and the name of this variable and its behavior can change in a non-backwards compatible way.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_PROMETHEUS_HOST = 'OTEL_EXPORTER_PROMETHEUS_HOST'
- OTEL_EXPORTER_PROMETHEUS_HOST
The
OTEL_EXPORTER_PROMETHEUS_HOSTenvironment variable configures the host used by the Prometheus exporter. Default: “localhost”This is an experimental environment variable and the name of this variable and its behavior can change in a non-backwards compatible way.
- opentelemetry.sdk.environment_variables.OTEL_EXPORTER_PROMETHEUS_PORT = 'OTEL_EXPORTER_PROMETHEUS_PORT'
- OTEL_EXPORTER_PROMETHEUS_PORT
The
OTEL_EXPORTER_PROMETHEUS_PORTenvironment variable configures the port used by the Prometheus exporter. Default: 9464This is an experimental environment variable and the name of this variable and its behavior can change in a non-backwards compatible way.
- opentelemetry.sdk.environment_variables.OTEL_PYTHON_TRACER_CONFIGURATOR = 'OTEL_PYTHON_TRACER_CONFIGURATOR'
- OTEL_PYTHON_TRACER_CONFIGURATOR
The
OTEL_PYTHON_TRACER_CONFIGURATORenvironment variable allows users to set a custom Tracer Configurator function. Default: opentelemetry.sdk.trace._default_tracer_configuratorThis is an experimental environment variable and the name of this variable and its behavior can change in a non-backwards compatible way.
- opentelemetry.sdk.environment_variables.OTEL_PYTHON_METER_CONFIGURATOR = 'OTEL_PYTHON_METER_CONFIGURATOR'
- OTEL_PYTHON_METER_CONFIGURATOR
The
OTEL_PYTHON_METER_CONFIGURATORenvironment variable allows users to set a custom Meter Configurator function. Default: opentelemetry.sdk.metrics._internal._default_meter_configuratorThis is an experimental environment variable and the name of this variable and its behavior can change in a non-backwards compatible way.
- opentelemetry.sdk.environment_variables.OTEL_PYTHON_LOGGER_CONFIGURATOR = 'OTEL_PYTHON_LOGGER_CONFIGURATOR'
- OTEL_PYTHON_LOGGER_CONFIGURATOR
The
OTEL_PYTHON_LOGGER_CONFIGURATORenvironment variable allows users to set a custom Logger Configurator function. Default: opentelemetry.sdk._logs._internal._default_logger_configuratorThis is an experimental environment variable and the name of this variable and its behavior can change in a non-backwards compatible way.