Skip to content

Commit 43072fe

Browse files
committed
add name to batcher
1 parent b819059 commit 43072fe

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

sentry_sdk/_span_batcher.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,13 @@ def add(self, span: "StreamedSpan") -> None:
7070
@staticmethod
7171
def _to_transport_format(item: "StreamedSpan") -> "Any":
7272
# TODO[span-first]
73-
res: "dict[str, Any]" = {}
73+
res: "dict[str, Any]" = {
74+
"name": item.name,
75+
}
7476

7577
if item._attributes:
7678
res["attributes"] = {
77-
k: serialize_attribute(v) for (k, v) in item.attributes.items()
79+
k: serialize_attribute(v) for (k, v) in item._attributes.items()
7880
}
7981

8082
return res

0 commit comments

Comments
 (0)