Skip to content

add_attachment needs to be called from the top level API from version 3.0 on #13592

Open
@antonpirker

Description

@antonpirker

SDK

Python SDK

Description

The API add_attachment is documented to be called on the Scope. From version 3.0 of the Python SDK on it should always be called from the top level API sentry_sdk.add_attachment().

Suggested Solution

Update this page: https://docs.sentry.io/platforms/python/enriching-events/attachments/

In SDK <3.0 it can be called only from the Scope. (like described now. Maybe we also add the top level API in a minor, then both ways should be described)
In SDK >=3.0 it should be called only from the top level API sentry_sdk.add_attachment()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions