Open
Description
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()