|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## 1.43.0 |
| 4 | + |
| 5 | +### Various fixes & improvements |
| 6 | + |
| 7 | +- Add optional `keep_alive` (#2842) by @sentrivana |
| 8 | + |
| 9 | + If you're experiencing frequent network issues between the SDK and Sentry, |
| 10 | + you can try turning on TCP keep-alive: |
| 11 | + |
| 12 | + ```python |
| 13 | + import sentry_sdk |
| 14 | + |
| 15 | + sentry_sdk.init( |
| 16 | + # ...your usual settings... |
| 17 | + keep_alive=True, |
| 18 | + ) |
| 19 | + ``` |
| 20 | + |
| 21 | +- Add support for Celery Redbeat cron tasks (#2643) by @kwigley |
| 22 | + |
| 23 | + The SDK now supports the Redbeat scheduler in addition to the default |
| 24 | + Celery Beat scheduler for auto instrumenting crons. See |
| 25 | + [the docs](https://docs.sentry.io/platforms/python/integrations/celery/crons/) |
| 26 | + for more information about how to set this up. |
| 27 | + |
| 28 | +- `aws_event` can be an empty list (#2849) by @sentrivana |
| 29 | +- Re-export `Event` in `types.py` (#2829) by @szokeasaurusrex |
| 30 | +- Small API docs improvement (#2828) by @antonpirker |
| 31 | +- Fixed OpenAI tests (#2834) by @antonpirker |
| 32 | +- Bump `checkouts/data-schemas` from `ed078ed` to `8232f17` (#2832) by @dependabot |
| 33 | + |
| 34 | +## 1.42.0 |
| 35 | + |
| 36 | +### Various fixes & improvements |
| 37 | + |
| 38 | +- **New integration:** [OpenAI integration](https://docs.sentry.io/platforms/python/integrations/openai/) (#2791) by @colin-sentry |
| 39 | + |
| 40 | + We added an integration for OpenAI to capture errors and also performance data when using the OpenAI Python SDK. |
| 41 | + |
| 42 | + Useage: |
| 43 | + |
| 44 | + This integrations is auto-enabling, so if you have the `openai` package in your project it will be enabled. Just initialize Sentry before you create your OpenAI client. |
| 45 | + |
| 46 | + ```python |
| 47 | + from openai import OpenAI |
| 48 | + |
| 49 | + import sentry_sdk |
| 50 | + |
| 51 | + sentry_sdk.init( |
| 52 | + dsn="___PUBLIC_DSN___", |
| 53 | + enable_tracing=True, |
| 54 | + traces_sample_rate=1.0, |
| 55 | + ) |
| 56 | + |
| 57 | + client = OpenAI() |
| 58 | + ``` |
| 59 | + |
| 60 | + For more information, see the documentation for [OpenAI integration](https://docs.sentry.io/platforms/python/integrations/openai/). |
| 61 | + |
| 62 | +- Discard open OpenTelemetry spans after 10 minutes (#2801) by @antonpirker |
| 63 | +- Propagate sentry-trace and baggage headers to Huey tasks (#2792) by @cnschn |
| 64 | +- Added Event type (#2753) by @szokeasaurusrex |
| 65 | +- Improve scrub_dict typing (#2768) by @szokeasaurusrex |
| 66 | +- Dependencies: bump types-protobuf from 4.24.0.20240302 to 4.24.0.20240311 (#2797) by @dependabot |
| 67 | + |
| 68 | +## 1.41.0 |
| 69 | + |
| 70 | +### Various fixes & improvements |
| 71 | + |
| 72 | +- Add recursive scrubbing to `EventScrubber` (#2755) by @Cheapshot003 |
| 73 | + |
| 74 | + By default, the `EventScrubber` will not search your events for potential |
| 75 | + PII recursively. With this release, you can enable this behavior with: |
| 76 | + |
| 77 | + ```python |
| 78 | + import sentry_sdk |
| 79 | + from sentry_sdk.scrubber import EventScrubber |
| 80 | + |
| 81 | + sentry_sdk.init( |
| 82 | + # ...your usual settings... |
| 83 | + event_scrubber=EventScrubber(recursive=True), |
| 84 | + ) |
| 85 | + ``` |
| 86 | + |
| 87 | +- Expose `socket_options` (#2786) by @sentrivana |
| 88 | + |
| 89 | + If the SDK is experiencing connection issues (connection resets, server |
| 90 | + closing connection without response, etc.) while sending events to Sentry, |
| 91 | + tweaking the default `urllib3` socket options to the following can help: |
| 92 | + |
| 93 | + ```python |
| 94 | + import socket |
| 95 | + from urllib3.connection import HTTPConnection |
| 96 | + import sentry_sdk |
| 97 | + |
| 98 | + sentry_sdk.init( |
| 99 | + # ...your usual settings... |
| 100 | + socket_options=HTTPConnection.default_socket_options + [ |
| 101 | + (socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1), |
| 102 | + # note: skip the following line if you're on MacOS since TCP_KEEPIDLE doesn't exist there |
| 103 | + (socket.SOL_TCP, socket.TCP_KEEPIDLE, 45), |
| 104 | + (socket.SOL_TCP, socket.TCP_KEEPINTVL, 10), |
| 105 | + (socket.SOL_TCP, socket.TCP_KEEPCNT, 6), |
| 106 | + ], |
| 107 | + ) |
| 108 | + ``` |
| 109 | + |
| 110 | +- Allow to configure merge target for releases (#2777) by @sentrivana |
| 111 | +- Allow empty character in metric tags values (#2775) by @viglia |
| 112 | +- Replace invalid tag values with an empty string instead of _ (#2773) by @markushi |
| 113 | +- Add documentation comment to `scrub_list` (#2769) by @szokeasaurusrex |
| 114 | +- Fixed regex to parse version in lambda package file (#2767) by @antonpirker |
| 115 | +- xfail broken AWS Lambda tests for now (#2794) by @sentrivana |
| 116 | +- Removed print statements because it messes with the tests (#2789) by @antonpirker |
| 117 | +- Bump `types-protobuf` from 4.24.0.20240129 to 4.24.0.20240302 (#2782) by @dependabot |
| 118 | +- Bump `checkouts/data-schemas` from `eb941c2` to `ed078ed` (#2781) by @dependabot |
| 119 | + |
| 120 | +## 1.40.6 |
| 121 | + |
| 122 | +### Various fixes & improvements |
| 123 | + |
| 124 | +- Fix compatibility with `greenlet`/`gevent` (#2756) by @sentrivana |
| 125 | +- Fix query source relative filepath (#2717) by @gggritso |
| 126 | +- Support `clickhouse-driver==0.2.7` (#2752) by @sentrivana |
| 127 | +- Bump `checkouts/data-schemas` from `6121fd3` to `eb941c2` (#2747) by @dependabot |
| 128 | + |
3 | 129 | ## 1.40.5
|
4 | 130 |
|
5 | 131 | ### Various fixes & improvements
|
|
0 commit comments