OpenTelemetry PHP

KnownValues

"Known values" for OpenTelemetry configurataion variables.

Tags
see
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md

Notice: Values specific to the PHP SDK have been added

Table of Contents

Constants

OTEL_EXPORTER_OTLP_COMPRESSION  = self::VALUES_COMPRESSION
OTEL_EXPORTER_OTLP_INSECURE  = self::VALUES_BOOLEAN
OTLP Exporter
OTEL_EXPORTER_OTLP_METRICS_COMPRESSION  = self::VALUES_COMPRESSION
OTEL_EXPORTER_OTLP_METRICS_INSECURE  = self::VALUES_BOOLEAN
OTEL_EXPORTER_OTLP_METRICS_PROTOCOL  = self::VALUES_OTLP_PROTOCOL
OTEL_EXPORTER_OTLP_PROTOCOL  = self::VALUES_OTLP_PROTOCOL
OTEL_EXPORTER_OTLP_TRACES_COMPRESSION  = self::VALUES_COMPRESSION
OTEL_EXPORTER_OTLP_TRACES_INSECURE  = self::VALUES_BOOLEAN
OTEL_EXPORTER_OTLP_TRACES_PROTOCOL  = self::VALUES_OTLP_PROTOCOL
OTEL_LOG_LEVEL  = [self::VALUE_LOG_EMERGENCY, self::VALUE_LOG_ALERT, self::VALUE_LOG_CRITICAL, self::VALUE_LOG_ERROR, self::VALUE_LOG_WARNING, self::VALUE_LOG_NOTICE, self::VALUE_LOG_INFO, self::VALUE_LOG_DEBUG]
General SDK Configuration
OTEL_LOGS_EXPORTER  = [self::VALUE_OTLP, self::VALUE_NONE]
OTEL_METRICS_EXEMPLAR_FILTER  = [self::VALUE_WITH_SAMPLED_TRACE, self::VALUE_ALL, self::VALUE_NONE]
Metrics SDK Configuration
OTEL_METRICS_EXPORTER  = [self::VALUE_OTLP, self::VALUE_PROMETHEUS, self::VALUE_NONE]
OTEL_PHP_AUTOLOAD_ENABLED  = self::VALUES_BOOLEAN
OTEL_PHP_DETECTORS  = [self::VALUE_ALL, self::VALUE_DETECTORS_ENVIRONMENT, self::VALUE_DETECTORS_HOST, self::VALUE_DETECTORS_OS, self::VALUE_DETECTORS_PROCESS, self::VALUE_DETECTORS_PROCESS_RUNTIME, self::VALUE_DETECTORS_SDK, self::VALUE_DETECTORS_SDK_PROVIDED, self::VALUE_DETECTORS_COMPOSER, self::VALUE_NONE]
OTEL_PHP_LOG_DESTINATION  = [self::VALUE_ERROR_LOG, self::VALUE_STDERR, self::VALUE_STDOUT, self::VALUE_PSR3, self::VALUE_EMPTY, self::VALUE_NONE]
OTEL_PHP_TRACES_PROCESSOR  = [self::VALUE_BATCH, self::VALUE_SIMPLE, self::VALUE_NOOP, self::VALUE_NONE]
Language Specific Environment Variables
OTEL_PROPAGATORS  = [ self::VALUE_TRACECONTEXT, // W3C Trace Context self::VALUE_BAGGAGE, // W3C Baggage self::VALUE_B3, // B3 Single self::VALUE_B3_MULTI, // B3 Multi self::VALUE_CLOUD_TRACE, // GCP XCloudTraceContext self::VALUE_CLOUD_TRACE_ONEWAY, // GCP XCloudTraceContext OneWay (Extract) self::VALUE_JAEGER, // Jaeger Propagator self::VALUE_JAEGER_BAGGAGE, // Jaeger Baggage Propagator self::VALUE_XRAY, // AWS X-Ray (third party) self::VALUE_OTTRACE, // OT Trace (third party) self::VALUE_NONE, ]
OTEL_TRACES_EXPORTER  = [self::VALUE_OTLP, self::VALUE_ZIPKIN, self::VALUE_NONE]
Exporter Selection
OTEL_TRACES_SAMPLER  = [self::VALUE_ALWAYS_ON, self::VALUE_ALWAYS_OFF, self::VALUE_TRACE_ID_RATIO, self::VALUE_PARENT_BASED_ALWAYS_ON, self::VALUE_PARENT_BASED_ALWAYS_OFF, self::VALUE_PARENT_BASED_TRACE_ID_RATIO, self::VALUE_XRAY]
VALUE_0  = '0'
VALUE_1  = '1'
VALUE_ALL  = 'all'
VALUE_ALWAYS_OFF  = 'always_off'
VALUE_ALWAYS_ON  = 'always_on'
VALUE_B3  = 'b3'
VALUE_B3_MULTI  = 'b3multi'
VALUE_BAGGAGE  = 'baggage'
VALUE_BATCH  = 'batch'
VALUE_CLOUD_TRACE  = 'cloudtrace'
VALUE_CLOUD_TRACE_ONEWAY  = 'cloudtrace-oneway'
VALUE_DETECTORS_COMPOSER  = 'composer'
VALUE_DETECTORS_ENVIRONMENT  = 'env'
VALUE_DETECTORS_HOST  = 'host'
VALUE_DETECTORS_OS  = 'os'
VALUE_DETECTORS_PROCESS  = 'process'
VALUE_DETECTORS_PROCESS_RUNTIME  = 'process_runtime'
VALUE_DETECTORS_SDK  = 'sdk'
VALUE_DETECTORS_SDK_PROVIDED  = 'sdk_provided'
VALUE_DETECTORS_SERVICE  = 'service'
VALUE_EMPTY  = ''
VALUE_ERROR_LOG  = 'error_log'
VALUE_FALSE  = 'false'
VALUE_GRPC  = 'grpc'
VALUE_GZIP  = 'gzip'
VALUE_HISTOGRAM_AGGREGATION_BASE2_EXPONENTIAL  = 'base2_exponential_bucket_histogram'
VALUE_HISTOGRAM_AGGREGATION_EXPLICIT  = 'explicit_bucket_histogram'
VALUE_HTTP_JSON  = 'http/json'
VALUE_HTTP_NDJSON  = 'http/ndjson'
VALUE_HTTP_PROTOBUF  = 'http/protobuf'
VALUE_JAEGER  = 'jaeger'
VALUE_JAEGER_BAGGAGE  = 'jaeger-baggage'
VALUE_LOG_ALERT  = \Psr\Log\LogLevel::ALERT
VALUE_LOG_CRITICAL  = \Psr\Log\LogLevel::CRITICAL
VALUE_LOG_DEBUG  = \Psr\Log\LogLevel::DEBUG
VALUE_LOG_EMERGENCY  = \Psr\Log\LogLevel::EMERGENCY
VALUE_LOG_ERROR  = \Psr\Log\LogLevel::ERROR
VALUE_LOG_INFO  = \Psr\Log\LogLevel::INFO
VALUE_LOG_NOTICE  = \Psr\Log\LogLevel::NOTICE
VALUE_LOG_WARNING  = \Psr\Log\LogLevel::WARNING
VALUE_NONE  = 'none'
VALUE_NOOP  = 'noop'
VALUE_OFF  = 'off'
VALUE_ON  = 'on'
VALUE_OTLP  = 'otlp'
VALUE_OTTRACE  = 'ottrace'
VALUE_PARENT_BASED_ALWAYS_OFF  = 'parentbased_always_off'
VALUE_PARENT_BASED_ALWAYS_ON  = 'parentbased_always_on'
VALUE_PARENT_BASED_TRACE_ID_RATIO  = 'parentbased_traceidratio'
VALUE_PROMETHEUS  = 'prometheus'
VALUE_PSR3  = 'psr3'
VALUE_SIMPLE  = 'simple'
VALUE_STDERR  = 'stderr'
VALUE_STDOUT  = 'stdout'
VALUE_TEMPORALITY_CUMULATIVE  = 'cumulative'
VALUE_TEMPORALITY_DELTA  = 'delta'
VALUE_TEMPORALITY_LOW_MEMORY  = 'lowmemory'
VALUE_TRACE_ID_RATIO  = 'traceidratio'
VALUE_TRACECONTEXT  = 'tracecontext'
VALUE_TRUE  = 'true'
VALUE_WITH_SAMPLED_TRACE  = 'with_sampled_trace'
VALUE_XRAY  = 'xray'
VALUE_ZIPKIN  = 'zipkin'
VALUES_BOOLEAN  = [self::VALUE_TRUE, self::VALUE_FALSE]
VALUES_COMPRESSION  = [self::VALUE_GZIP, self::VALUE_NONE]
VALUES_HISTOGRAM_AGGREGATION  = [self::VALUE_HISTOGRAM_AGGREGATION_EXPLICIT, self::VALUE_HISTOGRAM_AGGREGATION_BASE2_EXPONENTIAL]
VALUES_OTLP_PROTOCOL  = [self::VALUE_GRPC, self::VALUE_HTTP_PROTOBUF, self::VALUE_HTTP_JSON]
VALUES_TEMPORALITY_PREFERENCE  = [self::VALUE_TEMPORALITY_CUMULATIVE, self::VALUE_TEMPORALITY_DELTA, self::VALUE_TEMPORALITY_LOW_MEMORY]

Constants

OTEL_EXPORTER_OTLP_COMPRESSION

public mixed OTEL_EXPORTER_OTLP_COMPRESSION = self::VALUES_COMPRESSION

OTEL_EXPORTER_OTLP_METRICS_COMPRESSION

public mixed OTEL_EXPORTER_OTLP_METRICS_COMPRESSION = self::VALUES_COMPRESSION

OTEL_EXPORTER_OTLP_METRICS_INSECURE

public mixed OTEL_EXPORTER_OTLP_METRICS_INSECURE = self::VALUES_BOOLEAN

OTEL_EXPORTER_OTLP_METRICS_PROTOCOL

public mixed OTEL_EXPORTER_OTLP_METRICS_PROTOCOL = self::VALUES_OTLP_PROTOCOL

OTEL_EXPORTER_OTLP_PROTOCOL

public mixed OTEL_EXPORTER_OTLP_PROTOCOL = self::VALUES_OTLP_PROTOCOL

OTEL_EXPORTER_OTLP_TRACES_COMPRESSION

public mixed OTEL_EXPORTER_OTLP_TRACES_COMPRESSION = self::VALUES_COMPRESSION

OTEL_EXPORTER_OTLP_TRACES_INSECURE

public mixed OTEL_EXPORTER_OTLP_TRACES_INSECURE = self::VALUES_BOOLEAN

OTEL_EXPORTER_OTLP_TRACES_PROTOCOL

public mixed OTEL_EXPORTER_OTLP_TRACES_PROTOCOL = self::VALUES_OTLP_PROTOCOL

OTEL_LOGS_EXPORTER

public mixed OTEL_LOGS_EXPORTER = [self::VALUE_OTLP, self::VALUE_NONE]

OTEL_METRICS_EXPORTER

public mixed OTEL_METRICS_EXPORTER = [self::VALUE_OTLP, self::VALUE_PROMETHEUS, self::VALUE_NONE]

OTEL_PHP_AUTOLOAD_ENABLED

public mixed OTEL_PHP_AUTOLOAD_ENABLED = self::VALUES_BOOLEAN

OTEL_PHP_DETECTORS

public mixed OTEL_PHP_DETECTORS = [self::VALUE_ALL, self::VALUE_DETECTORS_ENVIRONMENT, self::VALUE_DETECTORS_HOST, self::VALUE_DETECTORS_OS, self::VALUE_DETECTORS_PROCESS, self::VALUE_DETECTORS_PROCESS_RUNTIME, self::VALUE_DETECTORS_SDK, self::VALUE_DETECTORS_SDK_PROVIDED, self::VALUE_DETECTORS_COMPOSER, self::VALUE_NONE]

OTEL_PHP_LOG_DESTINATION

public mixed OTEL_PHP_LOG_DESTINATION = [self::VALUE_ERROR_LOG, self::VALUE_STDERR, self::VALUE_STDOUT, self::VALUE_PSR3, self::VALUE_EMPTY, self::VALUE_NONE]

OTEL_PROPAGATORS

public mixed OTEL_PROPAGATORS = [ self::VALUE_TRACECONTEXT, // W3C Trace Context self::VALUE_BAGGAGE, // W3C Baggage self::VALUE_B3, // B3 Single self::VALUE_B3_MULTI, // B3 Multi self::VALUE_CLOUD_TRACE, // GCP XCloudTraceContext self::VALUE_CLOUD_TRACE_ONEWAY, // GCP XCloudTraceContext OneWay (Extract) self::VALUE_JAEGER, // Jaeger Propagator self::VALUE_JAEGER_BAGGAGE, // Jaeger Baggage Propagator self::VALUE_XRAY, // AWS X-Ray (third party) self::VALUE_OTTRACE, // OT Trace (third party) self::VALUE_NONE, ]

OTEL_TRACES_SAMPLER

public mixed OTEL_TRACES_SAMPLER = [self::VALUE_ALWAYS_ON, self::VALUE_ALWAYS_OFF, self::VALUE_TRACE_ID_RATIO, self::VALUE_PARENT_BASED_ALWAYS_ON, self::VALUE_PARENT_BASED_ALWAYS_OFF, self::VALUE_PARENT_BASED_TRACE_ID_RATIO, self::VALUE_XRAY]

VALUE_ALWAYS_OFF

public mixed VALUE_ALWAYS_OFF = 'always_off'

VALUE_ALWAYS_ON

public mixed VALUE_ALWAYS_ON = 'always_on'

VALUE_B3_MULTI

public mixed VALUE_B3_MULTI = 'b3multi'

VALUE_BAGGAGE

public mixed VALUE_BAGGAGE = 'baggage'

VALUE_CLOUD_TRACE

public mixed VALUE_CLOUD_TRACE = 'cloudtrace'

VALUE_CLOUD_TRACE_ONEWAY

public mixed VALUE_CLOUD_TRACE_ONEWAY = 'cloudtrace-oneway'

VALUE_DETECTORS_COMPOSER

public mixed VALUE_DETECTORS_COMPOSER = 'composer'

VALUE_DETECTORS_ENVIRONMENT

public mixed VALUE_DETECTORS_ENVIRONMENT = 'env'

VALUE_DETECTORS_HOST

public mixed VALUE_DETECTORS_HOST = 'host'

VALUE_DETECTORS_OS

public mixed VALUE_DETECTORS_OS = 'os'

VALUE_DETECTORS_PROCESS

public mixed VALUE_DETECTORS_PROCESS = 'process'

VALUE_DETECTORS_PROCESS_RUNTIME

public mixed VALUE_DETECTORS_PROCESS_RUNTIME = 'process_runtime'

VALUE_DETECTORS_SDK

public mixed VALUE_DETECTORS_SDK = 'sdk'

VALUE_DETECTORS_SDK_PROVIDED

public mixed VALUE_DETECTORS_SDK_PROVIDED = 'sdk_provided'

VALUE_DETECTORS_SERVICE

public mixed VALUE_DETECTORS_SERVICE = 'service'

VALUE_ERROR_LOG

public mixed VALUE_ERROR_LOG = 'error_log'

VALUE_HISTOGRAM_AGGREGATION_BASE2_EXPONENTIAL

public mixed VALUE_HISTOGRAM_AGGREGATION_BASE2_EXPONENTIAL = 'base2_exponential_bucket_histogram'

VALUE_HISTOGRAM_AGGREGATION_EXPLICIT

public mixed VALUE_HISTOGRAM_AGGREGATION_EXPLICIT = 'explicit_bucket_histogram'

VALUE_HTTP_JSON

public mixed VALUE_HTTP_JSON = 'http/json'

VALUE_HTTP_NDJSON

public mixed VALUE_HTTP_NDJSON = 'http/ndjson'

VALUE_HTTP_PROTOBUF

public mixed VALUE_HTTP_PROTOBUF = 'http/protobuf'

VALUE_JAEGER_BAGGAGE

public mixed VALUE_JAEGER_BAGGAGE = 'jaeger-baggage'

VALUE_LOG_ALERT

public mixed VALUE_LOG_ALERT = \Psr\Log\LogLevel::ALERT

VALUE_LOG_CRITICAL

public mixed VALUE_LOG_CRITICAL = \Psr\Log\LogLevel::CRITICAL

VALUE_LOG_DEBUG

public mixed VALUE_LOG_DEBUG = \Psr\Log\LogLevel::DEBUG

VALUE_LOG_EMERGENCY

public mixed VALUE_LOG_EMERGENCY = \Psr\Log\LogLevel::EMERGENCY

VALUE_LOG_ERROR

public mixed VALUE_LOG_ERROR = \Psr\Log\LogLevel::ERROR

VALUE_LOG_INFO

public mixed VALUE_LOG_INFO = \Psr\Log\LogLevel::INFO

VALUE_LOG_NOTICE

public mixed VALUE_LOG_NOTICE = \Psr\Log\LogLevel::NOTICE

VALUE_LOG_WARNING

public mixed VALUE_LOG_WARNING = \Psr\Log\LogLevel::WARNING

VALUE_OTTRACE

public mixed VALUE_OTTRACE = 'ottrace'

VALUE_PARENT_BASED_ALWAYS_OFF

public mixed VALUE_PARENT_BASED_ALWAYS_OFF = 'parentbased_always_off'

VALUE_PARENT_BASED_ALWAYS_ON

public mixed VALUE_PARENT_BASED_ALWAYS_ON = 'parentbased_always_on'

VALUE_PARENT_BASED_TRACE_ID_RATIO

public mixed VALUE_PARENT_BASED_TRACE_ID_RATIO = 'parentbased_traceidratio'

VALUE_PROMETHEUS

public mixed VALUE_PROMETHEUS = 'prometheus'

VALUE_TEMPORALITY_CUMULATIVE

public mixed VALUE_TEMPORALITY_CUMULATIVE = 'cumulative'

VALUE_TEMPORALITY_DELTA

public mixed VALUE_TEMPORALITY_DELTA = 'delta'

VALUE_TEMPORALITY_LOW_MEMORY

public mixed VALUE_TEMPORALITY_LOW_MEMORY = 'lowmemory'

VALUE_TRACE_ID_RATIO

public mixed VALUE_TRACE_ID_RATIO = 'traceidratio'

VALUE_TRACECONTEXT

public mixed VALUE_TRACECONTEXT = 'tracecontext'

VALUE_WITH_SAMPLED_TRACE

public mixed VALUE_WITH_SAMPLED_TRACE = 'with_sampled_trace'

VALUES_BOOLEAN

public mixed VALUES_BOOLEAN = [self::VALUE_TRUE, self::VALUE_FALSE]

VALUES_COMPRESSION

public mixed VALUES_COMPRESSION = [self::VALUE_GZIP, self::VALUE_NONE]

VALUES_HISTOGRAM_AGGREGATION

public mixed VALUES_HISTOGRAM_AGGREGATION = [self::VALUE_HISTOGRAM_AGGREGATION_EXPLICIT, self::VALUE_HISTOGRAM_AGGREGATION_BASE2_EXPONENTIAL]

VALUES_OTLP_PROTOCOL

public mixed VALUES_OTLP_PROTOCOL = [self::VALUE_GRPC, self::VALUE_HTTP_PROTOBUF, self::VALUE_HTTP_JSON]

VALUES_TEMPORALITY_PREFERENCE

public mixed VALUES_TEMPORALITY_PREFERENCE = [self::VALUE_TEMPORALITY_CUMULATIVE, self::VALUE_TEMPORALITY_DELTA, self::VALUE_TEMPORALITY_LOW_MEMORY]

        
On this page

Search results