Skip to content

Commit ea130a0

Browse files
committed
fix
1 parent 0177165 commit ea130a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sentry_sdk/_span_batcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ def _to_transport_format(item: "StreamedSpan") -> "Any":
168168
"start_timestamp": item._start_timestamp.timestamp(),
169169
}
170170

171-
if item._timestamp:
172-
res["end_timestamp"] = item._timestamp.timestamp()
171+
if item._end_timestamp:
172+
res["end_timestamp"] = item._end_timestamp.timestamp()
173173

174174
if item._parent_span_id:
175175
res["parent_span_id"] = item._parent_span_id

0 commit comments

Comments
 (0)