-
Notifications
You must be signed in to change notification settings - Fork 9
Security: Update dependencies to fix CVE vulnerabilities #554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
Sentry SDK Python 2.x migration guide breaking changes💡 Result:
Key breaking changes when migrating Sentry’s Python SDK from 1.x → 2.x (the official migration guide is here) [1]:
sentry-sdk2.x requires Python ≥ 3.6 (so Python 2.7 must stay onsentry-sdk1.x). [1], [2]with_localsremoved → useinclude_local_variablesrequest_bodiesremoved → usemax_request_body_size[1], [2]profiles_sample_rate/profiler_modevia_experiments; set them as top-level init options. [1]configure_scope(),push_scope()) are deprecated in favor of global / isolation / current scopes and helpers likenew_scope()/isolation_scope()/get_current_scope()/get_isolation_scope(). [1], [2]/envelopeendpoint; self-hosted Sentry must be ≥ 20.6.0. [1], [2]Transport.capture_eventis deprecated → useTransport.capture_envelope(and transports should beTransportsubclasses). [1]before_emit_metriccallback signature changed to include(key, value, unit, tags). [1]last_event_id()was removed in 2.0.0 (and later brought back in 2.2.0). [1], [2]Sources: official Sentry docs migration guide [1] and the 2.0.0 release notes summary [2].
🌐 Web query:
Sentry SDK FastAPI integration 2.x compatibility changes💡 Result:
Key 2.x changes that can affect FastAPI / Starlette users of
sentry-sdk:Runtime / backend compatibility
sentry-sdk2.0 requires Python ≥ 3.6 (older Python must stay on 1.x). [1]sentry-sdk2.0 requires Sentry ≥ v20.6.0 (SDK switched to sending via the/envelopeendpoint). [1]Scope / context propagation changes (important for request-scoped data)
configure_scope(),push_scope()) are deprecated in 2.x in favor of global / isolation / current scopes (useget_isolation_scope(),get_current_scope(),new_scope(),isolation_scope(), etc.). This can matter if you were manually managing per-request tags/user/context in FastAPI middleware or dependencies. [1]FastAPI/Starlette integration behavior changes
FastApiIntegration(middleware_spans=True)/StarletteIntegration(middleware_spans=True). [2]failed_request_status_codeslets you control which HTTP response codes generate Sentry events (default is 5xx). Example:Address Sentry SDK 2.x breaking changes before merging.
This major version bump introduces several breaking changes confirmed by the official migration guide:
with_locals→include_local_variables,request_bodies→max_request_body_sizeconfigure_scope(),push_scope()) replaced withget_isolation_scope(),get_current_scope(),new_scope()FastApiIntegration(middleware_spans=True)if needed/envelopeendpoint)Audit the codebase for removed config options and deprecated scope/Hub APIs, then run a startup smoke test with FastAPI to confirm request handling and error reporting work as expected.
🤖 Prompt for AI Agents