Skip to content

Commit c937e29

Browse files
authored
Added schema URL for all packages lower than 1.0.0 (#273)
1 parent 9f96b59 commit c937e29

40 files changed

+88
-47
lines changed

src/Instrumentation/CakePHP/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"ext-opentelemetry": "*",
1414
"cakephp/cakephp": "^4 || ^5",
1515
"open-telemetry/api": "^1.0",
16-
"open-telemetry/sem-conv": "^1.23"
16+
"open-telemetry/sem-conv": "^1.24"
1717
},
1818
"require-dev": {
1919
"friendsofphp/php-cs-fixer": "^3",

src/Instrumentation/CakePHP/src/CakePHPInstrumentation.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ class CakePHPInstrumentation
2222

2323
public static function register(): void
2424
{
25-
$instrumentation = new CachedInstrumentation('io.opentelemetry.contrib.php.cakephp');
25+
$instrumentation = new CachedInstrumentation(
26+
'io.opentelemetry.contrib.php.cakephp',
27+
null,
28+
'https://opentelemetry.io/schemas/1.24.0'
29+
);
2630

2731
hook(
2832
Controller::class,

src/Instrumentation/CodeIgniter/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"ext-opentelemetry": "*",
1414
"codeigniter4/framework": "^4.3",
1515
"open-telemetry/api": "^1.0",
16-
"open-telemetry/sem-conv": "^1.23"
16+
"open-telemetry/sem-conv": "^1.24"
1717
},
1818
"require-dev": {
1919
"friendsofphp/php-cs-fixer": "^3.50",

src/Instrumentation/CodeIgniter/src/CodeIgniterInstrumentation.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ class CodeIgniterInstrumentation
2323

2424
public static function register(): void
2525
{
26-
$instrumentation = new CachedInstrumentation('io.opentelemetry.contrib.php.codeigniter');
26+
$instrumentation = new CachedInstrumentation(
27+
'io.opentelemetry.contrib.php.codeigniter',
28+
null,
29+
'https://opentelemetry.io/schemas/1.24.0'
30+
);
2731

2832
// The method that creates request/response/controller objects is in the same class as the method
2933
// that handles them, and they are not passed as method parameters, but rather stored in private

src/Instrumentation/ExtAmqp/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"ext-amqp": "*",
1414
"ext-opentelemetry": "*",
1515
"open-telemetry/api": "^1",
16-
"open-telemetry/sem-conv": "^1.23"
16+
"open-telemetry/sem-conv": "^1.24"
1717
},
1818
"require-dev": {
1919
"friendsofphp/php-cs-fixer": "^3",

src/Instrumentation/ExtAmqp/src/ExtAmqpInstrumentation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static function register(): void
2727
$instrumentation = new CachedInstrumentation(
2828
'io.opentelemetry.contrib.php.ext_amqp',
2929
InstalledVersions::getVersion('open-telemetry/opentelemetry-auto-ext-amqp'),
30-
TraceAttributes::SCHEMA_URL,
30+
'https://opentelemetry.io/schemas/1.24.0',
3131
);
3232

3333
hook(

src/Instrumentation/Guzzle/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"php": "^8.0",
1313
"ext-opentelemetry": "*",
1414
"open-telemetry/api": "^1.0",
15-
"open-telemetry/sem-conv": "^1.23",
15+
"open-telemetry/sem-conv": "^1.24",
1616
"guzzlehttp/guzzle": "^7"
1717
},
1818
"require-dev": {

src/Instrumentation/Guzzle/src/GuzzleInstrumentation.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ class GuzzleInstrumentation
2828

2929
public static function register(): void
3030
{
31-
$instrumentation = new CachedInstrumentation('io.opentelemetry.contrib.php.guzzle', schemaUrl: TraceAttributes::SCHEMA_URL);
31+
$instrumentation = new CachedInstrumentation(
32+
'io.opentelemetry.contrib.php.guzzle',
33+
null,
34+
'https://opentelemetry.io/schemas/1.24.0'
35+
);
3236

3337
hook(
3438
ClientInterface::class,

src/Instrumentation/HttpAsyncClient/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"php": "^8.0",
1313
"ext-opentelemetry": "*",
1414
"open-telemetry/api": "^1.0",
15-
"open-telemetry/sem-conv": "^1.23",
15+
"open-telemetry/sem-conv": "^1.24",
1616
"php-http/httplug": "^2"
1717
},
1818
"autoload": {

src/Instrumentation/IO/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"php": "^8.2",
1212
"ext-opentelemetry": "*",
1313
"open-telemetry/api": "^1.0",
14-
"open-telemetry/sem-conv": "^1.23"
14+
"open-telemetry/sem-conv": "^1.24"
1515
},
1616
"require-dev": {
1717
"friendsofphp/php-cs-fixer": "^3",

0 commit comments

Comments
 (0)