made PanicHandler emits an error event with the standard payload as the same as defaultErrorMiddleware.
Now, stack trace can be accessed by e.Payload["stacktrace"] (previously, we need to assert if e.Payload["data"] is a map, and then use that as asserted["stacktrace"]). It could be a breaking change if someone uses the buggy data structure as is, but I want to say this is a kind of bugfix :-)
(also, updated module dependencies)
What are the main choices made to get to this solution?
Consistent behavior and data structure for all error events, by using the standard payload type.
What is being done in this PR?
made
PanicHandler
emits an error event with the standard payload as the same asdefaultErrorMiddleware
.Now, stack trace can be accessed by
e.Payload["stacktrace"]
(previously, we need to assert ife.Payload["data"]
is a map, and then use that asasserted["stacktrace"]
). It could be a breaking change if someone uses the buggy data structure as is, but I want to say this is a kind of bugfix :-)(also, updated module dependencies)
What are the main choices made to get to this solution?
Consistent behavior and data structure for all error events, by using the standard payload type.