diff --git a/composer.json b/composer.json index 1bf2dfd..82bcc46 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/src/CakePHPInstrumentation.php b/src/CakePHPInstrumentation.php index bd71d8f..62212e4 100644 --- a/src/CakePHPInstrumentation.php +++ b/src/CakePHPInstrumentation.php @@ -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,