|  | 
| 4 | 4 | 
 | 
| 5 | 5 | ### Various fixes & improvements | 
| 6 | 6 | 
 | 
| 7 |  | -- fix(litestar): Copy request info to prevent cookies mutation (#4883) by @alexander-alderman-webb | 
| 8 |  | -- ci: 🤖 Update test matrix with new releases (10/06) (#4890) by @github-actions | 
| 9 |  | -- ci: 🤖 Update test matrix with new releases (10/06) (#4889) by @github-actions | 
| 10 |  | -- feat(huggingface): Support 1.0.0rc2 (#4873) by @sentrivana | 
| 11 |  | -- feat(integrations): add litellm integration (#4864) by @constantinius | 
| 12 |  | -- feat(integrations): Add tracing to DramatiqIntegration (#4571) by @Igreh | 
| 13 |  | -- fix(tests): Don't assume release is set (#4879) by @sentrivana | 
| 14 |  | -- ci: 🤖 Update test matrix with new releases (10/02) (#4880) by @github-actions | 
| 15 |  | -- fix(openai-agents): also emit spans for MCP tool calls done by the LLM (#4875) by @constantinius | 
| 16 |  | -- feat: Option to not trace HTTP requests based on status codes (#4869) by @alexander-alderman-webb | 
| 17 |  | -- fix(openai-agents): Move _set_agent_data call to ai_client_span function (#4876) by @constantinius | 
| 18 |  | -- ci: 🤖 Update test matrix with new releases (09/29) (#4872) by @github-actions | 
| 19 |  | -- build(deps): update shibuya requirement from <2025.9.22 (#4871) by @dependabot | 
| 20 |  | -- feat: Add script to determine lowest supported versions (#4867) by @sentrivana | 
| 21 |  | -- docs: Update CONTRIBUTING.md (#4870) by @sentrivana | 
| 22 |  | -- ci: Replace `black` and `flake8` with `ruff`. (#4866) by @antonpirker | 
| 23 |  | -- feat(toxgen): Generate `TESTPATH` for integrated test suites (#4863) by @sentrivana | 
|  | 7 | +- Add LiteLLM integration (#4864) by @constantinius | 
|  | 8 | +  Once you've enabled the new LiteLLM integration, you can use the Sentry AI Agents Monitoring, a Sentry dashboard that helps you understand what's going on with your AI requests: | 
|  | 9 | +   | 
|  | 10 | +  ```python | 
|  | 11 | +  import sentry_sdk | 
|  | 12 | +  from sentry_sdk.integrations.litellm import LiteLLMIntegration | 
|  | 13 | +  sentry_sdk.init( | 
|  | 14 | +      dsn="<your-dsn>", | 
|  | 15 | +      # Set traces_sample_rate to 1.0 to capture 100% | 
|  | 16 | +      # of transactions for tracing. | 
|  | 17 | +      traces_sample_rate=1.0, | 
|  | 18 | +      # Add data like inputs and responses; | 
|  | 19 | +      # see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info | 
|  | 20 | +      send_default_pii=True, | 
|  | 21 | +      integrations=[ | 
|  | 22 | +          LiteLLMIntegration(), | 
|  | 23 | +      ], | 
|  | 24 | +  ) | 
|  | 25 | +  ``` | 
|  | 26 | + | 
|  | 27 | +- Litestar: Copy request info to prevent cookies mutation (#4883) by @alexander-alderman-webb | 
|  | 28 | +- Add tracing to `DramatiqIntegration` (#4571) by @Igreh | 
|  | 29 | +- Also emit spans for MCP tool calls done by the LLM (#4875) by @constantinius | 
|  | 30 | +- Option to not trace HTTP requests based on status codes (#4869) by @alexander-alderman-webb | 
|  | 31 | +  You can now disable transactions for incoming requests with specific HTTP status codes. The new `trace_ignore_status_codes` option accepts a `set` of status codes as integers. If a transaction wraps a request that results in one of the provided status codes, the transaction will be unsampled. | 
|  | 32 | +     | 
|  | 33 | +  ```python | 
|  | 34 | +  import sentry_sdk | 
|  | 35 | +   | 
|  | 36 | +  sentry_sdk.init( | 
|  | 37 | +      trace_ignore_status_codes={301, 302, 303, *range(305, 400), 404}, | 
|  | 38 | +  ) | 
|  | 39 | +  ``` | 
|  | 40 | + | 
|  | 41 | +- Move `_set_agent_data` call to `ai_client_span` function (#4876) by @constantinius | 
|  | 42 | +- Add script to determine lowest supported versions (#4867) by @sentrivana | 
|  | 43 | +- Update `CONTRIBUTING.md` (#4870) by @sentrivana | 
| 24 | 44 | 
 | 
| 25 | 45 | ## 2.39.0 | 
| 26 | 46 | 
 | 
|  | 
0 commit comments