Issue
The variable data shown on my events' stack trace is incomplete.
Applies To
- Python SDK
- All plans, including self-hosted
Resolution
The Python SDK limits the depth and breadth of variable structure added to each frame of the stack trace. Both can be increased with the following code:
import sentry_sdk
import sentry_sdk.serializer
sentry_sdk.init(
…
)
sentry_sdk.serializer.MAX_DATABAG_DEPTH = 15 #defaults to 5
sentry_sdk.serializer.MAX_DATABAG_BREADTH = 20 #defaults to 10