hawk.php
hawk.php copied to clipboard
Event are being sent in a wrong format
PHP Catcher sends fields that are not described in Hawk Event format, for example `object`, `class`, `type`.
Besides, there is object keys (see screenshot) with dot in name (`amq.ctag-wMJP1rjHYsg27qaytsX-eg`) which leads to an error in workers because we can't save fields with dot in MongoDB
https://www.php.net/manual/ru/function.debug-backtrace.php
Our format: https://github.com/codex-team/hawk.types/blob/master/src/base/event/backtraceFrame.ts
I would suggest adding the new field additionalData to the BacktraceFrame type and wrap those extra fields in there. And other catchers would have and ability to send extra data about the stacktrace frame.