Skip to content

Commit 0e7292d

Browse files
authored
Added database context propagation supported functions list to each database instrumentation library README (#450)
1 parent f042bae commit 0e7292d

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

src/Instrumentation/MySqli/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,10 @@ OTEL_PHP_DISABLED_INSTRUMENTATIONS=mysqli
5959
Enable context propagation for database queries by installing the following packages:
6060
```shell
6161
composer require open-telemetry/opentelemetry-sqlcommenter
62-
```
62+
```
63+
Currently, only the following functions support context propagation:
64+
* `mysqli::query`
65+
* `mysqli_query`
66+
* `mysqli::real_query`
67+
* `mysqli_real_query`
68+

src/Instrumentation/PDO/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ OTEL_PHP_INSTRUMENTATION_PDO_DISTRIBUTE_STATEMENT_TO_LINKED_SPANS=true
3737

3838
## Database Context Propagation
3939

40-
Enable context propagation for database queries by installing the following packages:
40+
Enable context propagation for database queries (pdo_mysql, pdo_pgsql only) by installing the following packages:
4141
```shell
4242
composer require open-telemetry/opentelemetry-sqlcommenter
43-
```
43+
```
44+
Currently, only the following functions support context propagation:
45+
* `PDO::query`
46+
* `PDO::exec`

src/Instrumentation/PostgreSql/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ Enable context propagation for database queries by installing the following pack
7373
```shell
7474
composer require open-telemetry/opentelemetry-sqlcommenter
7575
```
76+
Currently, only the following functions support context propagation:
77+
* `pg_query`
78+
* `pg_send_query`
7679

7780
## Compatibility
7881

0 commit comments

Comments
 (0)