Open
Description
What are you really trying to do?
I was trying to use the sentry sdk sample but it does not work anymore because it indirectly uses the warning module.
Describe the bug
The with Hub(Hub.current)
context manager triggers an import of the warning module because hub is being deprecated and there is an import-time warning about that.
I am not exactly sure why the passthrough is not enough, I just started using temporal :)
Minimal Reproduction
Use a sentry recent version (mine was 2.22.0
)
Set up the sample, trigger a workflow.
It fails.
Additional context
I was able to fix by replacing with Hub(Hub.current)
with with isolation_scope()
I wonder if to avoid future issue there is a way to handle some non-available lib in the sandbox directly? To have calling warnings for instance do nothing instead of failing ?