Skip to content

Commit 3eb206e

Browse files
committed
fix: Rename capture_trace to finish_trace
1 parent eecf4ab commit 3eb206e

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

sentry_sdk/hub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def span(self, span=None, **kwargs):
381381
span.set_tag("success", True)
382382
finally:
383383
span.finish()
384-
self.capture_trace(span)
384+
self.finish_trace(span)
385385

386386
def trace(self, **kwargs):
387387
return self.span(self.start_trace(**kwargs))
@@ -407,7 +407,7 @@ def start_trace(self, **kwargs):
407407

408408
return span
409409

410-
def capture_trace(self, span):
410+
def finish_trace(self, span):
411411
if span.transaction is None:
412412
# If this has no transaction set we assume there's a parent
413413
# transaction for this span that would be flushed out eventually.

sentry_sdk/integrations/celery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def _inner(*args, **kwargs):
101101
return f(*args, **kwargs)
102102
finally:
103103
span.finish()
104-
hub.capture_trace(span)
104+
hub.finish_trace(span)
105105

106106
return _inner
107107

sentry_sdk/integrations/wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def __call__(self, environ, start_response):
9393
finally:
9494
if span is not None:
9595
span.finish()
96-
hub.capture_trace(span)
96+
hub.finish_trace(span)
9797

9898
return _ScopedResponse(hub, rv)
9999

0 commit comments

Comments
 (0)