We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3430992 commit ca8e2baCopy full SHA for ca8e2ba
src/HttpClientInstrumentation.php
@@ -33,7 +33,6 @@ public static function register(): void
33
?string $filename,
34
?int $lineno,
35
) use ($instrumentation): array {
36
- $requestOptions = $params[2];
37
/** @psalm-suppress ArgumentTypeCoercion */
38
$builder = $instrumentation
39
->tracer()
@@ -53,6 +52,8 @@ public static function register(): void
53
52
->setParent($parent)
54
->startSpan();
55
+ $requestOptions = $params[2] ?? [];
56
+
57
if (!isset($requestOptions['headers'])) {
58
$requestOptions['headers'] = [];
59
}
0 commit comments