freshcrate
Home > Databases > sentry-sdk

sentry-sdk

Python client for Sentry (https://sentry.io)

Description

<a href="https://sentry.io/?utm_source=github&utm_medium=logo" target="_blank"> <img src="https://sentry-brand.storage.googleapis.com/github-banners/github-sdk-python.png" alt="Sentry for Python"> </a> <div align="center"> _Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us [<kbd>**Check out our open positions**</kbd>](https://sentry.io/careers/)_. [![Discord](https://img.shields.io/discord/621778831602221064?logo=discord&labelColor=%20%235462eb&logoColor=%20%23f5f5f5&color=%20%235462eb)](https://discord.com/invite/Ww9hbqr) [![X Follow](https://img.shields.io/twitter/follow/sentry?label=sentry&style=social)](https://x.com/intent/follow?screen_name=sentry) [![PyPi page link -- version](https://img.shields.io/pypi/v/sentry-sdk.svg)](https://pypi.python.org/pypi/sentry-sdk) <img src="https://img.shields.io/badge/python-3.7 | 3.8 | 3.9 | 3.10 | 3.11 | 3.12 | 3.13 | 3.14-blue.svg" alt="python"> [![Build Status](https://github.com/getsentry/sentry-python/actions/workflows/ci.yml/badge.svg)](https://github.com/getsentry/sentry-python/actions/workflows/ci.yml) <br/> </div> # Official Sentry SDK for Python Welcome to the official Python SDK for **[Sentry](http://sentry.io/)**. ## 📦 Getting Started ### Prerequisites You need a Sentry [account](https://sentry.io/signup/) and [project](https://docs.sentry.io/product/projects/). ### Installation Getting Sentry into your project is straightforward. Just run this command in your terminal: ```bash pip install --upgrade sentry-sdk ``` ### Basic Configuration Here's a quick configuration example to get Sentry up and running: ```python import sentry_sdk sentry_sdk.init( "https://12927b5f211046b575ee51fd8b1ac34f@o1.ingest.sentry.io/1", # Your DSN here # Set traces_sample_rate to 1.0 to capture 100% # of traces for performance monitoring. traces_sample_rate=1.0, ) ``` With this configuration, Sentry will monitor for exceptions and performance issues. ### Quick Usage Example To generate some events that will show up in Sentry, you can log messages or capture errors: ```python import sentry_sdk sentry_sdk.init(...) # same as above sentry_sdk.capture_message("Hello Sentry!") # You'll see this in your Sentry dashboard. raise ValueError("Oops, something went wrong!") # This will create an error event in Sentry. ``` ## 📚 Documentation For more details on advanced usage, integrations, and customization, check out the full documentation on [https://docs.sentry.io](https://docs.sentry.io/). ## 🧩 Integrations Sentry integrates with a ton of popular Python libraries and frameworks, including [FastAPI](https://docs.sentry.io/platforms/python/integrations/fastapi/), [Django](https://docs.sentry.io/platforms/python/integrations/django/), [Celery](https://docs.sentry.io/platforms/python/integrations/celery/), [OpenAI](https://docs.sentry.io/platforms/python/integrations/openai/) and many, many more. Check out the [full list of integrations](https://docs.sentry.io/platforms/python/integrations/) to get the full picture. ## 🚧 Migrating Between Versions? ### From `1.x` to `2.x` If you're using the older `1.x` version of the SDK, now's the time to upgrade to `2.x`. It includes significant upgrades and new features. Check our [migration guide](https://docs.sentry.io/platforms/python/migration/1.x-to-2.x) for assistance. ### From `raven-python` Using the legacy `raven-python` client? It's now in maintenance mode, and we recommend migrating to the new SDK for an improved experience. Get all the details in our [migration guide](https://docs.sentry.io/platforms/python/migration/raven-to-sentry-sdk/). ## 🙌 Want to Contribute? We'd love your help in improving the Sentry SDK! Whether it's fixing bugs, adding features, writing new integrations, or enhancing documentation, every contribution is valuable. For details on how to contribute, please read our [contribution guide](CONTRIBUTING.md) and explore the [open issues](https://github.com/getsentry/sentry-python/issues). ## 🛟 Need Help? If you encounter issues or need help setting up or configuring the SDK, don't hesitate to reach out to the [Sentry Community on Discord](https://discord.com/invite/Ww9hbqr). There is a ton of great people there ready to help! ## 🔗 Resources Here are all resources to help you make the most of Sentry: - [Documentation](https://docs.sentry.io/platforms/python/) - Official documentation to get started. - [Discord](https://discord.com/invite/Ww9hbqr) - Join our Discord community. - [X/Twitter](https://x.com/intent/follow?screen_name=sentry) - Follow us on X (Twitter) for updates. - [Stack Overflow](https://stackoverflow.com/questions/tagged/sentry) - Questions and answers related to Sentry. <a name="license"></a> ## 📃 License The SDK is open-source and available under the MIT license. Check out the [LICENSE](LICE

Release History

VersionChangesUrgencyDate
2.58.0Imported from PyPI (2.58.0)Low4/21/2026
2.58.0a1### New Features ✨ - (ci) Cancel in-progress PR workflows on new commit push by @joshuarli in [#5994](https://github.com/getsentry/sentry-python/pull/5994) - Send GenAI spans as V2 envelope items by @alexander-alderman-webb in [#6079](https://github.com/getsentry/sentry-python/pull/6079) ### Bug Fixes 🐛 - (google_genai) Redact binary data in inline_data and fix multi-part message extraction by @ericapisani in [#5977](https://github.com/getsentry/sentry-python/pull/5977) - (profiler) Stop nulHigh4/21/2026
2.57.0### New Features ✨ #### Langchain - Set `gen_ai.operation.name` and `gen_ai.pipeline.name` on LLM spans by @ericapisani in [#5849](https://github.com/getsentry/sentry-python/pull/5849) - Broaden AI provider detection beyond OpenAI and Anthropic by @ericapisani in [#5707](https://github.com/getsentry/sentry-python/pull/5707) - Update LLM span operation to `gen_ai.generate_text` by @ericapisani in [#5796](https://github.com/getsentry/sentry-python/pull/5796) #### Other - Add experimental asyncMedium3/31/2026
2.52.0a9This is an alpha release for internal testing.Medium3/26/2026
2.56.0### New Features ✨ - (asgi) Add option to disable suppressing chained exceptions by @alexander-alderman-webb in [#5714](https://github.com/getsentry/sentry-python/pull/5714) - (logging) Separate ignore lists for events/breadcrumbs and sentry logs by @sl0thentr0py in [#5698](https://github.com/getsentry/sentry-python/pull/5698) ### Bug Fixes 🐛 #### Anthropic - Set exception info on streaming span when applicable by @alexander-alderman-webb in [#5683](https://github.com/getsentry/sentry-pythoMedium3/24/2026
2.55.0### New Features ✨ #### Anthropic - Record finish reasons in AI monitoring spans by @ericapisani in [#5678](https://github.com/getsentry/sentry-python/pull/5678) - Emit `gen_ai.chat` spans for asynchronous `messages.stream()` by @alexander-alderman-webb in [#5572](https://github.com/getsentry/sentry-python/pull/5572) - Emit AI Client Spans for synchronous `messages.stream()` by @alexander-alderman-webb in [#5565](https://github.com/getsentry/sentry-python/pull/5565) - Set gen_ai.responsLow3/17/2026
2.52.0a8This is an alpha release for internal testing.Low3/3/2026
2.54.0### New Features ✨ - Add `set_attribute`, `remove_attribute` to global API by @sentrivana in [#5555](https://github.com/getsentry/sentry-python/pull/5555) You can now set and unset attributes on logs and metrics via top-level API. Think of it as `sentry_sdk.set_tag()` for attribute-based telemetry. Other event types (transactions, spans, errors) will be unaffected. ```python import sentry_sdk sentry_sdk.init(...) sentry_sdk.set_attribute("my.attribute", "my value") Low3/2/2026
2.52.0a7This is an alpha release for internal testing.Low2/25/2026
2.52.0a6This is an alpha release for internal testing.Low2/23/2026
2.53.0### Bug Fixes 🐛 #### Openai Agents - Patch `execute_final_output()` functions following library refactor by @alexander-alderman-webb in [#5453](https://github.com/getsentry/sentry-python/pull/5453) - Patch `execute_handoffs()` functions following library refactor by @alexander-alderman-webb in [#5452](https://github.com/getsentry/sentry-python/pull/5452) - Patch `run_single_turn_streamed()` functions following library refactor by @alexander-alderman-webb in [#5451](https://github.com/getsentrLow2/16/2026
2.52.0a5### Documentation 📚 - Document `openai-agents` control-flow by @alexander-alderman-webb in [#5447](https://github.com/getsentry/sentry-python/pull/5447) ### Internal Changes 🔧 - (ci) Improve Craft config with title stripping and artifact filtering by @BYK in [#5444](https://github.com/getsentry/sentry-python/pull/5444) - (openai-agents) Avoid calling SDK-internal functions by @alexander-alderman-webb in [#5437](https://github.com/getsentry/sentry-python/pull/5437) - Remove references to unsLow2/12/2026
2.52.0a4- [do not merge] feat: Span streaming & new span API by @sentrivana in [#5317](https://github.com/getsentry/sentry-python/pull/5317)Low2/10/2026
2.52.0a3### New Features ✨ - feat(integration): add `gen_ai.conversation.id` if available by @constantinius in [#5307](https://github.com/getsentry/sentry-python/pull/5307) ### Bug Fixes 🐛 #### Mcp - fix(mcp): Nest MCP spans under HTTP transactions by @alexander-alderman-webb in [#5292](https://github.com/getsentry/sentry-python/pull/5292) - fix(mcp): Handle all awaitable return types by @alexander-alderman-webb in [#5415](https://github.com/getsentry/sentry-python/pull/5415) #### Span Streaming Low2/9/2026
2.52.0### New Features ✨ #### Other - feat(integration): add `gen_ai.conversation.id` if available by @constantinius in [#5307](https://github.com/getsentry/sentry-python/pull/5307) ### Bug Fixes 🐛 #### Google Genai - fix(google-genai): Token reporting by @alexander-alderman-webb in [#5404](https://github.com/getsentry/sentry-python/pull/5404) - fix(google-genai): deactivate google genai when langchain is used by @shellmayr in [#5389](https://github.com/getsentry/sentry-python/pull/5389) #### MLow2/4/2026
2.52.0a2### New Features ✨ #### Span Streaming - feat(span-streaming): Add spans to telemetry pipeline, add span name and attributes (3) by @sentrivana in [#5399](https://github.com/getsentry/sentry-python/pull/5399) - feat(span-streaming): Add span batcher (2) by @sentrivana in [#5398](https://github.com/getsentry/sentry-python/pull/5398) ### Internal Changes 🔧 - test(mcp): Simulate stdio transport with memory streams by @alexander-alderman-webb in [#5329](https://github.com/getsentry/sentry-pythoLow2/2/2026
2.52.0a1### New Features ✨ #### Openai - feat(openai): Set system instruction attribute for Responses API by @alexander-alderman-webb in [#5376](https://github.com/getsentry/sentry-python/pull/5376) - feat(openai): Set system instruction attribute for Completions API by @alexander-alderman-webb in [#5358](https://github.com/getsentry/sentry-python/pull/5358) #### Other - feat(ai): Add original input length meta attribute by @alexander-alderman-webb in [#5375](https://github.com/getsentry/sentry-pythLow2/2/2026
2.51.0### New Features ✨ #### Openai - feat(openai): Set system instruction attribute for Responses API by @alexander-alderman-webb in [#5376](https://github.com/getsentry/sentry-python/pull/5376) - feat(openai): Set system instruction attribute for Completions API by @alexander-alderman-webb in [#5358](https://github.com/getsentry/sentry-python/pull/5358) - feat(integrations): OpenAI/OpenAI Agents detect and report the time to first token metric (TTFT) as `gen_ai.response.time_to_first_token` by @cLow1/28/2026
2.51.0a1### New Features ✨ #### Integrations - feat(integrations): OpenAI/OpenAI Agents detect and report the time to first token metric (TTFT) as `gen_ai.response.time_to_first_token` by @constantinius in [#5348](https://github.com/getsentry/sentry-python/pull/5348) - feat(integrations): openai-agents streaming support by @constantinius in [#5291](https://github.com/getsentry/sentry-python/pull/5291) #### Other - feat(anthropic): Set system instruction attribute by @alexander-alderman-webb in [#535Low1/28/2026
2.50.0### New Features ✨ #### Ai - feat(ai): add cache writes for gen_ai by @shellmayr in [#5319](https://github.com/getsentry/sentry-python/pull/5319) - feat(ai): add parse_data_uri function to parse a data URI by @constantinius in [#5311](https://github.com/getsentry/sentry-python/pull/5311) #### Other - feat(asyncio): Add on-demand way to enable AsyncioIntegration by @sentrivana in [#5288](https://github.com/getsentry/sentry-python/pull/5288) You can now enable the `AsyncioIntegration` on deLow1/20/2026
2.49.0### New Features ✨ - feat(api): Add `Scope.set_attribute` by @sentrivana in [#5256](https://github.com/getsentry/sentry-python/pull/5256) ### Bug Fixes 🐛 - fix(grpc): Gate third-party imports by @alexander-alderman-webb in [#5246](https://github.com/getsentry/sentry-python/pull/5246) - fix(opentelemetry): Gate third-party imports by @alexander-alderman-webb in [#5247](https://github.com/getsentry/sentry-python/pull/5247) - fix(ray): Keep variadic kwargs last in signatures by @alexander-alderLow1/8/2026
2.48.0Middleware spans are now disabled by default in Django, Starlette and FastAPI integrations. Set the `middleware_spans` integration-level option to capture individual spans per middleware layer. To record Django middleware spans, for example, configure as follows ```python import sentry_sdk from sentry_sdk.integrations.django import DjangoIntegration sentry_sdk.init( dsn="<your-dsn>", integrations=[ DjangoIntegration(middleware_spans=True), ], ) ``` ### New Low12/16/2025
2.47.0### Bug Fixes 🐛 - fix: Make PropagationContext.from_incoming_data always return a PropagationContext by @sl0thentr0py in [#5186](https://github.com/getsentry/sentry-python/pull/5186) - fix(integrations): anthropic set `GEN_AI_OPERATION_NAME` by @constantinius in [#5185](https://github.com/getsentry/sentry-python/pull/5185) - fix(spotlight): align behavior with SDK spec by @BYK in [#5169](https://github.com/getsentry/sentry-python/pull/5169) - fix(integrations): do not exit early when config iLow12/3/2025
2.46.0### Various fixes & improvements - Preserve metadata on wrapped coroutines (#5105) by @alexander-alderman-webb - Make imports defensive to avoid `ModuleNotFoundError` in Pydantic AI integration (#5135) by @alexander-alderman-webb - Fix OpenAI agents integration mistakenly enabling itself (#5132) by @sentrivana - Add instrumentation to embedding functions for various backends (#5120) by @constantinius - Improve embeddings support for OpenAI (#5121) by @constantinius - Enhance input handling for Low11/24/2025
2.45.0### Various fixes & improvements - OTLPIntegration (#4877) by @sl0thentr0py Enable the new OTLP integration with the code snippet below, and your OpenTelemetry instrumentation will be automatically sent to Sentry's OTLP ingestion endpoint. ```python import sentry_sdk from sentry_sdk.integrations.otlp import OTLPIntegration sentry_sdk.init( dsn="<your-dsn>", # Add data like inputs and responses; # see https://docs.sentry.io/platforms/python/data-managemLow11/18/2025
2.44.0### Various fixes & improvements - fix(openai): Check response text is present to avoid AttributeError (#5081) by @alexander-alderman-webb - fix(pydantic-ai): Do not fail on new `ToolManager._call_tool()` parameters (#5084) by @alexander-alderman-webb - tests(huggingface): Avoid `None` version (#5083) by @alexander-alderman-webb - ci: Pin `coverage` version for 3.14 Django tests (#5088) by @alexander-alderman-webb - chore: X handle update (#5078) by @cleptric - fix(openai-agents): add input mesLow11/11/2025
2.43.0### Various fixes & improvements - Pydantic AI integration (#4906) by @constantinius Enable the new Pydantic AI integration with the code snippet below, and you can use the Sentry AI dashboards to observe your AI calls: ```python import sentry_sdk from sentry_sdk.integrations.pydantic_ai import PydanticAIIntegration sentry_sdk.init( dsn="<your-dsn>", # Set traces_sample_rate to 1.0 to capture 100% # of transactions for tracing. traces_sample_raLow10/29/2025
3.0.0a7**We are discontinuing development on 3.0**. Please see https://github.com/getsentry/sentry-python/discussions/4955 for more information. 3.0.0a7 is a maintenance release that adds a warning that there won't be a stable 3.0 release. If you are on a 3.0 alpha release, please switch back to 2.x to get the newest features and fixes.Low10/20/2025
2.42.1### Various fixes & improvements - fix(gcp): Inject scopes in TimeoutThread exception with GCP (#4959) by @alexander-alderman-webb - fix(aws): Inject scopes in TimeoutThread exception with AWS lambda (#4914) by @alexander-alderman-webb - fix(ai): add message trunction to anthropic (#4953) by @shellmayr - fix(ai): add message truncation to langgraph (#4954) by @shellmayr - fix: Default breadcrumbs value for events without breadcrumbs (#4952) by @alexander-alderman-webb - fix(ai): add message truLow10/20/2025
2.42.0### Various fixes & improvements - feat: Add source information for slow outgoing HTTP requests (#4902) by @alexander-alderman-webb - tests: Update tox (#4913) by @sentrivana - fix(Ray): Retain the original function name when patching Ray tasks (#4858) by @svartalf - feat(ai): Add `python-genai` integration (#4891) by @vgrozdanic Enable the new Google GenAI integration with the code snippet below, and you can use the Sentry AI dashboards to observe your AI calls: ```python import sentry_Low10/15/2025
2.41.0### Various fixes & improvements - feat: Add `concurrent.futures` patch to threading integration (#4770) by @alexander-alderman-webb The SDK now makes sure to automatically preserve span relationships when using `ThreadPoolExecutor`. - chore: Remove old metrics code (#4899) by @sentrivana Removed all code related to the deprecated experimental metrics feature (`sentry_sdk.metrics`). - ref: Remove "experimental" from log function name (#4901) by @sentrivana - fix(ai): Add mapping for genLow10/9/2025
2.40.0### Various fixes & improvements - Add LiteLLM integration (#4864) by @constantinius Once you've enabled the [new LiteLLM integration](https://docs.sentry.io/platforms/python/integrations/litellm/), you can use the Sentry AI Agents Monitoring, a Sentry dashboard that helps you understand what's going on with your AI requests: ```python import sentry_sdk from sentry_sdk.integrations.litellm import LiteLLMIntegration sentry_sdk.init( dsn="<your-dsn>", # Set traces_sample_Low10/6/2025
2.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) Low9/25/2025
2.38.0### Various fixes & improvements - Feat(huggingface_hub): Update HuggingFace Hub integration (#4746) by @antonpirker - Feat(Anthropic): Add proper tool calling data to Anthropic integration (#4769) by @antonpirker - Feat(openai-agents): Add input and output to `invoke_agent` span. (#4785) by @antonpirker - Feat(AI): Create transaction in AI agents framworks, when no transaction is running. (#4758) by @constantinius - Feat(GraphQL): Support gql 4.0-style execute (#4779) by @sentrivana - Fix(logsLow9/15/2025
2.37.1### Various fixes & improvements - Fix(langchain): Make Langchain integration work with just langchain-core (#4783) by @shellmayr - Tests: Move quart under toxgen (#4775) by @sentrivana - Tests: Update tox.ini (#4777) by @sentrivana - Tests: Move chalice under toxgen (#4766) by @sentrivanaLow9/9/2025
2.37.0- **New Integration (BETA):** Add support for `langgraph` (#4727) by @shellmayr We can now instrument AI agents that are created with [LangGraph](https://www.langchain.com/langgraph) out of the box. For more information see the [LangGraph integrations documentation](https://docs.sentry.io/platforms/python/integrations/langgraph/). - AI Agents: Improve rendering of input and output messages in AI agents integrations. (#4750) by @shellmayr - AI Agents: Format span attributes in AI integratiLow9/5/2025
2.36.0### Various fixes & improvements - **New integration:** Unraisable exceptions (#4733) by @alexander-alderman-webb Add the unraisable exception integration to your sentry_sdk.init call: ```python import sentry_sdk from sentry_sdk.integrations.unraisablehook import UnraisablehookIntegration sentry_sdk.init( dsn="...", integrations=[ UnraisablehookIntegration(), ] ) ``` - meta: Update instructions on release process (#4755) by @sentrivana - tests: Move arq under toxgen (#4Low9/4/2025
3.0.0a6We're excited to announce that version 3.0 of the Sentry Python SDK is now available. This release is the result of a long-term effort to use OpenTelemetry under the hood for tracing. This switch opens the door for us to leverage the full power of OpenTelemetry, so stay tuned for more integrations and features in future releases. Looking to upgrade from Sentry SDK 2.x to 3.x? See the [full list of changes](MIGRATION_GUIDE.md) for a comprehensive overview of what's changed. Looking for a more diLow9/1/2025
2.35.2### Various fixes & improvements - fix(logs): Do not attach template if there are no parameters (#4728) by @sentrivanaLow9/1/2025
2.35.1### Various fixes & improvements - OpenAI Agents: Isolate agent run (#4720) by @sentrivana - Tracing: Do not attach stacktrace to transaction (#4713) by @ZylphrexLow8/26/2025
2.35.0### Various fixes & improvements - [Langchain Integration](https://docs.sentry.io/platforms/python/integrations/langchain/) now supports the Sentry [AI dashboard](https://docs.sentry.io/product/insights/ai/agents/dashboard/). (#4678) by @shellmayr - [Anthropic Integration](https://docs.sentry.io/platforms/python/integrations/anthropic/) now supports the Sentry [AI dashboard](https://docs.sentry.io/product/insights/ai/agents/dashboard/). (#4674) by @constantinius - AI Agents templates for `@tracLow8/14/2025
3.0.0a5### Various fixes & improvements - Add empty tags by default to transaction (#4683) by @sl0thentr0py - Force creation of a new trace in continue_trace with empty headers (#4682) by @sl0thentr0py - mypy (#3152) by @sl0thentr0py - Add `update_current_span` to SDK 3 (#4679) by @sl0thentr0py - feat(tracing): Add convenience function `update_current_span`. (#4673) by @antonpirker - Update `gen_ai.*` and `ai.*` attributes (#4665) by @antonpirker - Add `update_data` to `Span`. (#4666) by @antonpirker Low8/7/2025
3.0.0a4### Various fixes & improvements - Migrate more type comments to annotations (#4651) by @sl0thentr0py - ref: Drop experimental logs options in 3.0 (#4653) by @sl0thentr0py - Polish migration guide (#4650) by @sl0thentr0py - Add `enable_logs`, `before_send_log` as top-level options (#4644) by @sentrivana - Add missing return type annotation (#3152) by @sl0thentr0py - Fix mypy (#4649) by @sentrivana - Better checking for empty tools list (#4647) by @antonpirker - ref: Remove `MAX_EVENT_BYTES` (#4Low7/31/2025
2.34.1### Various fixes & improvements - Fix: Make sure Span data in AI instrumentations is always a primitive data type (#4643) by @antonpirker - Fix: Typo in CHANGELOG.md (#4640) by @jgillardLow7/30/2025
2.34.0### Various fixes & improvements - Considerably raise `DEFAULT_MAX_VALUE_LENGTH` (#4632) by @sentrivana We have increased the string trimming limit considerably, allowing you to see more data without it being truncated. Note that this might, in rare cases, result in issue regrouping, for example if you're capturing message events with very long messages (longer than the default 1024 characters/bytes). If you want to adjust the limit, you can set a [`max_value_length`](htLow7/29/2025
2.33.2### Various fixes & improvements - ref(spotlight): Do not import `sentry_sdk.spotlight` unless enabled (#4607) by @sentrivana - ref(gnu-integration): update clickhouse stacktrace parsing (#4598) by @MeredithAnyaLow7/22/2025
3.0.0a3We're excited to announce that version 3.0 of the Sentry Python SDK is now available. This release is the result of a long-term effort to use OpenTelemetry under the hood for tracing. This switch opens the door for us to leverage the full power of OpenTelemetry, so stay tuned for more integrations and features in future releases. Looking to upgrade from Sentry SDK 2.x to 3.x? See the [full list of changes](MIGRATION_GUIDE.md) for a comprehensive overview of what's changed. Looking for aLow7/22/2025
2.33.1### Various fixes & improvements - fix(integrations): allow explicit op parameter in `ai_track` (#4597) by @mshavliuk - fix: Fix `abs_path` bug in `serialize_frame` (#4599) by @szokeasaurusrex - Remove pyrsistent from test dependencies (#4588) by @musicinmybrain - Remove explicit `__del__`'s in threaded classes (#4590) by @sl0thentr0py - Remove forked from test_transport, separate gevent tests and generalize capturing_server to be module level (#4577) by @sl0thentr0py - Improve token usage recoLow7/21/2025
2.33.0### Various fixes & improvements - feat(langchain): Support `BaseCallbackManager` (#4486) by @szokeasaurusrex - Use `span.data` instead of `measurements` for token usage (#4567) by @antonpirker - Fix custom model name (#4569) by @antonpirker - fix: shut down "session flusher" more promptly (#4561) by @bukzor - chore: Remove Lambda urllib3 pin on Python 3.10+ (#4549) by @sentrivanaLow7/15/2025
2.32.0### Various fixes & improvements - feat(sessions): Add top-level start- and end session methods (#4474) by @szokeasaurusrex - feat(openai-agents): Set tool span to failed if an error is raised in the tool (#4527) by @antonpirker - fix(integrations/ray): Correctly pass keyword arguments to ray.remote function (#4430) by @svartalf - fix(langchain): Make `span_map` an instance variable (#4476) by @szokeasaurusrex - fix(langchain): Ensure no duplicate `SentryLangchainCallback` (#4485) by @szokeasauLow6/27/2025

Dependencies & License Audit

Loading dependencies...

Similar Packages

azure-storage-blobMicrosoft Azure Blob Storage Client Library for Pythonazure-template_0.1.0b6187637
azure-storage-file-shareMicrosoft Azure Azure File Share Storage Client Library for Pythonazure-template_0.1.0b6187637
mirakuruProcess executor (not only) for tests.3.0.2
opentelemetry-instrumentation-qdrantOpenTelemetry Qdrant instrumentation0.60.0
django-modelclusterDjango extension to allow working with 'clusters' of models as a single unit, independently of the database6.4.1