Skip to content

Commit f753c21

Browse files
committed
?
1 parent 164f66b commit f753c21

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
@@ -242,9 +242,7 @@ def start_span(
242242
Start and return a span.
243243
"""
244244
# TODO: Consider adding type hints to the method signature.
245-
return get_current_scope().start_span(
246-
root_span, custom_sampling_context, **kwargs
247-
)
245+
return get_current_scope().start_span(root_span, custom_sampling_context, **kwargs)
248246

249247

250248
def start_transaction(

sentry_sdk/scope.py

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

12941294
def _apply_root_span_info_to_event(self, event, hint, options):
12951295
# type: (Event, Hint, Optional[Dict[str, Any]]) -> None
1296-
if (
1297-
event.get("transaction_info") is None
1298-
and self._root_span_info is not None
1299-
):
1296+
if event.get("transaction_info") is None and self._root_span_info is not None:
13001297
event["transaction_info"] = self._root_span_info
13011298

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

0 commit comments

Comments
 (0)