Open
Conversation
Port of the sentry module from 18.0 to 19.0. Changes: - Bump version to 19.0.1.0.0 - Add development_status: Beta - Remove sentry_sdk version upper bound (>=2.0.0) - Fix ThreadingIntegration: remove deprecated propagate_hub=True parameter removed in sentry-sdk 2.0 with the Hub/Scope unification - Replace push_scope() with new_scope() (sentry-sdk 2.0+ API) - Access DEFAULT_OPTIONS defensively with .get() and fallback values to ensure forward compatibility with future sentry-sdk releases - Remove deprecated transport option - Update README.rst for 19.0 (oca-gen-addon-readme) Made-with: Cursor
- Apply ruff formatting: collapse short SentryOption lines - Add sentry_sdk>=2.0.0 to requirements.txt (oca-gen-external-dependencies) Made-with: Cursor
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.
Summary
Port of the
sentrymodule from18.0to19.0.This module allows painless Sentry integration with Odoo by reporting errors to the Sentry error tracking platform.
Changes from 18.0
Breaking changes (sentry-sdk 2.0+)
ThreadingIntegration: Removed deprecatedpropagate_hub=Trueparameter, which was removed in sentry-sdk 2.0 as part of the Hub/Scope unification. The new unified Scope model handles thread propagation automatically.new_scope(): Replaced the deprecatedpush_scope()context manager withnew_scope(), which is the correct API in sentry-sdk 2.0+.Improvements
DEFAULT_OPTIONSaccess: Made defensive using.get(key, fallback)instead of direct dict access (DEFAULT_OPTIONS[key]), ensuring forward compatibility when sentry-sdk adds or renames options in future releases.sentry_sdkversion constraint: Removed upper bound (<=2.22.0), keeping only>=2.0.0to allow seamless updates.transportoption: Removed fromget_sentry_options()since it was already deprecated in 18.0 and is no longer relevant in sentry-sdk 2.0+ (HttpTransport is the default).development_status: AddedBetaas required by OCA manifest conventions.oca-gen-addon-readmetargeting the19.0branch.Test plan
sentry-sdk>=2.0.0sentrytoserver_wide_modulesinodoo.confsentry_enabled = trueandsentry_dsn = ...inodoo.confodoo.exceptions.UserErrorand other ignored exceptions are NOT reportedLinks
Made with Cursor