8000 s/rv/child in span.start_child · getsentry/sentry-python@5066197 · GitHub
[go: up one dir, main page]

Skip to content 10000

Commit 5066197

Browse files
committed
s/rv/child in span.start_child
1 parent 7d7a2f3 commit 5066197

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sentry_sdk/tracing.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,19 +183,19 @@ def start_child(self, **kwargs):
183183
"""
184184
kwargs.setdefault("sampled", self.sampled)
185185

186-
rv = Span(
186+
child = Span(
187187
trace_id=self.trace_id, span_id=None, parent_span_id=self.span_id, **kwargs
188188
)
189189

190190
if isinstance(self, Transaction):
191-
rv._containing_transaction = self
191+
child._containing_transaction = self
192192
else:
193-
rv._containing_transaction = self._containing_transaction
193+
child._containing_transaction = self._containing_transaction
194194

195-
rv._span_recorder = recorder = self._span_recorder
195+
child._span_recorder = recorder = self._span_recorder
196196
if recorder:
197-
recorder.add(rv)
198-
return rv
197+
recorder.add(child)
198+
return child
199199

200200
def new_span(self, **kwargs):
201201
# type: (**Any) -> Span

0 commit comments

Comments
 (0)
0