OpenTelemetry PHP

Defaults

Default values for environment variables defined by the OpenTelemetry specification and language specific variables for the PHP SDK.

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

Table of Contents

Constants

OTEL_ATTRIBUTE_COUNT_LIMIT  = 128
Attribute Limits
OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT  = PHP_INT_MAX
OTEL_BLRP_EXPORT_TIMEOUT  = 30000
OTEL_BLRP_MAX_EXPORT_BATCH_SIZE  = 512
OTEL_BLRP_MAX_QUEUE_SIZE  = 2048
OTEL_BLRP_SCHEDULE_DELAY  = 1000
Batch LogRecord Processor
OTEL_BSP_EXPORT_TIMEOUT  = 30000
OTEL_BSP_MAX_EXPORT_BATCH_SIZE  = 512
OTEL_BSP_MAX_QUEUE_SIZE  = 2048
OTEL_BSP_SCHEDULE_DELAY  = 5000
Batch Span Processor
OTEL_EVENT_ATTRIBUTE_COUNT_LIMIT  = 128
OTEL_EXPERIMENTAL_CONFIG_FILE  = 'sdk-config.yaml'
OTEL_EXPORTER_OTLP_ENDPOINT  = 'http://localhost:4318'
OTLP Exporter
OTEL_EXPORTER_OTLP_INSECURE  = 'false'
OTEL_EXPORTER_OTLP_LOGS_ENDPOINT  = 'http://localhost:4318'
OTEL_EXPORTER_OTLP_LOGS_INSECURE  = 'false'
OTEL_EXPORTER_OTLP_LOGS_PROTOCOL  = 'http/protobuf'
OTEL_EXPORTER_OTLP_LOGS_TIMEOUT  = 10000
OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION  = 'explicit_bucket_histogram'
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT  = 'http://localhost:4318'
OTEL_EXPORTER_OTLP_METRICS_INSECURE  = 'false'
OTEL_EXPORTER_OTLP_METRICS_PROTOCOL  = 'http/protobuf'
OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE  = 'cumulative'
OTEL_EXPORTER_OTLP_METRICS_TIMEOUT  = 10000
OTEL_EXPORTER_OTLP_PROTOCOL  = 'http/protobuf'
OTEL_EXPORTER_OTLP_TIMEOUT  = 10000
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT  = 'http://localhost:4318'
OTEL_EXPORTER_OTLP_TRACES_INSECURE  = 'false'
OTEL_EXPORTER_OTLP_TRACES_PROTOCOL  = 'http/protobuf'
OTEL_EXPORTER_OTLP_TRACES_TIMEOUT  = 10000
OTEL_EXPORTER_PROMETHEUS_HOST  = '0.0.0.0'
Prometheus Exporter
OTEL_EXPORTER_PROMETHEUS_PORT  = 9464
OTEL_EXPORTER_ZIPKIN_ENDPOINT  = 'http://localhost:9411/api/v2/spans'
Zipkin Exporter
OTEL_EXPORTER_ZIPKIN_TIMEOUT  = 10000
OTEL_LINK_ATTRIBUTE_COUNT_LIMIT  = 128
OTEL_LOG_LEVEL  = 'info'
General SDK Configuration
OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT  = 128
OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT  = PHP_INT_MAX
LogRecord Limits
OTEL_LOGS_EXPORTER  = 'otlp'
OTEL_METRIC_EXPORT_INTERVAL  = 60000
OTEL_METRIC_EXPORT_TIMEOUT  = 30000
OTEL_METRICS_EXEMPLAR_FILTER  = 'with_sampled_trace'
Metrics SDK Configuration
OTEL_METRICS_EXPORTER  = 'otlp'
OTEL_PHP_AUTOLOAD_ENABLED  = 'false'
OTEL_PHP_DETECTORS  = 'all'
OTEL_PHP_DISABLED_INSTRUMENTATIONS  = []
OTEL_PHP_EXPERIMENTAL_AUTO_ROOT_SPAN  = 'false'
OTEL_PHP_INTERNAL_METRICS_ENABLED  = 'false'
OTEL_PHP_LOG_DESTINATION  = 'default'
OTEL_PHP_LOGS_PROCESSOR  = 'batch'
OTEL_PHP_TRACES_PROCESSOR  = 'batch'
Language Specific Environment Variables
OTEL_PROPAGATORS  = 'tracecontext,baggage'
OTEL_SDK_DISABLED  = 'false'
OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT  = 128
Span Limits
OTEL_SPAN_EVENT_COUNT_LIMIT  = 128
OTEL_SPAN_LINK_COUNT_LIMIT  = 128
OTEL_TRACES_EXPORTER  = 'otlp'
Exporter Selection
OTEL_TRACES_SAMPLER  = 'parentbased_always_on'

Constants

OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT

public mixed OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT = PHP_INT_MAX

OTEL_BLRP_EXPORT_TIMEOUT

public mixed OTEL_BLRP_EXPORT_TIMEOUT = 30000

OTEL_BLRP_MAX_EXPORT_BATCH_SIZE

public mixed OTEL_BLRP_MAX_EXPORT_BATCH_SIZE = 512

OTEL_BLRP_MAX_QUEUE_SIZE

public mixed OTEL_BLRP_MAX_QUEUE_SIZE = 2048

OTEL_BSP_EXPORT_TIMEOUT

public mixed OTEL_BSP_EXPORT_TIMEOUT = 30000

OTEL_BSP_MAX_EXPORT_BATCH_SIZE

public mixed OTEL_BSP_MAX_EXPORT_BATCH_SIZE = 512

OTEL_BSP_MAX_QUEUE_SIZE

