We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c56b3c commit 89a0f46Copy full SHA for 89a0f46
sentry_sdk/ai/utils.py
@@ -30,7 +30,7 @@ def _normalize_data(data):
30
def set_data_normalized(span, key, value):
31
# type: (Span, str, Any) -> None
32
normalized = _normalize_data(value)
33
- if type(normalized) in (list, dict, tuple):
+ if isinstance(normalized, (list, dict, tuple)):
34
# only primitive types allowed
35
span.set_data(key, str(normalized))
36
else:
0 commit comments