|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## 2.70.0 |
| 4 | + |
| 5 | +### New Features ✨ |
| 6 | + |
| 7 | +- **New integration:** Mistral AI (#4733) by @alexander-alderman-webb |
| 8 | + |
| 9 | + Add the Mistral integration to your `sentry_sdk.init` call: |
| 10 | + |
| 11 | +```python |
| 12 | +import sentry_sdk |
| 13 | +from sentry_sdk.integrations.mistral import MistralIntegration |
| 14 | + |
| 15 | +sentry_sdk.init( |
| 16 | + dsn="...", |
| 17 | + traces_sample_rate=1.0, |
| 18 | + integrations=[ |
| 19 | + MistralIntegration(), |
| 20 | + ] |
| 21 | +) |
| 22 | +``` |
| 23 | + |
| 24 | +- **New option:** A fine-grained way to configure what data should be sent from the SDK. |
| 25 | + |
| 26 | + Offers much more flexibility than `send_default_pii`, allowing you to specify what |
| 27 | + data should be collected. If `data_collection` is defined, it takes precedence over |
| 28 | + `send_default_pii`. |
| 29 | + |
| 30 | + See https://docs.sentry.io/platforms/python/configuration/options/#data_collection |
| 31 | + for the available configuration options. |
| 32 | + |
| 33 | +```python |
| 34 | +import sentry_sdk |
| 35 | + |
| 36 | +sentry_sdk.init( |
| 37 | + data_collection={ |
| 38 | + "user_info": False, |
| 39 | + "gen_ai": {"inputs": False, "outputs": False}, |
| 40 | + "graphql": {"document": False, "variables": False}, |
| 41 | + "database_query_data": False, |
| 42 | + "queues": False, |
| 43 | + "http_bodies": [], |
| 44 | + "cookies": { |
| 45 | + "mode": "denylist", |
| 46 | + "terms": ["forwarded", "-ip", "remote-", "via", "-user"], |
| 47 | + }, |
| 48 | + "http_headers": { |
| 49 | + "request": { |
| 50 | + "mode": "denylist", |
| 51 | + "terms": ["forwarded", "-ip", "remote-", "via", "-user"], |
| 52 | + }, |
| 53 | + }, |
| 54 | + "url_query_params": { |
| 55 | + "mode": "denylist", |
| 56 | + "terms": ["forwarded", "-ip", "remote-", "via", "-user"], |
| 57 | + }, |
| 58 | + } |
| 59 | +) |
| 60 | +``` |
| 61 | + |
| 62 | +#### Mistral |
| 63 | + |
| 64 | +- Record `gen_ai.output.messages` by @alexander-alderman-webb in [#7549](https://github.com/getsentry/sentry-python/pull/7549) |
| 65 | +- Record `gen_ai.input.messages` by @alexander-alderman-webb in [#7548](https://github.com/getsentry/sentry-python/pull/7548) |
| 66 | +- Record `gen_ai.system_instructions` by @alexander-alderman-webb in [#7547](https://github.com/getsentry/sentry-python/pull/7547) |
| 67 | +- Record request parameters by @alexander-alderman-webb in [#7531](https://github.com/getsentry/sentry-python/pull/7531) |
| 68 | +- Record token usage by @alexander-alderman-webb in [#7529](https://github.com/getsentry/sentry-python/pull/7529) |
| 69 | +- Add integration with `Chat.complete` and `Chat.complete_async` patches by @alexander-alderman-webb in [#7528](https://github.com/getsentry/sentry-python/pull/7528) |
| 70 | + |
| 71 | +### Internal Changes 🔧 |
| 72 | + |
| 73 | +- (data-collection) Promote `data_collection` from `_experiments` o top-level by @ericapisani in [#7560](https://github.com/getsentry/sentry-python/pull/7560) |
| 74 | +- Close client on teardown by @alexander-alderman-webb in [#7562](https://github.com/getsentry/sentry-python/pull/7562) |
| 75 | +- 🤖 Update test matrix with new releases (09/21) by @github-actions in [#7546](https://github.com/getsentry/sentry-python/pull/7546) |
| 76 | +- Remove `getsentry/testing-ai-sdk-integrations` by @alexander-alderman-webb in [#7526](https://github.com/getsentry/sentry-python/pull/7526) |
| 77 | + |
3 | 78 | ## 2.69.2 |
4 | 79 |
|
5 | 80 | ### Bug Fixes 🐛 |
|
0 commit comments