-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Collecting breadcrumbs and stacktraces #54
base: master
Are you sure you want to change the base?
Conversation
src/SentryTarget.php
Outdated
[$message, $tags, $exception, $type, $extra] = $this->parseText($text); | ||
|
||
$metadata = []; | ||
if(!empty($tags)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work!
Please format code according to PSR-12 (spaces and braces)
|
||
\Sentry\captureEvent($event, EventHint::fromArray(array_filter([ | ||
'exception' => $data['exception'] ?? null, | ||
'extra' => $data['extra'] ?? [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check this line, it seems not the same extra data that we can attach to scope
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All scope extra
data will be directly copied into extra
field of the each event in this method, so both extra arrays has same format
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This Pull Requests implements tracking all events with
\Sentry\Breadcrumb
to display in Breadcrumbs display.Also implemented collecting
$traces
into\Sentry\Stacktrace