Skip to content

Conversation

@shellmayr
Copy link
Member

@shellmayr shellmayr commented Oct 31, 2025

  • Add a map that contains integrations that should be deactivated when others are active to prevent duplicate spans, etc.
  • Allow positive and negative overrides by users
  • Add the existing langchain deactivations for anthropic and openai
  • Simplifies setup for users, because they don't have to add the lower level integrations to the disabled integrations array in the init

Closes TET-1304

@linear
Copy link

linear bot commented Oct 31, 2025

@codecov
Copy link

codecov bot commented Oct 31, 2025

Codecov Report

❌ Patch coverage is 91.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 83.95%. Comparing base (7264a9f) to head (b34d342).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
sentry_sdk/integrations/__init__.py 91.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5052      +/-   ##
==========================================
+ Coverage   83.94%   83.95%   +0.01%     
==========================================
  Files         179      179              
  Lines       17904    17916      +12     
  Branches     3179     3187       +8     
==========================================
+ Hits        15030    15042      +12     
  Misses       1902     1902              
  Partials      972      972              
Files with missing lines Coverage Δ
sentry_sdk/integrations/__init__.py 88.04% <91.66%> (+0.54%) ⬆️

... and 1 file with indirect coverage changes

@shellmayr shellmayr marked this pull request as ready for review October 31, 2025 13:30
@shellmayr shellmayr requested a review from a team as a code owner October 31, 2025 13:30
@alexander-alderman-webb
Copy link
Contributor

Looks good overall, let's get the tests running in CI and then we're good to go.

Adds a new tox environment to run the tests for auto-deactivating integrations that result in duplicate spans.

The tests in the new environment are run as part of the `Test Misc` workflow.
@alexander-alderman-webb
Copy link
Contributor

I'll resolve the conflicts as well.

cursor[bot]

This comment was marked as outdated.

@shellmayr shellmayr merged commit e910302 into master Nov 4, 2025
134 of 136 checks passed
@shellmayr shellmayr deleted the shellmayr/feat/auto-deactivate-lower-level-integartions branch November 4, 2025 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants