Skip to content

Commit 89a0f46

Browse files
committed
isinstance
1 parent 1c56b3c commit 89a0f46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/ai/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def _normalize_data(data):
3030
def set_data_normalized(span, key, value):
3131
# type: (Span, str, Any) -> None
3232
normalized = _normalize_data(value)
33-
if type(normalized) in (list, dict, tuple):
33+
if isinstance(normalized, (list, dict, tuple)):
3434
# only primitive types allowed
3535
span.set_data(key, str(normalized))
3636
else:

0 commit comments

Comments
 (0)