add sentry-sdk v2 support while keeping v1 compatibility#2
Merged
Conversation
sentry-sdk v2 removed Hub-based APIs (Hub.current.get_integration, add_global_event_processor) and changed setup_once from classmethod to staticmethod, breaking the integration for anyone upgrading. Runtime version detection picks the right API for each SDK version. setup_once and processor are now static methods (accepted by both), and the public processor alias is preserved to avoid breaking existing references. CI matrix now tests both SDK versions. Signed-off-by: Avelino <31996+avelino@users.noreply.github.com>
Poetry 2.x no longer installs on Python 3.8/3.9, breaking CI. Both versions are already EOL anyway. Signed-off-by: Avelino <31996+avelino@users.noreply.github.com>
redis-py 7.x (resolved by Poetry on CI) broke redislite: the new _execute_command method accesses conn.port, which doesn't exist on UnixDomainSocketConnection. redislite embeds a real Redis server and connects via Unix sockets, making it inherently fragile against redis-py internal changes. Signed-off-by: Avelino <31996+avelino@users.noreply.github.com>
Signed-off-by: Avelino <31996+avelino@users.noreply.github.com>
iurisilvio
approved these changes
Feb 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
sentry-sdk v2 removed Hub-based APIs (Hub.current.get_integration, add_global_event_processor) and changed setup_once from classmethod to staticmethod, breaking the integration for anyone upgrading.
Runtime version detection picks the right API for each SDK version. setup_once and processor are now static methods (accepted by both), and the public processor alias is preserved to avoid breaking existing references. CI matrix now tests both SDK versions.