@@ -18,7 +18,8 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | public function __invoke(LogRecord|array $record): array |
| 20 | 20 | { |
| 21 | - if ($record instanceof LogRecord) { |
|
| 21 | + if ($record instanceof LogRecord) |
|
| 22 | + { |
|
| 22 | 23 | $record = $record->toArray(); |
| 23 | 24 | } |
| 24 | 25 | |
@@ -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 | |