Skip to content

Commit 37a5722

Browse files
committed
?
1 parent 9deee09 commit 37a5722

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

sentry_sdk/api.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,7 @@ def start_span(
350350
Start and return a span.
351351
"""
352352
# TODO: Consider adding type hints to the method signature.
353-
return get_current_scope().start_span(
354-
root_span, custom_sampling_context, **kwargs
355-
)
353+
return get_current_scope().start_span(root_span, custom_sampling_context, **kwargs)
356354

357355

358356
def start_transaction(

sentry_sdk/scope.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,10 +1283,7 @@ def _apply_root_span_name_to_event(self, event, hint, options):
12831283

12841284
def _apply_root_span_info_to_event(self, event, hint, options):
12851285
# type: (Event, Hint, Optional[Dict[str, Any]]) -> None
1286-
if (
1287-
event.get("transaction_info") is None
1288-
and self._root_span_info is not None
1289-
):
1286+
if event.get("transaction_info") is None and self._root_span_info is not None:
12901287
event["transaction_info"] = self._root_span_info
12911288

12921289
def _apply_fingerprint_to_event(self, event, hint, options):

0 commit comments

Comments
 (0)