update_current_span to SDK 3 (#4679) by @sl0thentr0pyupdate_current_span. (#4673) by @antonpirkergen_ai.* and ai.* attributes (#4665) by @antonpirkerupdate_data to Span. (#4666) by @antonpirkerenable_logs, before_send_log as top-level options (#4644) by @sentrivanaMAX_EVENT_BYTES (#4630) by @sl0thentr0pyDEFAULT_MAX_VALUE_LENGTH (#4632) by @sentrivanaPlus 16 more
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
in your sentry_sdk.init().
OpenAI integration update (#4612) by @antonpirker
The OpenAIIntegration now supports OpenAI Responses API.
The data captured will also show up in the new AI Agents Dashboard.
This works out of the box, nothing to do on your side.
Expose set_transaction_name (#4634) by @sl0thentr0py
Fix(Celery): Latency should be in milliseconds, not seconds (#4637) by @sentrivana
Fix(Django): Treat django.template.context.BasicContext as sequence in serializer (#4621) by @sl0thentr0py
Fix(Huggingface): Fix huggingface_hub CI tests. (#4619) by @antonpirker
Fix: Ignore deliberate thread exception warnings (#4611) by @sl0thentr0py
Fix: Socket tests to not use example.com (#4627) by @sl0thentr0py
Fix: Threading run patch (#4610) by @sl0thentr0py
Tests: Simplify celery double patching test (#4626) by @sl0thentr0py
Tests: Remove remote example.com calls (#4622) by @sl0thentr0py
Tests: tox.ini update (#4635) by @sentrivana
Tests: Update tox (#4609) by @sentrivana
sentry_sdk.spotlight unless enabled (#4607) by @sentrivanaWe'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 for a comprehensive overview of what's changed. Looking for a more digestible summary? See the migration guide in the docs with the most common migration patterns.
⚠️ This is a pre-release. If you feel like taking it for a spin, we'd be grateful for your feedback. How was the migration? Is everything working as expected? Is nothing working as expected? Something in between? Please let us know on GitHub or on Discord.
ai_track (#4597) by @mshavliukabs_path bug in serialize_frame (#4599) by @szokeasaurusrex__del__'s in threaded classes (#4590) by @sl0thentr0pyBaseCallbackManager (#4486) by @szokeasaurusrexspan.data instead of measurements for token usage (#4567) by @antonpirkerspan_map an instance variable (#4476) by @szokeasaurusrexSentryLangchainCallback (#4485) by @szokeasaurusrexfailed_request_status_codes to exceptions raised in middleware (#4074) by @vrslevNew Integration (BETA): Add support for openai-agents (#4437) by @antonpirker
We can now instrument AI agents that are created with the OpenAI Agents SDK out of the box.
import sentry_sdk
from sentry_sdk.integrations.openai_agents import OpenAIAgentsIntegration
# Add the OpenAIAgentsIntegration to your sentry_sdk.init call:
sentry_sdk.init(
dsn="...",
integrations=[
OpenAIAgentsIntegration(),
]
)
For more information see the OpenAI Agents integrations documentation.
dict arguments (#4478) by @AbhiPrasad_wrap_configure (#4479) by @szokeasaurusrextracerite (#4494) by @sentrivanaLookupErrors gracefully (#4481) by @sentrivanaWe'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 for a comprehensive overview of what's changed. Looking for a more digestible summary? See the migration guide in the docs with the most common migration patterns.
⚠️ This is a pre-release. If you feel like taking it for a spin, we'd be grateful for your feedback. How was the migration? Is everything working as expected? Is nothing working as expected? Something in between? Please let us know on GitHub or on Discord.
New beta feature: Sentry logs for Loguru (#4445) by @sentrivana
We can now capture Loguru logs and send them to Sentry.
import sentry_sdk
from sentry_sdk.integrations.loguru import LoguruIntegration
# Setup Sentry SDK to send Loguru log messages with a level of "error" or higher to Sentry
sentry_sdk.init(
_experiments={
"enable_logs": True,
},
integrations=[
LoguruIntegration(sentry_logs_level=logging.ERROR),
]
)
send_default_pii (#4453) by @AbhiPrasadrecord.name for more robust matching (#4411) by @romaingd-spi_capture_experimental_log scope parameter (#4424) by @szokeasaurusrexcommand_queue instead of command_stack if available (#4404) by @sentrivanaSENTRY_DEBUG values properly (#4400) by @szokeasaurusrexseverity_text: warn instead of warning (#4396) by @lcian__init__ to setup_once (#4399) by @sentrivanakeep_alive via environment variable (#4366) by @szokeasaurusrexsentry.message.parameters singular as per spec (#4387) by @AbhiPrasadextra from logger as attributes (#4374) by @AbhiPrasadset_measurement() API. (#3934) by @antonpirkerSPANDATA consistent (#4373) by @antonpirkerWe'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 for a comprehensive overview of what's new. Looking for a more digestible summary? See the migration guide in the docs with the most common migration patterns.
⚠️ This is a pre-release. If you feel like taking it for a spin, we'd be grateful for your feedback. How was the migration? Is everything working as expected? Is nothing working as expected? Something in between? Please let us know on GitHub or on Discord.
same_process_as_parent (#4244)" (#4290) by @sentrivanasame_process_as_parent (#4244) by @sentrivana_meta information for truncation of breadcrumbs (#4007) by @shellmayrdebug level. (#4224) by @antonpirker