Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions sentry_sdk/traces.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,13 @@ def continue_trace(incoming: "dict[str, Any]") -> None:
# used to be set there in non-span-first mode. But in span first mode, we
# start spans on the current scope, regardless of type, like JS does, so we
# need to set the propagation context there.
sentry_sdk.get_isolation_scope().generate_propagation_context(
incoming,
)
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(
incoming,
)
current_scope._propagation_context = isolation_scope._propagation_context


def new_trace() -> None:
Expand Down
Loading