You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## 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 (getsentry#2671)
* Remove deprecated code (getsentry#2666)
* remove deprecated client options
* remove .install()
* remove new_span
FixesgetsentryGH-1957
---------
Co-authored-by: Ivana Kellyerova <ivana.kellyerova@sentry.io>
Copy file name to clipboardExpand all lines: MIGRATION_GUIDE.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,9 +22,17 @@
22
22
- A number of compatibility utilities were removed from `sentry_sdk._compat`: the constants `PY2` and `PY33`; the functions `datetime_utcnow`, `utc_from_timestamp`, `implements_str`, `contextmanager`; and the aliases `text_type`, `string_types`, `number_types`, `int_types`, `iteritems`, `binary_sequence_types`.
23
23
- The deprecated `with_locals` configuration option was removed. Use `include_local_variables` instead. See https://docs.sentry.io/platforms/python/configuration/options/#include-local-variables.
24
24
- The deprecated `request_bodies` configuration option was removed. Use `max_request_body_size`. See https://docs.sentry.io/platforms/python/configuration/options/#max-request-body-size.
25
+
- Removed `sentry_sdk.utils.Auth.store_api_url`.
26
+
-`sentry_sdk.utils.Auth.get_api_url`'s now accepts a `sentry_sdk.consts.EndpointType` enum instead of a string as its only parameter. We recommend omitting this argument when calling the function, since the parameter's default value is the only possible `sentry_sdk.consts.EndpointType` value. The parameter exists for future compatibility.
25
27
- Removed `tracing_utils_py2.py`. The `start_child_span_decorator` is now in `sentry_sdk.tracing_utils`.
26
28
- Removed support for the `install` method for custom integrations. Please use `setup_once` instead.
27
29
- Removed `sentry_sdk.tracing.Span.new_span`. Use `sentry_sdk.tracing.Span.start_child` instead.
28
30
- Removed `sentry_sdk.tracing.Transaction.new_span`. Use `sentry_sdk.tracing.Transaction.start_child` instead.
31
+
- Removed support for the `install` method for custom integrations. Please use `setup_once` instead.
32
+
- Removed `sentry_sdk.tracing.Span.new_span`. Use `sentry_sdk.tracing.Span.start_child` instead.
33
+
- Removed `sentry_sdk.tracing.Transaction.new_span`. Use `sentry_sdk.tracing.Transaction.start_child` instead.
29
34
30
35
## Deprecated
36
+
37
+
- Deprecated `sentry_sdk.transport.Transport.capture_event`. Please use `sentry_sdk.transport.Transport.capture_envelope`, instead.
38
+
- 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.
0 commit comments