Skip to content

Commit d0206c9

Browse files
committed
hard-code schema url for 8.0-supporting packages
on 8.0 these packages won't be able to use the SemConv::Version enum
1 parent baaa125 commit d0206c9

File tree

16 files changed

+16
-16
lines changed

16 files changed

+16
-16
lines changed

src/Instrumentation/CakePHP/src/CakePHPInstrumentation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static function register(): void
1919
$instrumentation = new CachedInstrumentation(
2020
'io.opentelemetry.contrib.php.cakephp',
2121
null,
22-
Version::VERSION_1_30_0->url(),
22+
'https://opentelemetry.io/schemas/1.30.0',
2323
);
2424
Server::hook($instrumentation);
2525
Controller::hook($instrumentation);

src/Instrumentation/CodeIgniter/src/CodeIgniterInstrumentation.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.codeigniter',
2929
null,
30-
Version::VERSION_1_30_0->url(),
30+
'https://opentelemetry.io/schemas/1.30.0',
3131
);
3232

3333
// The method that creates request/response/controller objects is in the same class as the method

src/Instrumentation/Guzzle/src/GuzzleInstrumentation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static function register(): void
3232
$instrumentation = new CachedInstrumentation(
3333
'io.opentelemetry.contrib.php.guzzle',
3434
null,
35-
Version::VERSION_1_30_0->url(),
35+
'https://opentelemetry.io/schemas/1.30.0',
3636
);
3737

3838
hook(

src/Instrumentation/HttpAsyncClient/src/HttpAsyncClientInstrumentation.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
{
2828
$instrumentation = new CachedInstrumentation(
2929
'io.opentelemetry.contrib.php.http-async-client',
30-
schemaUrl: Version::VERSION_1_30_0->url()
30+
schemaUrl: 'https://opentelemetry.io/schemas/1.30.0',
3131
);
3232

3333
hook(

src/Instrumentation/Laravel/src/LaravelInstrumentation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static function register(): void
1717
$instrumentation = new CachedInstrumentation(
1818
'io.opentelemetry.contrib.php.laravel',
1919
null,
20-
Version::VERSION_1_30_0->url(),
20+
'https://opentelemetry.io/schemas/1.30.0',
2121
);
2222

2323
Hooks\Illuminate\Console\Command::hook($instrumentation);

src/Instrumentation/MongoDB/src/MongoDBInstrumentation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static function register(?callable $commandSerializer = null): void
2020
$instrumentation = new CachedInstrumentation(
2121
'io.opentelemetry.contrib.php.mongodb',
2222
null,
23-
Version::VERSION_1_30_0->url(),
23+
'https://opentelemetry.io/schemas/1.30.0',
2424
);
2525
$commandSerializer ??= self::defaultCommandSerializer();
2626
/** @psalm-suppress UnusedFunctionCall */

src/Instrumentation/Psr14/src/Psr14Instrumentation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static function register(): void
2828
$instrumentation = new CachedInstrumentation(
2929
'io.opentelemetry.contrib.php.psr14',
3030
InstalledVersions::getVersion('open-telemetry/opentelemetry-auto-psr14'),
31-
Version::VERSION_1_30_0->url(),
31+
'https://opentelemetry.io/schemas/1.30.0',
3232
);
3333

3434
/**

src/Instrumentation/Psr15/src/Psr15Instrumentation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static function register(): void
3232
$instrumentation = new CachedInstrumentation(
3333
'io.opentelemetry.contrib.php.psr15',
3434
null,
35-
Version::VERSION_1_30_0->url(),
35+
'https://opentelemetry.io/schemas/1.30.0',
3636
);
3737

3838
/**

src/Instrumentation/Psr16/src/Psr16Instrumentation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static function register(): void
2929
$instrumentation = new CachedInstrumentation(
3030
'io.opentelemetry.contrib.php.psr16',
3131
InstalledVersions::getVersion('open-telemetry/opentelemetry-auto-psr16'),
32-
Version::VERSION_1_30_0->url(),
32+
'https://opentelemetry.io/schemas/1.30.0',
3333
);
3434

3535
$pre = static function (CacheInterface $cacheItem, array $params, string $class, string $function, ?string $filename, ?int $lineno) use ($instrumentation) {

src/Instrumentation/Psr18/src/Psr18Instrumentation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static function register(): void
3030
{
3131
$instrumentation = new CachedInstrumentation(
3232
'io.opentelemetry.contrib.php.psr18',
33-
schemaUrl: Version::VERSION_1_30_0->url(),
33+
'https://opentelemetry.io/schemas/1.30.0',
3434
);
3535

3636
hook(

0 commit comments

Comments
 (0)