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 9dcb383 commit 921493aCopy full SHA for 921493a
src/Monolog/LogsHandler.php
@@ -10,6 +10,7 @@
10
use Monolog\LogRecord;
11
use Sentry\Logs\LogLevel;
12
use Sentry\Logs\Logs;
13
+use Sentry\Util\Arr;
14
15
class LogsHandler implements HandlerInterface
16
{
@@ -130,8 +131,8 @@ public function __destruct()
130
131
protected function compileAttributes($record): array
132
133
return [
- 'log.context' => $record['context'],
134
- 'log.extra' => $record['extra'],
+ ...Arr::simpleDot(['context' => $record['context']]),
135
+ ...Arr::simpleDot(['extra' => $record['extra']]),
136
'log.channel' => $record['channel'],
137
'sentry.origin' => 'auto.logger.monolog',
138
];
0 commit comments