|
2 | 2 |
|
3 | 3 | ## 2.60.0 |
4 | 4 |
|
| 5 | +Adds a new `stream_gen_ai_spans` option that controls how `gen_ai` spans are |
| 6 | +sent to Sentry. When set, the SDK extracts all `gen_ai` spans out of a |
| 7 | +transaction and sends them as v2 envelope items. |
| 8 | + |
| 9 | +Enable this option if `gen_ai` spans are being dropped because the transaction payload exceeds size limits. |
| 10 | + |
| 11 | +```python |
| 12 | +import sentry_sdk |
| 13 | + |
| 14 | +sentry_sdk.init( |
| 15 | + dsn='https://examplePublicKey@o0.ingest.sentry.io/0', |
| 16 | + stream_gen_ai_spans=True, |
| 17 | +) |
| 18 | +``` |
| 19 | + |
5 | 20 | ### New Features ✨ |
6 | 21 |
|
7 | | -- (aiohttp) Add span streaming support by @ericapisani in [#6179](https://github.com/getsentry/sentry-python/pull/6179) |
8 | | -- (argv) Support span streaming by @sentrivana in [#6227](https://github.com/getsentry/sentry-python/pull/6227) |
9 | 22 | - (asyncpg) Add cursor span support via BaseCursor method patching by @ericapisani in [#6252](https://github.com/getsentry/sentry-python/pull/6252) |
10 | | -- (boto3) Support span streaming by @alexander-alderman-webb in [#6193](https://github.com/getsentry/sentry-python/pull/6193) |
11 | 23 | - (integrations) Pass along the conversation ID for openai `responses` calls by @constantinius in [#6199](https://github.com/getsentry/sentry-python/pull/6199) |
12 | | -- (transport) Add EnvelopePrinterTransport for debug logging by @ericapisani in [#6181](https://github.com/getsentry/sentry-python/pull/6181) |
13 | 24 | - (wsgi,asgi) Introduce substitute values for filtered fields in span-streaming mode by @ericapisani in [#6178](https://github.com/getsentry/sentry-python/pull/6178) |
14 | 25 | - Remove truncation when `stream_gen_ai_spans` is enabled by @alexander-alderman-webb in [#6260](https://github.com/getsentry/sentry-python/pull/6260) |
15 | 26 | - Add option to send GenAI spans in the new span format by @alexander-alderman-webb in [#6079](https://github.com/getsentry/sentry-python/pull/6079) |
|
46 | 57 |
|
47 | 58 | #### Other |
48 | 59 |
|
49 | | -- (asyncio) Migrate integration to span-first by @ericapisani in [#6198](https://github.com/getsentry/sentry-python/pull/6198) |
50 | 60 | - (langchain) Inline global state by @alexander-alderman-webb in [#6261](https://github.com/getsentry/sentry-python/pull/6261) |
51 | 61 | - (stdlib) Only capture relevant telemetry with `capture_items()` by @alexander-alderman-webb in [#6214](https://github.com/getsentry/sentry-python/pull/6214) |
52 | 62 | - (tests) Replace custom `envelopes_to_x` helpers with `capture_items` by @sentrivana in [#6233](https://github.com/getsentry/sentry-python/pull/6233) |
|
58 | 68 | - Move batcher fork safety test to batcher tests by @sentrivana in [#6225](https://github.com/getsentry/sentry-python/pull/6225) |
59 | 69 | - Introduce inline type check for whether a span is StreamedSpan by @ericapisani in [#6180](https://github.com/getsentry/sentry-python/pull/6180) |
60 | 70 | - Add `botocore-stubs` by @alexander-alderman-webb in [#6203](https://github.com/getsentry/sentry-python/pull/6203) |
61 | | - |
62 | | -### Other |
63 | | - |
64 | 71 | - Add option to drop scrubbed user IP addresses by @juliosuas in [#6241](https://github.com/getsentry/sentry-python/pull/6241) |
65 | 72 | - Add .warden to .gitignore by @ericapisani in [#6210](https://github.com/getsentry/sentry-python/pull/6210) |
66 | 73 | - removed universal bdist_wheel option by @Muskaan436 in [#6197](https://github.com/getsentry/sentry-python/pull/6197) |
| 74 | +- (transport) Add EnvelopePrinterTransport for debug logging by @ericapisani in [#6181](https://github.com/getsentry/sentry-python/pull/6181) |
67 | 75 |
|
68 | 76 | ## 2.59.0 |
69 | 77 |
|
|
0 commit comments