Skip to content

Commit d056f47

Browse files
committed
nits
1 parent b2864cc commit d056f47

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Instrumentation/PDO/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ OTEL_PHP_INSTRUMENTATION_PDO_DISTRIBUTE_STATEMENT_TO_LINKED_SPANS=true
3636
```
3737

3838
### SQL Commenter feature
39-
The [sqlcommenter](https://google.github.io/sqlcommenter/) feature can be enabled using configuration directive, currently it can be used with `postgresql` and `mysql` drivers.:
39+
The [sqlcommenter](https://google.github.io/sqlcommenter/) feature can be enabled using configuration directive, currently it can be used with `postgresql` and `mysql` drivers only.
4040
```
4141
otel.instrumentation.pdo.sql_commenter = true
4242
```

src/Instrumentation/PDO/src/PDOInstrumentation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,6 @@ private static function addSqlComments(string $query): string
418418

419419
private static function isSQLCommenterOptInDatabase(string $db) : bool
420420
{
421-
return $db == "postgresql" || $db == "mysql";
421+
return $db == 'postgresql' || $db == 'mysql';
422422
}
423423
}

0 commit comments

Comments
 (0)