We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f985c4 commit d9874dbCopy full SHA for d9874db
sentry_sdk/_span_batcher.py
@@ -91,13 +91,15 @@ def _to_transport_format(item: "StreamedSpan") -> "Any":
91
92
return res
93
94
- def _flush(self) -> "Optional[Envelope]":
+ def _flush(self) -> None:
95
with self._lock:
96
if len(self._span_buffer) == 0:
97
return None
98
99
for trace_id, spans in self._span_buffer.items():
100
if spans:
101
+ for span in spans:
102
+ print(span.name)
103
dsc = spans[0].dynamic_sampling_context()
104
# XXX[span-first]: empty dsc?
105
@@ -126,7 +128,6 @@ def _flush(self) -> "Optional[Envelope]":
126
128
)
127
129
130
- self._span_buffer.clear()
131
+ self._capture_func(envelope)
132
- self._capture_func(envelope)
- return envelope
133
+ self._span_buffer.clear()
0 commit comments