Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Align Event Schemas across SDKs for list values #662

Open
@AbhiPrasad

Description

@AbhiPrasad

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 a dict with a key values mapping to a list. But JS expects breadcrumbs to just be the list (array) rather than a dict (object). If I set event.breadcrumbs = event.breadcrumbs.values in JS, then everything goes back to working perfectly. However this doesn't mean much since in this case event.breadcrumbs is just {values: []}. I don't know if there are sometimes keys other than values, 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions