Skip to content

Commit 400fc56

Browse files
authored
feat(python): Add missing sensitive data examples (#14415)
[This section](https://docs.sentry.io/platforms/python/data-management/sensitive-data/#examples) in the Python docs is currently showing JS examples. Adding the missing examples in Python.
1 parent df21655 commit 400fc56

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```python
2+
sentry_sdk.set_tag("birthday", checksum_or_hash("08/12/1990"))
3+
```
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
```python
2+
sentry_sdk.set_user({"id": user.id})
3+
4+
# or
5+
6+
sentry_sdk.set_user({"username": user.username})
7+
```

0 commit comments

Comments
 (0)