hawk.php icon indicating copy to clipboard operation
hawk.php copied to clipboard

Event are being sent in a wrong format

Open nikmel2803 opened this issue 4 years ago • 3 comments

image 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

nikmel2803 avatar Aug 27 '21 15:08 nikmel2803

https://www.php.net/manual/ru/function.debug-backtrace.php

nikmel2803 avatar Aug 28 '21 07:08 nikmel2803

Our format: https://github.com/codex-team/hawk.types/blob/master/src/base/event/backtraceFrame.ts

neSpecc avatar Aug 28 '21 09:08 neSpecc

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.

neSpecc avatar Aug 28 '21 09:08 neSpecc