Configure the PHP instrumentation for Splunk Observability Cloud 🔗
The following sections describe all available settings for configuring the SignalFx Tracing Library for PHP.
General settings 🔗
The following settings are specific to the Splunk Distribution of OpenTelemetry Python:
Environment variable |
Description |
---|---|
|
Service name in Observability Cloud. The default value is |
|
Endpoint URL. The default value is |
|
Whether to enable automatic tracer creation and instrumentation. The default value is |
|
Whether to enable automatic tracer creation and instrumentation for the |
|
Whether to enable debug logging. The default value is |
|
Whether to enable B3 context propagation. The default value is |
|
Maximum length an attribute value can have. Values longer than this are truncated. The default value is |
|
List of environment variables to attach to the root span, separated by commas. |
|
Comma-separated list of incoming request headers to turn into spans. For example, |
|
Splunk authentication token that lets the library send data directly to Splunk Observability Cloud. Unset by default. Not required unless you need to send data to the Observability Cloud ingest endpoint. See Send data directly to Observability Cloud for more information. |
Tracing CLI sessions 🔗
To trace the CLI SAPI functionality, you have to enable it manually using the SIGNALFX_TRACE_CLI_ENABLED
environment variable. When you enable CLI tracing, the instrumentation automatically creates a root span to track the lifetime of your CLI session.
export SIGNALFX_TRACE_CLI_ENABLED=true
php artisan migrate:fresh
php myTracedCliScript.php
Caution
This SAPI is disabled by default to avoid undesired tracing of system activity.