Align Event Schemas across SDKs for list values #662
Description
In getsentry/sentry-python#1537 it was highlighted that there are inconsistencies between the events generated in the JS SDK and in the Python SDK. Specifically:
The problem is that in the Python event,
breadcrumbs
is adict
with a keyvalues
mapping to a list. But JS expectsbreadcrumbs
to just be the list (array) rather than a dict (object). If I setevent.breadcrumbs = event.breadcrumbs.values
in JS, then everything goes back to working perfectly. However this doesn't mean much since in this caseevent.breadcrumbs
is just{values: []}
. I don't know if there are sometimes keys other thanvalues
, or if the lists themselves are also sometimes incompatible between the SDKs.
This applies to all event items that are a flat list vs. a list under values, which for now are:
event.breadcrumbs
event.exception
event.threads