Skip to content

Commit 6550d4d

Browse files
committed
fx
1 parent 069670e commit 6550d4d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sentry_sdk/traces.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,10 @@ def __init__(
3939
trace_id: "Optional[str]" = None,
4040
):
4141
self.name: str = name
42+
self._attributes: "Attributes" = {}
4243
if attributes:
4344
for attribute, value in attributes.items():
4445
self.set_attribute(attribute, value)
45-
else:
46-
self._attributes: "Attributes" = {}
4746

4847
self._trace_id = trace_id
4948

0 commit comments

Comments
 (0)