getsentry / sentry-docs

Sentry's documentation (and tools to build it)
https://docs.sentry.io
Other
323 stars 1.38k forks source link

Threading integration for Python SDK propagates scope by default #10148

Open geigerzaehler opened 1 month ago

geigerzaehler commented 1 month ago

Core or SDK?

Platform/SDK

Which part? Which one?

Python integration Threading

Description

The documentation for the Threading default integration of the Python SDK says that the propagate_scope option defaults to false. But in the SDK the option defaults to true.

Suggested Solution

Say that scope propagation is enabled by default and explain the behavior in more detail. It would also be helpful to mention the problems with scope propagation: The scope is shared, so if the parent thread changes the scope the scope in the child thread is also changed.

getsantry[bot] commented 1 month ago

Assigning to @getsentry/support for routing ⏲️