Skip to content

Add support for add_note() / __notes__ #3050

Closed
@arjenzorgdoc

Description

@arjenzorgdoc

Problem Statement

Python 3.11 added support for notes:

async def f4():
    try:
        await f3()
    except TypeError as e:
        e.add_note('this failed while trying to blah')
        raise

(Source: https://blog.sentry.io/python-3-11-release-top-5-things-to-know/#adding-notes-to-exceptions)

I don't see them in sentry.

Solution Brainstorm

Check if an exception has a __notes__ property and add them to the "message" field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good first issueGood for newcomersTriagedHas been looked at recently during old issue triage

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions