Skip to content

Commit

Permalink
Added schema URL for all packages lower than 1.0.0 (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
weslenteche authored Jun 25, 2024
1 parent a1305b0 commit 0390c2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"ext-pdo": "*",
"ext-opentelemetry": "*",
"open-telemetry/api": "^1.0",
"open-telemetry/sem-conv": "^1.23"
"open-telemetry/sem-conv": "^1.24"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3",
Expand Down
6 changes: 5 additions & 1 deletion src/PDOInstrumentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ class PDOInstrumentation

public static function register(): void
{
$instrumentation = new CachedInstrumentation('io.opentelemetry.contrib.php.pdo');
$instrumentation = new CachedInstrumentation(
'io.opentelemetry.contrib.php.pdo',
null,
'https://opentelemetry.io/schemas/1.24.0'
);
$pdoTracker = new PDOTracker();

hook(
Expand Down

0 comments on commit 0390c2f

Please sign in to comment.