Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

made panic event to use the same standard payload type #2352

Merged
merged 2 commits into from
Dec 4, 2022

Conversation

sio4
Copy link
Member

@sio4 sio4 commented Nov 20, 2022

What is being done in this PR?

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.

@sio4 sio4 added bug Something isn't working dependency update module dependencies labels Nov 20, 2022
@sio4 sio4 added this to the v1.1.0 milestone Nov 20, 2022
@sio4 sio4 requested a review from a team as a code owner November 20, 2022 15:00
@sio4 sio4 self-assigned this Nov 20, 2022
@sio4 sio4 merged commit 578e4d0 into v1 Dec 4, 2022
@sio4 sio4 deleted the payload-for-panic-event branch December 4, 2022 03:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working dependency update module dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant