Skip to content

Commit df9841e

Browse files
authored
Update CHANGELOG.md
1 parent fc70611 commit df9841e

File tree

1 file changed

+46
-10
lines changed

1 file changed

+46
-10
lines changed

CHANGELOG.md

Lines changed: 46 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,53 @@
44

55
### Various fixes & improvements
66

7-
- ref(awslambda): xfail broken tests for now (#2794) by @sentrivana
8-
- Removed print statements because it messes with the tests (#2789) by @antonpirker
9-
- build(deps): bump types-protobuf from 4.24.0.20240129 to 4.24.0.20240302 (#2782) by @dependabot
10-
- build(deps): bump checkouts/data-schemas from `eb941c2` to `ed078ed` (#2781) by @dependabot
11-
- feat(transport): Expose `socket_options` (#2786) by @sentrivana
7+
- Add recursive scrubbing to `EventScrubber` (#2755) by @Cheapshot003
8+
9+
By default, the `EventScrubber` will not search your events for potential
10+
PII recursively. With this release, you can enable this behavior with:
11+
12+
```python
13+
import sentry_sdk
14+
from sentry_sdk.scrubber import EventScrubber
15+
16+
sentry_sdk.init(
17+
# ...your usual settings...
18+
event_scrubber=EventScrubber(recursive=True),
19+
)
20+
```
21+
22+
- Expose `socket_options` (#2786) by @sentrivana
23+
24+
If the SDK is experiencing connection issues (connection resets, server
25+
closing connection without response, etc.) while sending events to Sentry,
26+
tweaking the default `urllib3` socket options to the following can help:
27+
28+
```python
29+
import socket
30+
from urllib3.connection import HTTPConnection
31+
import sentry_sdk
32+
33+
sentry_sdk.init(
34+
# ...your usual settings...
35+
socket_options=HTTPConnection.default_socket_options + [
36+
(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1),
37+
# note: skip the following line if you're on MacOS since TCP_KEEPIDLE doesn't exist there
38+
(socket.SOL_TCP, socket.TCP_KEEPIDLE, 45),
39+
(socket.SOL_TCP, socket.TCP_KEEPINTVL, 10),
40+
(socket.SOL_TCP, socket.TCP_KEEPCNT, 6),
41+
],
42+
)
43+
```
44+
1245
- Allow to configure merge target for releases (#2777) by @sentrivana
13-
- fix(docs): allow empty character in metric tags values (#2775) by @viglia
14-
- fix(metrics): Replace invalid tag values with an empty string instead of _ (#2773) by @markushi
15-
- docs: Add documentation comment to `scrub_list` (#2769) by @szokeasaurusrex
16-
- ref(scrubber): Add recursive scrubbing to EventScrubber (#2755) by @Cheapshot003
17-
- Fixed regex to parse version in lambda package file (#2767) by @sentrivana
46+
- Allow empty character in metric tags values (#2775) by @viglia
47+
- Replace invalid tag values with an empty string instead of _ (#2773) by @markushi
48+
- Add documentation comment to `scrub_list` (#2769) by @szokeasaurusrex
49+
- Fixed regex to parse version in lambda package file (#2767) by @antonpirker
50+
- xfail broken AWS Lambda tests for now (#2794) by @sentrivana
51+
- Removed print statements because it messes with the tests (#2789) by @antonpirker
52+
- Bump `types-protobuf` from 4.24.0.20240129 to 4.24.0.20240302 (#2782) by @dependabot
53+
- Bump `checkouts/data-schemas` from `eb941c2` to `ed078ed` (#2781) by @dependabot
1854

1955
## 1.40.6
2056

0 commit comments

Comments
 (0)