Skip to content

Commit a443375

Browse files
committed
remove unused spans list on Transaction object (#387)
this should allow Span objects to be collected a bit earlier by the GC closes #387
1 parent 3ef959f commit a443375

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

elasticapm/traces.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ def __init__(self, tracer, transaction_type="custom", trace_parent=None, is_samp
3838
self.transaction_type = transaction_type
3939
self._tracer = tracer
4040

41-
self.spans = []
4241
self.dropped_spans = 0
4342
self.context = {}
4443
self.tags = {}
@@ -80,7 +79,6 @@ def end_span(self, skip_frames):
8079
span.frames = self._tracer.frames_processing_func(span.frames)[skip_frames:]
8180
else:
8281
span.frames = None
83-
self.spans.append(span)
8482
set_span(span.parent)
8583
self._tracer.queue_func(SPAN, span.to_dict())
8684
return span

0 commit comments

Comments
 (0)