Skip to content

Commit 014e2cc

Browse files
committed
use attrs directly in batcher
1 parent dd89e68 commit 014e2cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/_span_batcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ def add(self, span: "StreamedSpan") -> None:
7171
def _to_transport_format(item: "StreamedSpan") -> "Any":
7272
# TODO[span-first]
7373
res: "dict[str, Any]" = {
74-
"name": item.get_name(),
75-
"status": item.get_status(),
74+
"name": item._name,
75+
"status": item._status,
7676
}
7777

7878
if item._attributes:

0 commit comments

Comments
 (0)