diff --git a/Instrumentation/WithSpanHandler.php b/Instrumentation/WithSpanHandler.php index f0f0dc9..979ebcd 100644 --- a/Instrumentation/WithSpanHandler.php +++ b/Instrumentation/WithSpanHandler.php @@ -18,7 +18,7 @@ class WithSpanHandler /** * @psalm-suppress ArgumentTypeCoercion */ - public static function pre(mixed $target, array $params, string $class, string $function, ?string $filename, ?int $lineno, ?array $span_args = [], ?array $attributes = []): void + public static function pre(mixed $target, array $params, ?string $class, string $function, ?string $filename, ?int $lineno, ?array $span_args = [], ?array $attributes = []): void { static $instrumentation; $instrumentation ??= new CachedInstrumentation(name: 'io.opentelemetry.php.with-span', schemaUrl: 'https://opentelemetry.io/schemas/1.25.0');