Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/Instrumentation/MySqli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,10 @@ OTEL_PHP_DISABLED_INSTRUMENTATIONS=mysqli
Enable context propagation for database queries by installing the following packages:
```shell
composer require open-telemetry/opentelemetry-sqlcommenter
```
```
Currently, only the following functions support context propagation:
* `mysqli::query`
* `mysqli_query`
* `mysqli::real_query`
* `mysqli_real_query`

7 changes: 5 additions & 2 deletions src/Instrumentation/PDO/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ OTEL_PHP_INSTRUMENTATION_PDO_DISTRIBUTE_STATEMENT_TO_LINKED_SPANS=true

## Database Context Propagation

Enable context propagation for database queries by installing the following packages:
Enable context propagation for database queries (pdo_mysql, pdo_pgsql only) by installing the following packages:
```shell
composer require open-telemetry/opentelemetry-sqlcommenter
```
```
Currently, only the following functions support context propagation:
* `PDO::query`
* `PDO::exec`
3 changes: 3 additions & 0 deletions src/Instrumentation/PostgreSql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ Enable context propagation for database queries by installing the following pack
```shell
composer require open-telemetry/opentelemetry-sqlcommenter
```
Currently, only the following functions support context propagation:
* `pg_query`
* `pg_send_query`

## Compatibility

Expand Down