Releases: getsentry/sentry-python
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
(#4630) by @sl0thentr0py - update changelog (9276f2a) by @antonpirker
- release: 2.34.1 (a71ef66) by @getsentry-bot
- typing (#3152) by @sl0thentr0py
- Update tests (#3152) by @sl0thentr0py
- Span data is always be a primitive data type (#4643) by @antonpirker
- Fix typo in CHANGELOG.md (#4640) by @jgillard
- updated test matrix (#3152) by @sl0thentr0py
- Add new_trace api to force a new trace (#4642) by @sl0thentr0py
- Revert "Add new_trace api to force a new trace" (#3152) by @sl0thentr0py
- Add new_trace api to force a new trace (#3152) by @sl0thentr0py
- Update changelog (72766a7) by @antonpirker
- Update CHANGELOG.md (e1848d4) by @sentrivana
- release: 2.34.0 (e84f6f3) by @getsentry-bot
- Considerably raise
DEFAULT_MAX_VALUE_LENGTH
(#4632) by @sentrivana - fix(celery): Latency should be in milliseconds, not seconds (#4637) by @sentrivana
- OpenAI integration update (#4612) by @antonpirker
Plus 16 more
2.34.1
2.34.0
Various fixes & improvements
-
Considerably raise
DEFAULT_MAX_VALUE_LENGTH
(#4632) by @sentrivanaWe 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 yoursentry_sdk.init()
. -
OpenAI
integration update (#4612) by @antonpirkerThe
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
3.0.0a3
We'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.
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.
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 @MeredithAnya
2.33.1
Various fixes & improvements
- fix(integrations): allow explicit op parameter in
ai_track
(#4597) by @mshavliuk - fix: Fix
abs_path
bug inserialize_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 recording (#4566) by @antonpirker
2.33.0
Various fixes & improvements
- feat(langchain): Support
BaseCallbackManager
(#4486) by @szokeasaurusrex - Use
span.data
instead ofmeasurements
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 @sentrivana
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 @szokeasaurusrex - fix(Litestar): Apply
failed_request_status_codes
to exceptions raised in middleware (#4074) by @vrslev
2.31.0
Various fixes & improvements
-
New Integration (BETA): Add support for
openai-agents
(#4437) by @antonpirkerWe 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.
- Logs: Add support for
dict
arguments (#4478) by @AbhiPrasad - Add Cursor generated rules (#4493) by @sl0thentr0py
- Greatly simplify Langchain integrations
_wrap_configure
(#4479) by @szokeasaurusrex - Fix(ci): Remove tracerite pin (almost) (#4504) by @sentrivana
- Fix(profiling): Ensure profiler thread exits when needed (#4497) by @Zylphrex
- Fix(ci): Do not install newest
tracerite
(#4494) by @sentrivana - Fix(scope): Handle token reset
LookupError
s gracefully (#4481) by @sentrivana - Tests: Tox update (#4509) by @sentrivana
- Tests: Upper bound on fakeredis on old Python versions (#4482) by @sentrivana
- Tests: Regenerate tox (#4457) by @sentrivana
3.0.0a2
We'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.
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.