@@ -14,20 +14,20 @@ |
||
| 14 | 14 | { |
| 15 | 15 | public function __construct( |
| 16 | 16 | #[Proxy] private readonly ContainerInterface $container, |
| 17 | - ) {} |
|
| 17 | + ){} |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * @psalm-suppress InvalidReturnType |
| 21 | 21 | * @psalm-suppress InvalidReturnStatement |
| 22 | 22 | */ |
| 23 | - public function __invoke(LogRecord|array $record): array|LogRecord |
|
| 23 | + public function __invoke(LogRecord | array $record): array | LogRecord |
|
| 24 | 24 | { |
| 25 | 25 | $tracer = $this->container->get(TracerInterface::class); |
| 26 | 26 | \assert($tracer instanceof TracerInterface); |
| 27 | 27 | |
| 28 | 28 | $context = $tracer->getContext(); |
| 29 | 29 | |
| 30 | - if (!empty($context)) { |
|
| 30 | + if (!empty($context)){ |
|
| 31 | 31 | $record['extra']['telemetry'] = $context; |
| 32 | 32 | } |
| 33 | 33 | |
@@ -14,7 +14,8 @@ discard block |
||
| 14 | 14 | { |
| 15 | 15 | public function __construct( |
| 16 | 16 | #[Proxy] private readonly ContainerInterface $container, |
| 17 | - ) {} |
|
| 17 | + ) { |
|
| 18 | +} |
|
| 18 | 19 | |
| 19 | 20 | /** |
| 20 | 21 | * @psalm-suppress InvalidReturnType |
@@ -27,7 +28,8 @@ discard block |
||
| 27 | 28 | |
| 28 | 29 | $context = $tracer->getContext(); |
| 29 | 30 | |
| 30 | - if (!empty($context)) { |
|
| 31 | + if (!empty($context)) |
|
| 32 | + { |
|
| 31 | 33 | $record['extra']['telemetry'] = $context; |
| 32 | 34 | } |
| 33 | 35 | |