This is a read-only subtree split of https://github.com/open-telemetry/opentelemetry-php-contrib.
Please read https://opentelemetry.io/docs/instrumentation/php/automatic/ for instructions on how to install and configure the extension and SDK.
This package provides auto-instrumentation for the PostgreSQL native PHP extension (ext-pgsql
).
Hooks are registered via Composer, and client spans are automatically created for key database operations.
Supported functions include:
pg_connect
pg_pconnect
pg_query
pg_query_params
pg_send_query
pg_send_query_params
pg_get_result
pg_prepare
pg_send_prepare
pg_execute
pg_send_execute
pg_insert
pg_select
pg_update
pg_delete
pg_copy_from
pg_copy_to
pg_lo_create
pg_lo_open
pg_lo_write
pg_lo_read
pg_lo_read_all
pg_lo_unlink
pg_lo_import
pg_lo_export
The extension can be disabled via runtime configuration:
OTEL_PHP_DISABLED_INSTRUMENTATIONS=postgresql
PHP 8.2 or newer is required