Skip to content

Commit e20d4fd

Browse files
committed
Merge branch 'ivana/span-first-6-add-continue-and-new-trace' into ivana/span-first-7-add-trace-decorator
2 parents 941863e + 9996e29 commit e20d4fd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

sentry_sdk/scope.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ def start_streamed_span(
11901190
)
11911191

11921192
if parent_span is None or isinstance(parent_span, NoOpStreamedSpan):
1193-
parent_span = self.span or self.get_current_scope().span # type: ignore
1193+
parent_span = self.span # type: ignore
11941194

11951195
# If no eligible parent_span was provided and there is no currently
11961196
# active span, this is a segment

sentry_sdk/traces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def continue_trace(incoming: "dict[str, Any]") -> None:
144144
sentry_sdk.get_isolation_scope().generate_propagation_context(
145145
incoming,
146146
)
147-
return sentry_sdk.get_current_scope().generate_propagation_context(
147+
sentry_sdk.get_current_scope().generate_propagation_context(
148148
incoming,
149149
)
150150

0 commit comments

Comments
 (0)