We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0527c03 commit 1b7d3faCopy full SHA for 1b7d3fa
1 file changed
sentry_sdk/traces.py
@@ -200,12 +200,13 @@ def continue_trace(incoming: "dict[str, Any]") -> None:
200
# used to be set there in non-span-first mode. But in span first mode, we
201
# start spans on the current scope, regardless of type, like JS does, so we
202
# need to set the propagation context there.
203
- sentry_sdk.get_isolation_scope().generate_propagation_context(
204
- incoming,
205
- )
206
- sentry_sdk.get_current_scope().generate_propagation_context(
+ isolation_scope = sentry_sdk.get_isolation_scope()
+ current_scope = sentry_sdk.get_current_scope()
+
+ isolation_scope.generate_propagation_context(
207
incoming,
208
)
209
+ current_scope._propagation_context = isolation_scope._propagation_context
210
211
212
def new_trace() -> None:
0 commit comments