We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb0b95e commit ab77972Copy full SHA for ab77972
1 file changed
src/Opentelemetry.php
@@ -39,9 +39,11 @@ public static function getOpentelemetryValues(): array
39
carrier: $appendContext
40
);
41
42
- $traceparent = self::convertB3ToW3C($appendContext);
+ if ($appendContext) {
43
+ $traceparent = self::convertB3ToW3C($appendContext);
44
- return ['traceparent' => $traceparent];
45
+ return ['traceparent' => $traceparent];
46
+ }
47
}
48
49
return $appendContext;
0 commit comments