Skip to content

Commit ca88475

Browse files
committed
fix(analytics): missing 'data' attribute exclusion
1 parent 885e367 commit ca88475

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/sentry/analytics/event.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,13 @@ def from_instance(cls, instance: Any, **kwargs: Any) -> Self:
113113
**{
114114
f.name: kwargs.get(f.name, getattr(instance, f.name, None))
115115
for f in fields(cls)
116-
if f.name not in ("type", "uuid_", "datetime_")
116+
if f.name
117+
not in (
118+
"type",
119+
"uuid_",
120+
"datetime_",
121+
"data", # TODO: remove this data field once migrated
122+
)
117123
}
118124
)
119125

0 commit comments

Comments
 (0)