public mixed OTEL_BSP_MAX_QUEUE_SIZE = 2048

OTEL_EVENT_ATTRIBUTE_COUNT_LIMIT

public mixed OTEL_EVENT_ATTRIBUTE_COUNT_LIMIT = 128

OTEL_EXPERIMENTAL_CONFIG_FILE

public mixed OTEL_EXPERIMENTAL_CONFIG_FILE = 'sdk-config.yaml'

OTEL_EXPORTER_OTLP_INSECURE

public mixed OTEL_EXPORTER_OTLP_INSECURE = 'false'

OTEL_EXPORTER_OTLP_LOGS_ENDPOINT

public mixed OTEL_EXPORTER_OTLP_LOGS_ENDPOINT = 'http://localhost:4318'

OTEL_EXPORTER_OTLP_LOGS_INSECURE

public mixed OTEL_EXPORTER_OTLP_LOGS_INSECURE = 'false'

OTEL_EXPORTER_OTLP_LOGS_PROTOCOL

public mixed OTEL_EXPORTER_OTLP_LOGS_PROTOCOL = 'http/protobuf'

OTEL_EXPORTER_OTLP_LOGS_TIMEOUT

public mixed OTEL_EXPORTER_OTLP_LOGS_TIMEOUT = 10000

OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION

public mixed OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION = 'explicit_bucket_histogram'

OTEL_EXPORTER_OTLP_METRICS_ENDPOINT

public mixed OTEL_EXPORTER_OTLP_METRICS_ENDPOINT = 'http://localhost:4318'

OTEL_EXPORTER_OTLP_METRICS_INSECURE

public mixed OTEL_EXPORTER_OTLP_METRICS_INSECURE = 'false'

OTEL_EXPORTER_OTLP_METRICS_PROTOCOL

public mixed OTEL_EXPORTER_OTLP_METRICS_PROTOCOL = 'http/protobuf'

OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE

public mixed OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE = 'cumulative'

OTEL_EXPORTER_OTLP_METRICS_TIMEOUT

public mixed OTEL_EXPORTER_OTLP_METRICS_TIMEOUT = 10000

OTEL_EXPORTER_OTLP_PROTOCOL

public mixed OTEL_EXPORTER_OTLP_PROTOCOL = 'http/protobuf'

OTEL_EXPORTER_OTLP_TIMEOUT

public mixed OTEL_EXPORTER_OTLP_TIMEOUT = 10000

OTEL_EXPORTER_OTLP_TRACES_ENDPOINT

public mixed OTEL_EXPORTER_OTLP_TRACES_ENDPOINT = 'http://localhost:4318'

OTEL_EXPORTER_OTLP_TRACES_INSECURE

public mixed OTEL_EXPORTER_OTLP_TRACES_INSECURE = 'false'

OTEL_EXPORTER_OTLP_TRACES_PROTOCOL

public mixed OTEL_EXPORTER_OTLP_TRACES_PROTOCOL = 'http/protobuf'

OTEL_EXPORTER_OTLP_TRACES_TIMEOUT

public mixed OTEL_EXPORTER_OTLP_TRACES_TIMEOUT = 10000

OTEL_EXPORTER_PROMETHEUS_PORT

public mixed OTEL_EXPORTER_PROMETHEUS_PORT = 9464

OTEL_EXPORTER_ZIPKIN_TIMEOUT

public mixed OTEL_EXPORTER_ZIPKIN_TIMEOUT = 10000
public mixed OTEL_LINK_ATTRIBUTE_COUNT_LIMIT = 128

OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT

public mixed OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT = 128

OTEL_LOGS_EXPORTER

public mixed OTEL_LOGS_EXPORTER = 'otlp'

OTEL_METRIC_EXPORT_INTERVAL

public mixed OTEL_METRIC_EXPORT_INTERVAL = 60000

OTEL_METRIC_EXPORT_TIMEOUT

public mixed OTEL_METRIC_EXPORT_TIMEOUT = 30000

OTEL_METRICS_EXPORTER

public mixed OTEL_METRICS_EXPORTER = 'otlp'

OTEL_PHP_AUTOLOAD_ENABLED

public mixed OTEL_PHP_AUTOLOAD_ENABLED = 'false'

OTEL_PHP_DETECTORS

public mixed OTEL_PHP_DETECTORS = 'all'

OTEL_PHP_DISABLED_INSTRUMENTATIONS

public mixed OTEL_PHP_DISABLED_INSTRUMENTATIONS = []

OTEL_PHP_EXPERIMENTAL_AUTO_ROOT_SPAN

public mixed OTEL_PHP_EXPERIMENTAL_AUTO_ROOT_SPAN = 'false'

OTEL_PHP_INTERNAL_METRICS_ENABLED

public mixed OTEL_PHP_INTERNAL_METRICS_ENABLED = 'false'

OTEL_PHP_LOG_DESTINATION

public mixed OTEL_PHP_LOG_DESTINATION = 'default'

OTEL_PHP_LOGS_PROCESSOR

public mixed OTEL_PHP_LOGS_PROCESSOR = 'batch'

OTEL_PROPAGATORS

public mixed OTEL_PROPAGATORS = 'tracecontext,baggage'

OTEL_SDK_DISABLED

public mixed OTEL_SDK_DISABLED = 'false'

OTEL_SPAN_EVENT_COUNT_LIMIT

public mixed OTEL_SPAN_EVENT_COUNT_LIMIT = 128
public mixed OTEL_SPAN_LINK_COUNT_LIMIT = 128

OTEL_TRACES_SAMPLER

public mixed OTEL_TRACES_SAMPLER = 'parentbased_always_on'

        
On this page

Search results