chore(deps): update dependency sentry-sdk to v2.43.0 #168
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
This PR contains the following updates:
==2.33.2->==2.43.0Release Notes
getsentry/sentry-python (sentry-sdk)
v2.43.0Compare Source
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:
MCP Python SDK (#4964) by @constantinius
Enable the new Python MCP integration with the code snippet below:
fix(google-genai): Set agent name (#5038) by @constantinius
fix(integrations): hooking into error tracing function to find out if an execute tool span should be set to error (#4986) by @constantinius
fix(django): Improve logic for classifying cache hits and misses (#5029) by @alexander-alderman-webb
chore(metrics): Rename _metrics to metrics (#5035) by @alexander-alderman-webb
fix(tracemetrics): Bump metric buffer size to 1k (#5031) by @k-fish
fix startlette deprecation warning (#5034) by @DeoLeung
fix(strawberry): Remove autodetection, always use sync extension (#4984) by @sentrivana
build(deps): bump actions/upload-artifact from 4 to 5 (#5032) by @dependabot
fix(ai): truncate messages for google genai (#4992) by @shellmayr
fix(ai): add message truncation to litellm (#4973) by @shellmayr
feat(langchain): Support v1 (#4874) by @sentrivana
ci: Run
commontest suite on Python 3.14t (#4969) by @alexander-alderman-webbfeat: Officially support 3.14 & run integration tests on 3.14 (#4974) by @sentrivana
Make logger template format safer to missing kwargs (#4981) by @sl0thentr0py
tests(huggingface): Support 1.0.0rc7 (#4979) by @alexander-alderman-webb
feat: Enable HTTP request code origin by default (#4967) by @alexander-alderman-webb
ci: Run
commontest suite on Python 3.14 (#4896) by @sentrivanav2.42.1Compare Source
Various fixes & improvements
_get_db_span_description(#4924) by @misrasaurabh1v2.42.0Compare Source
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-genaiintegration (#4891) by @vgrozdanicEnable the new Google GenAI integration with the code snippet below, and you can use the Sentry AI dashboards to observe your AI calls:
Set traces_sample_rate to 1.0 to capture 100%
of transactions for tracing.
Add data like inputs and responses;
see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info
)
v2.41.0Compare Source
Various fixes & improvements
feat: Add
concurrent.futurespatch to threading integration (#4770) by @alexander-alderman-webbThe 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 gen_ai message roles (#4884) by @shellmayr
feat(metrics): Add trace metrics behind an experiments flag (#4898) by @k-fish
v2.40.0Compare Source
Various fixes & improvements
Add LiteLLM integration (#4864) by @constantinius
Once you've enabled the new LiteLLM integration, you can use the Sentry AI Agents Monitoring, a Sentry dashboard that helps you understand what's going on with your AI requests:
Set traces_sample_rate to 1.0 to capture 100%
of transactions for tracing.
Add data like inputs and responses;
see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info
)
_set_agent_datacall toai_client_spanfunction (#4876) by @constantiniusCONTRIBUTING.md(#4870) by @sentrivanav2.39.0Compare Source
Various fixes & improvements
test_sparkspeed (#4822) by @mgalignianaNote: This is my last release. So long, and thanks for all the fish! by @antonpirker
v2.38.0Compare Source
Various fixes & improvements
invoke_agentspan. (#4785) by @antonpirkerlog_itemas rate limit category (#4798) by @sentrivanaDedupeIntegrationis dropping an error. (#4788) by @antonpirkerprofiler(#4535) by @zen-xuv2.37.1Compare Source
Various fixes & improvements
v2.37.0Compare Source
New Integration (BETA): Add support for
langgraph(#4727) by @shellmayrWe can now instrument AI agents that are created with LangGraph out of the box.
For more information see the LangGraph integrations documentation.
AI Agents: Improve rendering of input and output messages in AI agents integrations. (#4750) by @shellmayr
AI Agents: Format span attributes in AI integrations (#4762) by @antonpirker
CI: Fix celery (#4765) by @sentrivana
Tests: Move asyncpg under toxgen (#4757) by @sentrivana
Tests: Move beam under toxgen (#4759) by @sentrivana
Tests: Move boto3 tests under toxgen (#4761) by @sentrivana
Tests: Remove openai pin and update tox (#4748) by @sentrivana
v2.36.0Compare Source
Various fixes & improvements
New integration: Unraisable exceptions (#4733) by @alexander-alderman-webb
Add the unraisable exception integration to your sentry_sdk.init call:
_context_manager_state(#4698) by @sentrivana__exit__incapture_internal_exceptions(#4719) by @sentrivanaopenai_agentsin CI (#4742) by @sentrivanav2.35.2Compare Source
Various fixes & improvements
v2.35.1Compare Source
Various fixes & improvements
v2.35.0Compare Source
Various fixes & improvements
@tracedecorator (#4676) by @antonpirkerenable_logs,before_send_logas top-levelsentry_sdk.init()options (#4644) by @sentrivana@tracedecorator. Allows to setspan.op,span.name, andspan.attributes(#4648) by @antonpirkersentry_sdk.update_current_span. (#4673) by @antonpirkerSpan.update_data()to update multiplespan.dataitems at once. (#4666) by @antonpirkersend_dataparameters (#4667) by @szokeasaurusrexgen_ai.*andai.*attributes (#4665) by @antonpirkerv2.34.1Compare Source
Various fixes & improvements
v2.34.0Compare Source
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_lengthin your
sentry_sdk.init().OpenAIintegration update (#4612) by @antonpirkerThe
OpenAIIntegrationnow 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 @sl0thentr0pyFix(Celery): Latency should be in milliseconds, not seconds (#4637) by @sentrivana
Fix(Django): Treat
django.template.context.BasicContextas sequence in serializer (#4621) by @sl0thentr0pyFix(Huggingface): Fix
huggingface_hubCI tests. (#4619) by @antonpirkerFix: 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
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.