Upgrading sentry-sdk 0.14 to 0.15
Breaking0.14.4 → 0.15.1Breaking1New1Fixed5
BreakingUpgrade verdict
1 breaking change.
In plain terms
- If your Python setup lacks contextvars, the ASGI integration will now fail with an error instead of silently continuing.
Must act 1 item needs code or config changes
What you must change
Breaking1
The ASGI middleware now raises an exception if contextvars are not available, matching other asyncio integrations.
contextvarsAPI changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- removed:
method SentryAsgiMiddleware.get_headers(scope) - removed:
method SentryAsgiMiddleware.get_query(scope) - removed:
method SentryAsgiMiddleware.get_transaction(scope) - removed:
method SentryAsgiMiddleware.get_url(scope) - changed:
constructor SentryAsgiMiddleware(app) → constructor SentryAsgiMiddleware(app, unsafe_context_data=…)
- added:
export CONTEXTVARS_ERROR_MESSAGE
- added:
function patch_get_response_async(cls, _before_get_response)
- added:
variable CONTEXTVARS_ERROR_MESSAGE