Releases: getsentry/sentry-python
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.
2.30.0
Various fixes & improvements
-
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),
]
)
- fix(logs): Don't gate user behind
send_default_pii
(#4453) by @AbhiPrasad - fix(logging): Strip log
record.name
for more robust matching (#4411) by @romaingd-spi - Migrate to modern threading interface (#4452) by @emmanuel-ferdman
- ref: Remove
_capture_experimental_log
scope
parameter (#4424) by @szokeasaurusrex - feat(logs): Add user attributes to logs (#4423) by @szokeasaurusrex
- fix: fix ARQ integration error (#4427) (#4428) by @ninoseki
- fix(grpc): Fix AttributeError when instrumenting with OTel (#4405) by @sentrivana
- fix(redis): Use
command_queue
instead ofcommand_stack
if available (#4404) by @sentrivana - fix: Handle invalid
SENTRY_DEBUG
values properly (#4400) by @szokeasaurusrex - Increase test coverage (#4393) by @mgaligniana
- tests(logs): avoid failures when running with integrations enabled (#4388) by @rominf
- Fix CI, adapt to new redis-py release (#4431) by @sentrivana
- tests: Regenerate toxgen (#4403) by @sentrivana
- tests: Regenerate tox.ini & fix CI (#4435) by @sentrivana
- build(deps): bump codecov/codecov-action from 5.4.2 to 5.4.3 (#4397) by @dependabot
2.29.1
2.29.0
Various fixes & improvements
- fix(loguru): Move integration setup from
__init__
tosetup_once
(#4399) by @sentrivana - feat: Allow configuring
keep_alive
via environment variable (#4366) by @szokeasaurusrex - fix(celery): Do not send extra check-in (#4395) by @sentrivana
- fix(typing): Add before_send_log to Experiments (#4383) by @sentrivana
- ci: Fix pyspark test suite (#4382) by @sentrivana
- fix(logs): Make
sentry.message.parameters
singular as per spec (#4387) by @AbhiPrasad - apidocs: Remove snowballstemmer pin (#4379) by @sentrivana