Skip to content

Commit c9847f0

Browse files
sergicalsfanahata
andauthored
Update platform-includes/logs/usage/python.mdx
Co-authored-by: Shannon Anahata <shannon.anahata@gmail.com>
1 parent b58ee1d commit c9847f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

platform-includes/logs/usage/python.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ sentry_sdk.logger.error(
3333

3434
<Alert title="Attribute value types">
3535

36-
Attribute values should be primitives — strings, numbers, or booleans. Sentry's log storage only retains these scalar types, so other values are handled inconsistently: a `list` or `tuple` of same-typed scalars (for example `[1, 2, 3]`) is sent as an array, which is **not currently stored** and shows up empty in the Logs UI, while mixed lists and `dict`s are stored as their string representation. To keep a complex value searchable, serialize it to a string yourself before logging for example `json.dumps(workflow_ids)`.
36+
Attribute values should be primitives — strings, numbers, or booleans. Sentry's log storage only retains these scalar types, so other values are handled inconsistently. A `list` or `tuple` of same-typed scalars (for example `[1, 2, 3]`) is sent as an array, which is **not currently stored** and shows up empty in the Logs UI. Mixed lists and `dict`s are stored as their string representation. To keep a complex value searchable, serialize it to a string before logging, for example `json.dumps(workflow_ids)`.
3737

3838
</Alert>

0 commit comments

Comments
 (0)