We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14883aa commit c5e1d48Copy full SHA for c5e1d48
src/FilebeatContextProcessor.php
@@ -77,10 +77,13 @@ public static function phpExtras(): array
77
];
78
}
79
80
+ /**
81
+ * @return array<array-key, mixed>
82
+ */
83
public function traceExtras(): array
84
{
85
if (class_exists(\OpenTelemetry\Context\Context::class)) {
- $context ??= \OpenTelemetry\Context\Context::getCurrent();
86
+ $context = \OpenTelemetry\Context\Context::getCurrent();
87
$spanContext = \OpenTelemetry\API\Trace\Span::fromContext($context)->getContext();
88
89
return [
@@ -100,5 +103,6 @@ public function traceExtras(): array
100
103
101
104
102
105
106
+ return [];
107
108
0 commit comments