Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Logger/Adapter/Sentry.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ public function push(Log $log): int
'exception' => [
'values' => [
[
'type' => $log->getMessage(),
'type' => $log->getTags()['verboseType'] ?? 'Exception',

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Undocumented verboseType tag convention

The verboseType key is only referenced here — it is never set anywhere else in this repository. Callers who do not explicitly add a verboseType tag will silently fall back to the generic 'Exception' type for every exception in Sentry, losing all class-name granularity. There is no doc-comment, constant, or Log method that signals this expectation to callers.

'value' => $log->getMessage(),
'stacktrace' => [
'frames' => $stackFrames,
],
Expand Down
Loading