Skip to content

Commit e60aaef

Browse files
sergicalclaude
andcommitted
docs(logs): stringify feature_flags example in Python best practices
The "Include Business Context" example showed feature_flags as a raw list, which the Python SDK drops on ingestion (arrays aren't stored as attributes). Show the join-to-string pattern instead so the example actually works. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 3bddae6 commit e60aaef

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

platform-includes/logs/best-practices/python.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ sentry_sdk.logger.info(
6969

7070
# Business context
7171
"order_value": 149.99,
72-
"feature_flags": ["new-checkout", "discount-v2"],
72+
# Join lists into a string — array values aren't stored as attributes
73+
"feature_flags": ",".join(["new-checkout", "discount-v2"]),
7374
}
7475
)
7576
```

0 commit comments

Comments
 (0)