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 f565402 commit d303b87
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 @@ -12,7 +12,7 @@
"php": "^8.0",
"ext-opentelemetry": "*",
"open-telemetry/api": "^1.0",
"open-telemetry/sem-conv": "^1.23",
"open-telemetry/sem-conv": "^1.24",
"guzzlehttp/guzzle": "^7"
},
"require-dev": {
Expand Down
6 changes: 5 additions & 1 deletion src/GuzzleInstrumentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ class GuzzleInstrumentation

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

hook(
ClientInterface::class,
Expand Down

0 comments on commit d303b87

Please sign in to comment.