Skip to content

Commit ba5a988

Browse files
committed
.
1 parent 35fa49c commit ba5a988

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/_span_batcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def _to_transport_format(item: "StreamedSpan") -> "Any":
109109
res: "dict[str, Any]" = {
110110
"trace_id": item.trace_id,
111111
"span_id": item.span_id,
112-
"name": item._name,
112+
"name": item._name if item._name is not None else "<unknown>",
113113
"status": item._status,
114114
"is_segment": item._is_segment(),
115115
"start_timestamp": item._start_timestamp.timestamp(),

0 commit comments

Comments
 (0)