-
Notifications
You must be signed in to change notification settings - Fork 503
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
SDK 2.0 #2670
SDK 2.0 #2670
Commits on Dec 13, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 89af1e2 - Browse repository at this point
Copy the full SHA 89af1e2View commit details
Commits on Jan 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b83e454 - Browse repository at this point
Copy the full SHA b83e454View commit details
Commits on Jan 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8dddcf1 - Browse repository at this point
Copy the full SHA 8dddcf1View commit details
Commits on Jan 16, 2024
-
Drop Python 2.7, 3.5 from CI (#2640)
- remove special treatment for Python 2.7 from CI YAML generating - remove Python 2.7, 3.5 test environments from `tox.ini`
Configuration menu - View commit details
-
Copy full SHA for 9703685 - Browse repository at this point
Copy the full SHA 9703685View commit details -
Configuration menu - View commit details
-
Copy full SHA for ec5b85a - Browse repository at this point
Copy the full SHA ec5b85aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 410dba1 - Browse repository at this point
Copy the full SHA 410dba1View commit details -
Remove compatibility utils for old Python (#2645)
Remove Python<=3.5 compatibility utils from `_compat.py`. --------- Co-authored-by: Daniel Szoke <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2d354c7 - Browse repository at this point
Copy the full SHA 2d354c7View commit details
Commits on Jan 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 999c238 - Browse repository at this point
Copy the full SHA 999c238View commit details -
Configuration menu - View commit details
-
Copy full SHA for db2bd4b - Browse repository at this point
Copy the full SHA db2bd4bView commit details -
Configuration menu - View commit details
-
Copy full SHA for bb1c3ff - Browse repository at this point
Copy the full SHA bb1c3ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ec6973 - Browse repository at this point
Copy the full SHA 6ec6973View commit details
Commits on Jan 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8eaaece - Browse repository at this point
Copy the full SHA 8eaaeceView commit details -
Configuration menu - View commit details
-
Copy full SHA for ce549ca - Browse repository at this point
Copy the full SHA ce549caView commit details
Commits on Jan 22, 2024
-
Consolidate
tracing_utils
(#2655)- Remove tracing_utils_py2.py, move the contents of tracing_utils_py3.py to tracing_utils. Some code reorganization was needed to avoid circular imports. - Move the contents of test_decorator_sync.py and test_decorator_async_py3.py to a new file, test_decorator.py, and remove the original files.
Configuration menu - View commit details
-
Copy full SHA for 4673548 - Browse repository at this point
Copy the full SHA 4673548View commit details -
Remove Python<=3.5 compatibility code from tests (#2649)
- remove py<=3.5 specific imports - remove test markers for skipping/xfailing tests on py<=3.5
Configuration menu - View commit details
-
Copy full SHA for 9561fff - Browse repository at this point
Copy the full SHA 9561fffView commit details
Commits on Jan 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e2dd1f6 - Browse repository at this point
Copy the full SHA e2dd1f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ed5781 - Browse repository at this point
Copy the full SHA 5ed5781View commit details
Commits on Jan 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ef3f691 - Browse repository at this point
Copy the full SHA ef3f691View commit details
Commits on Jan 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d600037 - Browse repository at this point
Copy the full SHA d600037View commit details
Commits on Jan 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2452113 - Browse repository at this point
Copy the full SHA 2452113View commit details -
Remove deprecated code (#2666)
* remove deprecated client options * remove .install() * remove new_span
Configuration menu - View commit details
-
Copy full SHA for cb2c70f - Browse repository at this point
Copy the full SHA cb2c70fView commit details -
ref(api): Remove store endpoint (#2656)
## Summary This change removes all usages of the deprecated `store` endpoint from the Python SDK. From now on, events that were previously sent to the `store` endpoint will now be sent as envelopes to the `envelope` endpoint. ## Breaking API changes - `sentry_sdk.transport.Transport` is now an abstract base class, and therefore, it cannot be instantiated directly. Subclasses must implement the `capture_envelope` method. - `sentry_sdk.utils.Auth.store_api_url` has been removed. - `sentry_sdk.utils.Auth.get_api_url`'s now accepts a `sentry_sdk.consts.EndpointType` enum instead of a string as its only parameter. Supplying this parameter is currently unnecessary, since the parameter's default value is the only possible `sentry_sdk.consts.EndpointType` value. ## Backwards-compatible API changes - `sentry_sdk.transport.Transport.capture_event` has been deprecated. Please use `sentry_sdk.transport.Transport.capture_envelope`, instead. - Passing a function to `sentry_sdk.init`'s `transport` keyword argument has been deprecated. If you wish to provide a custom transport, please pass a `sentry_sdk.transport.Transport` instance or a subclass. ## Other changes - `sentry_sdk.transport.HttpTransport._send_event` has been removed, and uses of this method have been removed from the codebase, including from tests. - Cleaned up some transport-related test code _________________________ * Remove store endpoint * Fix linter error * Add stacklevel to warn call * Remove `store_api_url` test, update `get_api_url` test * Fix mypy * Correct import * Use `Enum` instead of `StrEnum` * Update `envelope.py` * Remove `Envelope.events` calls * Fix `capture_events_forksafe` * Hopefully fix circular import * Manually set TestTransport * Fix circular import * Revert "Fix circular import" This reverts commit e681bdb. * Revert "Hopefully fix circular import" This reverts commit 7105849. * Move EndpointType to top of file * Fix AWS tests * Remove TODO comment * Undo ABC change I will make a separate PR for this * Update * Rename envelope_item to envelope_items * Remove unneeded import statement * Updated migration guide * Put back `has_tracing_enabled` check * Remove test for replay context * Update MIGRATION_GUIDE.md * Auto-enable more integrations (#2671) * Remove deprecated code (#2666) * remove deprecated client options * remove .install() * remove new_span Fixes GH-1957 --------- Co-authored-by: Ivana Kellyerova <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ddb4a29 - Browse repository at this point
Copy the full SHA ddb4a29View commit details
Commits on Jan 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ec18401 - Browse repository at this point
Copy the full SHA ec18401View commit details
Commits on Feb 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ee66058 - Browse repository at this point
Copy the full SHA ee66058View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18ae737 - Browse repository at this point
Copy the full SHA 18ae737View commit details -
Configuration menu - View commit details
-
Copy full SHA for 98499e4 - Browse repository at this point
Copy the full SHA 98499e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9835963 - Browse repository at this point
Copy the full SHA 9835963View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f95d03 - Browse repository at this point
Copy the full SHA 2f95d03View commit details
Commits on Feb 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6cd6e77 - Browse repository at this point
Copy the full SHA 6cd6e77View commit details
Commits on Feb 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 04bcf91 - Browse repository at this point
Copy the full SHA 04bcf91View commit details
Commits on Feb 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for cd8c5e0 - Browse repository at this point
Copy the full SHA cd8c5e0View commit details
Commits on Feb 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d30d52d - Browse repository at this point
Copy the full SHA d30d52dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f33e1f - Browse repository at this point
Copy the full SHA 1f33e1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d77ea7 - Browse repository at this point
Copy the full SHA 6d77ea7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 80ec86d - Browse repository at this point
Copy the full SHA 80ec86dView commit details
Commits on Feb 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for adb9d3e - Browse repository at this point
Copy the full SHA adb9d3eView commit details
Commits on Feb 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for fa24e49 - Browse repository at this point
Copy the full SHA fa24e49View commit details -
Configuration menu - View commit details
-
Copy full SHA for e7161eb - Browse repository at this point
Copy the full SHA e7161ebView commit details
Commits on Feb 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 93f89e0 - Browse repository at this point
Copy the full SHA 93f89e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b062ee - Browse repository at this point
Copy the full SHA 7b062eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for cb052dd - Browse repository at this point
Copy the full SHA cb052ddView commit details
Commits on Feb 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f97c949 - Browse repository at this point
Copy the full SHA f97c949View commit details -
Merge branch 'sentry-sdk-2.0' of github.com:getsentry/sentry-python i…
…nto sentry-sdk-2.0
Configuration menu - View commit details
-
Copy full SHA for fc38343 - Browse repository at this point
Copy the full SHA fc38343View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8aa9599 - Browse repository at this point
Copy the full SHA 8aa9599View commit details
Commits on Feb 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 888ee4c - Browse repository at this point
Copy the full SHA 888ee4cView commit details
Commits on Feb 26, 2024
-
Scope refactoring (merge Hubs and Scopes) (#2610)
This refactors the SDK to move away from the Hub and have all the functionality in the Scope. Introducing different types of scopes. This aligns the SDK with how Opentelementry (OTel) handles data bringing us closer to be 100% OTel compatible. This change was discussed in this RFC: getsentry/rfcs#122 There is also a small FAQ: https://gist.github.com/mitsuhiko/1bc78d04ea7d08e5b50d27e42676db80 And a Miro board showing how the new scopes manage data: https://miro.com/app/board/uXjVNtPiOfI=/?share_link_id=216270218892 ### This RP contains - Introduction of global, isolation, and current scope - Deprecation of the Hub - All existing Hub based API still works and is still used by most of our integrations. Under the hood the new Scopes are used. - (this PR now includes all the changes made in the [first PR](#2609) introducing the new API) ### Breaking changes - The Pyramid integration will not capture errors that might happen in `authenticated_userid()` in a custom `AuthenticationPolicy` class. - The parameter `propagate_hub` in `ThreadingIntegration()` was deprecated and renamed to `propagate_scope`.
Configuration menu - View commit details
-
Copy full SHA for 656ac9d - Browse repository at this point
Copy the full SHA 656ac9dView commit details -
ref(api): Abstract base classes (#2667)
We have some classes in the SDK that essentially function as abstract classes, since they have some methods that raise NotImplementedError when called, since they are intended to be overriden by a subclass. Now that all supported Python versions support abstract base classes (ABCs), we should refactor these classes to be ABCs. Making this change will explicitly indicate which methods need to be overridden by a subclass. Changing a public class into an ABC is a breaking change, since instantiating the class, or any subclass that hasn't overridden all abstract methods, will raise an error. Therefore, I have added this (draft) PR to the SDK 2.0 milestone. * Convert `Transport` class into an ABC * ABC metrics * ABC scheduler * ABC integration * RequestExtractor comment * Deprecate `stop_profiling` and stop calling it This change is required because otherwise, the linter complains about the `stop_profiling` being an empty concrete method in an abstract class. * Actually, let's remove `stop_profiling` * Add ABCs to migration guide * fix mypy * Make docstring more relevant to users * `ensure_running` no longer abstract * Fix mypy
Configuration menu - View commit details
-
Copy full SHA for eca23b8 - Browse repository at this point
Copy the full SHA eca23b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad4ff19 - Browse repository at this point
Copy the full SHA ad4ff19View commit details -
Merge branch 'sentry-sdk-2.0' of github.com:getsentry/sentry-python i…
…nto sentry-sdk-2.0
Configuration menu - View commit details
-
Copy full SHA for c2825d5 - Browse repository at this point
Copy the full SHA c2825d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for cdf4f90 - Browse repository at this point
Copy the full SHA cdf4f90View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0594cfa - Browse repository at this point
Copy the full SHA 0594cfaView commit details -
Configuration menu - View commit details
-
Copy full SHA for fa5f50b - Browse repository at this point
Copy the full SHA fa5f50bView commit details