Download the PHP package open-telemetry/opentelemetry-auto-psr18 without Composer
On this page you can find all versions of the php package open-telemetry/opentelemetry-auto-psr18. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download open-telemetry/opentelemetry-auto-psr18
More information about open-telemetry/opentelemetry-auto-psr18
Files in open-telemetry/opentelemetry-auto-psr18
Package opentelemetry-auto-psr18
Short Description OpenTelemetry auto-instrumentation for PSR-18 (HTTP Client).
License Apache-2.0
Homepage https://opentelemetry.io/docs/languages/php/
Informations about the package opentelemetry-auto-psr18
This is a read-only subtree split of https://github.com/open-telemetry/opentelemetry-php-contrib.
OpenTelemetry PSR-18 auto-instrumentation
Please read https://opentelemetry.io/docs/instrumentation/php/automatic/ for instructions on how to install and configure the extension and SDK.
Overview
Auto-instrumentation hooks are registered via composer, which will:
- create spans automatically for each PSR-18 request that is sent
- add a
traceparentheader to the request to facilitate distributed tracing
Configuration
Disabling PSR-18 instrumentation
The extension can be disabled via runtime configuration:
Request and response header capturing
PSR-18 auto-instrumentation supports capturing headers from both requests and responses as span attributes. This feature is disabled by default and can be enabled through environment variables or array directives in the php.ini configuration file. Header name matching is case-insensitive.
Environment variables configuration
The legacy options are still supported but are not recommended as they may be deprecated in a future release:
php.ini configuration
All versions of opentelemetry-auto-psr18 with dependencies
ext-opentelemetry Version *
open-telemetry/api Version ^1.0
open-telemetry/sem-conv Version ^1.38
psr/http-client Version ^1