getsentry / sentry-python

The official Python SDK for Sentry.io
https://sentry.io/for/python/
MIT License
1.85k stars 478 forks source link

Make disabling individual integrations easier #3166

Closed sentrivana closed 1 month ago

sentrivana commented 2 months ago

Problem Statement

With the release of 2.0, most of our integrations are now auto enabling. Conversely, turning a specific integration off is now much more tedious (have to set auto_enabling_integrations=True and enumerate all integrations that you want to keep).

Solution Brainstorm

There should be an easier way to turn off an extension without having to then turn all other integrations on manually.

We should add an optional config param that is essentially an ignore list of integrations to explicitly exclude. (See if any other SDKs have this for naming the option.)

rusmux commented 2 months ago

This would be very helpful

sentrivana commented 1 month ago

This is scheduled for release tomorrow in 2.11.0.