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 8b14e88 commit 166e859
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-opentelemetry": "*",
"cakephp/cakephp": "^4 || ^5",
"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/CakePHPInstrumentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ class CakePHPInstrumentation

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

hook(
Controller::class,
Expand Down

0 comments on commit 166e859

Please sign in to comment.