Skip to content

[READONLY] OpenTelemetry PDO auto-instrumentation

Notifications You must be signed in to change notification settings

opentelemetry-php/contrib-auto-pdo

Repository files navigation

Releases Issues Source Mirror Latest Version Stable

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:

OTEL_PHP_DISABLED_INSTRUMENTATIONS=pdo

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:

otel.instrumentation.pdo.distribute_statement_to_linked_spans = true

or environment variable:

OTEL_PHP_INSTRUMENTATION_PDO_DISTRIBUTE_STATEMENT_TO_LINKED_SPANS=true

About

[READONLY] OpenTelemetry PDO auto-instrumentation

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages