File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -59,4 +59,10 @@ OTEL_PHP_DISABLED_INSTRUMENTATIONS=mysqli
5959Enable context propagation for database queries by installing the following packages:
6060``` shell
6161composer 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+
Original file line number Diff line number Diff 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
4242composer require open-telemetry/opentelemetry-sqlcommenter
43- ```
43+ ```
44+ Currently, only the following functions support context propagation:
45+ * ` PDO::query `
46+ * ` PDO::exec `
Original file line number Diff line number Diff line change @@ -73,6 +73,9 @@ Enable context propagation for database queries by installing the following pack
7373``` shell
7474composer 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
You can’t perform that action at this time.
0 commit comments