Skip to content

Commit

Permalink
missing extra data
Browse files Browse the repository at this point in the history
  • Loading branch information
Kieron authored May 7, 2021
1 parent 9f5b472 commit 185313c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/SentryHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ protected function write(array $record): void
$scope->setExtra((string) $key, $value);
}
}

if (isset($record['extra']) && is_array($record['extra'])) {
foreach ($record['extra'] as $key => $value) {
$scope->setExtra((string) $key, $value);
}
}

if (isset($record['context']['tags']) && \is_array($record['context']['tags'])) {
foreach ($record['context']['tags'] as $key => $value) {
Expand Down

0 comments on commit 185313c

Please sign in to comment.