|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## 2.71.0 |
| 4 | + |
| 5 | +### New Features ✨ |
| 6 | + |
| 7 | +- **New integration:** TypeSafe (#4733) by @alexander-alderman-webb |
| 8 | + |
| 9 | + Add the TypeSafe integration to your `sentry_sdk.init` call: |
| 10 | + |
| 11 | +```python |
| 12 | +import sentry_sdk |
| 13 | +from sentry_sdk.integrations.typesafe import TypeSafeIntegration |
| 14 | + |
| 15 | +sentry_sdk.init( |
| 16 | + dsn="...", |
| 17 | + traces_sample_rate=1.0, |
| 18 | + integrations=[ |
| 19 | + TypeSafeIntegration(), |
| 20 | + ] |
| 21 | +) |
| 22 | +``` |
| 23 | + |
| 24 | +#### Typesafe |
| 25 | + |
| 26 | +- Record `gen_ai.output.messages` by @alexander-alderman-webb in [#7720](https://github.com/getsentry/sentry-python/pull/7720) |
| 27 | +- Set token usage attributes by @alexander-alderman-webb in [#7719](https://github.com/getsentry/sentry-python/pull/7719) |
| 28 | +- Record `gen_ai.input.messages` by @alexander-alderman-webb in [#7718](https://github.com/getsentry/sentry-python/pull/7718) |
| 29 | +- Record `gen_ai.response.model` by @alexander-alderman-webb in [#7717](https://github.com/getsentry/sentry-python/pull/7717) |
| 30 | +- Add integration with `system_one()` patches by @alexander-alderman-webb in [#7716](https://github.com/getsentry/sentry-python/pull/7716) |
| 31 | + |
| 32 | +### Bug Fixes 🐛 |
| 33 | + |
| 34 | +- Keep event if processor raises by @sentrivana in [#7701](https://github.com/getsentry/sentry-python/pull/7701) |
| 35 | +- Isolate user callbacks, emit client reports by @sentrivana in [#7692](https://github.com/getsentry/sentry-python/pull/7692) |
| 36 | + |
| 37 | +### Documentation 📚 |
| 38 | + |
| 39 | +- Promote `data_collection` in changelog by @sentrivana in [#7565](https://github.com/getsentry/sentry-python/pull/7565) |
| 40 | + |
| 41 | +### Internal Changes 🔧 |
| 42 | + |
| 43 | +- (aws-lambda) Add `.gitignore` to lambda handlers by @pabloDeputter in [#7638](https://github.com/getsentry/sentry-python/pull/7638) |
| 44 | +- (litellm) Set `LITELLM_LOCAL_MODEL_COST_MAP=true` by @alexander-alderman-webb in [#7630](https://github.com/getsentry/sentry-python/pull/7630) |
| 45 | +- (otlp) Adjust to `OTLPSpanExporter._headers` removal by @alexander-alderman-webb in [#7722](https://github.com/getsentry/sentry-python/pull/7722) |
| 46 | +- Use top-level flush API in tests by @sentrivana in [#7725](https://github.com/getsentry/sentry-python/pull/7725) |
| 47 | +- Unsample on sampler exception by @sentrivana in [#7723](https://github.com/getsentry/sentry-python/pull/7723) |
| 48 | +- Use `sentry_init` fixture by @sentrivana in [#7577](https://github.com/getsentry/sentry-python/pull/7577) |
| 49 | + |
| 50 | +## 2.70.0 |
| 51 | + |
| 52 | +### New Features ✨ |
| 53 | + |
| 54 | +- **New integration:** Mistral AI (#4733) by @alexander-alderman-webb |
| 55 | + |
| 56 | + Add the Mistral integration to your `sentry_sdk.init` call: |
| 57 | + |
| 58 | +```python |
| 59 | +import sentry_sdk |
| 60 | +from sentry_sdk.integrations.mistral import MistralIntegration |
| 61 | + |
| 62 | +sentry_sdk.init( |
| 63 | + dsn="...", |
| 64 | + traces_sample_rate=1.0, |
| 65 | + integrations=[ |
| 66 | + MistralIntegration(), |
| 67 | + ] |
| 68 | +) |
| 69 | +``` |
| 70 | + |
| 71 | +- **New option:** A fine-grained way to configure what data should be sent from the SDK. |
| 72 | + |
| 73 | + Offers much more flexibility than `send_default_pii`, allowing you to specify what |
| 74 | + data should be collected. If `data_collection` is defined, it takes precedence over |
| 75 | + `send_default_pii`. |
| 76 | + |
| 77 | + See https://docs.sentry.io/platforms/python/configuration/options/#data_collection |
| 78 | + for the available configuration options. |
| 79 | + |
| 80 | +```python |
| 81 | +import sentry_sdk |
| 82 | + |
| 83 | +sentry_sdk.init( |
| 84 | + data_collection={ |
| 85 | + "user_info": False, |
| 86 | + "gen_ai": {"inputs": False, "outputs": False}, |
| 87 | + "graphql": {"document": False, "variables": False}, |
| 88 | + "database_query_data": False, |
| 89 | + "queues": False, |
| 90 | + "http_bodies": [], |
| 91 | + "cookies": { |
| 92 | + "mode": "denylist", |
| 93 | + "terms": ["forwarded", "-ip", "remote-", "via", "-user"], |
| 94 | + }, |
| 95 | + "http_headers": { |
| 96 | + "request": { |
| 97 | + "mode": "denylist", |
| 98 | + "terms": ["forwarded", "-ip", "remote-", "via", "-user"], |
| 99 | + }, |
| 100 | + }, |
| 101 | + "url_query_params": { |
| 102 | + "mode": "denylist", |
| 103 | + "terms": ["forwarded", "-ip", "remote-", "via", "-user"], |
| 104 | + }, |
| 105 | + } |
| 106 | +) |
| 107 | +``` |
| 108 | + |
| 109 | +#### Mistral |
| 110 | + |
| 111 | +- Record `gen_ai.output.messages` by @alexander-alderman-webb in [#7549](https://github.com/getsentry/sentry-python/pull/7549) |
| 112 | +- Record `gen_ai.input.messages` by @alexander-alderman-webb in [#7548](https://github.com/getsentry/sentry-python/pull/7548) |
| 113 | +- Record `gen_ai.system_instructions` by @alexander-alderman-webb in [#7547](https://github.com/getsentry/sentry-python/pull/7547) |
| 114 | +- Record request parameters by @alexander-alderman-webb in [#7531](https://github.com/getsentry/sentry-python/pull/7531) |
| 115 | +- Record token usage by @alexander-alderman-webb in [#7529](https://github.com/getsentry/sentry-python/pull/7529) |
| 116 | +- Add integration with `Chat.complete` and `Chat.complete_async` patches by @alexander-alderman-webb in [#7528](https://github.com/getsentry/sentry-python/pull/7528) |
| 117 | + |
| 118 | +### Internal Changes 🔧 |
| 119 | + |
| 120 | +- (data-collection) Promote `data_collection` from `_experiments` o top-level by @ericapisani in [#7560](https://github.com/getsentry/sentry-python/pull/7560) |
| 121 | +- Close client on teardown by @alexander-alderman-webb in [#7562](https://github.com/getsentry/sentry-python/pull/7562) |
| 122 | +- 🤖 Update test matrix with new releases (09/21) by @github-actions in [#7546](https://github.com/getsentry/sentry-python/pull/7546) |
| 123 | +- Remove `getsentry/testing-ai-sdk-integrations` by @alexander-alderman-webb in [#7526](https://github.com/getsentry/sentry-python/pull/7526) |
| 124 | + |
3 | 125 | ## 2.69.2 |
4 | 126 |
|
5 | 127 | ### Bug Fixes 🐛 |
|
0 commit comments