Download the PHP package open-telemetry/opentelemetry-auto-pdo without Composer
On this page you can find all versions of the php package open-telemetry/opentelemetry-auto-pdo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download open-telemetry/opentelemetry-auto-pdo
More information about open-telemetry/opentelemetry-auto-pdo
Files in open-telemetry/opentelemetry-auto-pdo
Package opentelemetry-auto-pdo
Short Description OpenTelemetry auto-instrumentation for PDO
License Apache-2.0
Homepage https://opentelemetry.io/docs/languages/php/
Informations about the package opentelemetry-auto-pdo
This is a read-only subtree split of https://github.com/open-telemetry/opentelemetry-php-contrib.
OpenTelemetry PDO (PHP DataObjects) 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, and spans will automatically be created for
selected PDO and PDOStatement methods.
Configuration
The extension can be disabled via runtime configuration:
In case UI used to view telemetry data does not support links between spans (for example newrelic),
you can optionally enable setting db statements attribute to fetchAll and execute spans using
configuration directive:
or environment variable:
Database Context Propagation
Enable context propagation for database queries (pdo_mysql, pdo_pgsql only) by installing the following packages:
Currently, only the following functions support context propagation:
PDO::queryPDO::exec
All versions of opentelemetry-auto-pdo with dependencies
ext-pdo Version *
ext-opentelemetry Version *
open-telemetry/api Version ^1.0
open-telemetry/sem-conv Version ^1.36
symfony/polyfill-mbstring Version ^1.31