Bump sentry-sdk from 1.5.12 to 2.40.0
Bumps sentry-sdk from 1.5.12 to 2.40.0.
Release notes
Sourced from sentry-sdk's releases.
2.40.0
Various fixes & improvements
Add LiteLLM integration (#4864) by
@constantiniusOnce 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:import sentry_sdk from sentry_sdk.integrations.litellm import LiteLLMIntegration sentry_sdk.init( dsn="<your-dsn>", # Set traces_sample_rate to 1.0 to capture 100% # of transactions for tracing. traces_sample_rate=1.0, # Add data like inputs and responses; # see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info send_default_pii=True, integrations=[ LiteLLMIntegration(), ], )Litestar: Copy request info to prevent cookies mutation (#4883) by
@alexander-alderman-webbAlso emit spans for MCP tool calls done by the LLM (#4875) by
@constantiniusOption to not trace HTTP requests based on status codes (#4869) by
@alexander-alderman-webbYou can now disable transactions for incoming requests with specific HTTP status codes. The newtrace_ignore_status_codesoption accepts asetof status codes as integers. If a transaction wraps a request that results in one of the provided status codes, the transaction will be unsampled.import sentry_sdksentry_sdk.init(
trace_ignore_status_codes={301, 302, 303, *range(305, 400), 404},
)
Move
_set_agent_datacall toai_client_spanfunction (#4876) by@constantiniusAdd script to determine lowest supported versions (#4867) by
@sentrivanaUpdate
CONTRIBUTING.md(#4870) by@sentrivana2.39.0
Various fixes & improvements
- Fix(AI): Make agents integrations set the span status in case of error (#4820) by
@antonpirker- Fix(dedupe): Use weakref in dedupe where possible (#4834) by
@sl0thentr0py- Fix(Django): Avoid evaluating complex Django object in span.data/span.attributes (#4804) by
@antonpirker- Fix(Langchain): Don't record tool call output if not include_prompt / should_send_default_pii (#4836) by
@shellmayr- Fix(OpenAI): Don't swallow userland exceptions in openai (#4861) by
@sl0thentr0py- Docs: Update contributing guidelines with instructions to run tests with tox (#4857) by
@alexander-alderman-webb
... (truncated)
Changelog
Sourced from sentry-sdk's changelog.
2.40.0
Various fixes & improvements
Add LiteLLM integration (#4864) by
@constantiniusOnce 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:import sentry_sdk from sentry_sdk.integrations.litellm import LiteLLMIntegration sentry_sdk.init( dsn="<your-dsn>", # Set traces_sample_rate to 1.0 to capture 100% # of transactions for tracing. traces_sample_rate=1.0, # Add data like inputs and responses; # see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info send_default_pii=True, integrations=[ LiteLLMIntegration(), ], )Litestar: Copy request info to prevent cookies mutation (#4883) by
@alexander-alderman-webbAlso emit spans for MCP tool calls done by the LLM (#4875) by
@constantiniusOption to not trace HTTP requests based on status codes (#4869) by
@alexander-alderman-webbYou can now disable transactions for incoming requests with specific HTTP status codes. The newtrace_ignore_status_codesoption accepts asetof status codes as integers. If a transaction wraps a request that results in one of the provided status codes, the transaction will be unsampled.import sentry_sdksentry_sdk.init(
trace_ignore_status_codes={301, 302, 303, *range(305, 400), 404},
)
Move
_set_agent_datacall toai_client_spanfunction (#4876) by@constantiniusAdd script to determine lowest supported versions (#4867) by
@sentrivanaUpdate
CONTRIBUTING.md(#4870) by@sentrivana2.39.0
Various fixes & improvements
- Fix(AI): Make agents integrations set the span status in case of error (#4820) by
@antonpirker- Fix(dedupe): Use weakref in dedupe where possible (#4834) by
@sl0thentr0py- Fix(Django): Avoid evaluating complex Django object in span.data/span.attributes (#4804) by
@antonpirker- Fix(Langchain): Don't record tool call output if not include_prompt / should_send_default_pii (#4836) by
@shellmayr
... (truncated)
Commits
04968c4Add links to CHANGELOG.md070ecd0Update CHANGELOG.md91cc2bcrelease: 2.40.0bf77a86fix(litestar): Copy request info to prevent cookies mutation (#4883)41f709eci: 🤖 Update test matrix with new releases (10/06) (#4890)8bc1966ci: 🤖 Update test matrix with new releases (10/06) (#4889)39cb2c5feat(huggingface): Support 1.0.0rc2 (#4873)f979abffeat(integrations): add litellm integration (#4864)bbd2a5dfeat(integrations): Add tracing to DramatiqIntegration (#4571)f3e8a5cfix(tests): Don't assume release is set (#4879)- Additional commits viewable in compare view
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note Automatic rebases have been disabled on this pull request as it has been open for over 30 days.