Releases: getsentry/sentry-python
2.35.0
Various fixes & improvements
- Langchain Integration now supports the Sentry AI dashboard. (#4678) by @shellmayr
- Anthropic Integration now supports the Sentry AI dashboard. (#4674) by @constantinius
- AI Agents templates for
@trace
decorator (#4676) by @antonpirker - Sentry Logs: Add
enable_logs
,before_send_log
as top-levelsentry_sdk.init()
options (#4644) by @sentrivana - Tracing: Improve
@trace
decorator. Allows to setspan.op
,span.name
, andspan.attributes
(#4648) by @antonpirker - Tracing: Add convenience function
sentry_sdk.update_current_span
. (#4673) by @antonpirker - Tracing: Add
Span.update_data()
to update multiplespan.data
items at once. (#4666) by @antonpirker - GNU-integration: make path optional (#4688) by @MeredithAnya
- Clickhouse: Don't eat the generator data (#4669) by @szokeasaurusrex
- Clickhouse: List
send_data
parameters (#4667) by @szokeasaurusrex - Update
gen_ai.*
andai.*
attributes (#4665) by @antonpirker - Better checking for empty tools list (#4647) by @antonpirker
- Remove performance paper cuts (#4675) by @sentrivana
- Help for debugging Cron problems (#4686) by @antonpirker
- Fix Redis CI (#4691) by @sentrivana
- Fix plugins key codecov (#4655) by @sl0thentr0py
- Fix Mypy (#4649) by @sentrivana
- Update tox.ini (#4689) by @sentrivana
- build(deps): bump actions/create-github-app-token from 2.0.6 to 2.1.0 (#4684) by @dependabot
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.*
andai.*
attributes (#4665) by @antonpirker - Add
update_data
toSpan
. (#4666) by @antonpirker - Fix plugins key codecov (#4655) by @sl0thentr0py
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
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 @jgillard
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