Skip to content

Commit 45300bf

Browse files
committed
.
1 parent f195ed7 commit 45300bf

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

MIGRATION_GUIDE.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
1919
- The `Span()` constructor does not accept a `hub` parameter anymore.
2020
- The `sentry_sdk.Scope()` constructor no longer accepts a `client` parameter.
2121
- `Span.finish()` does not accept a `hub` parameter anymore.
22-
- `Span.finish()` no longer returns the `event_id` if the event is sent to sentry.
22+
- `Span.finish()` no longer returns the `event_id` if the event is sent to Sentry.
23+
- The SDK is trimming considerably less data from events. However, note that server-side trimming is still in place.
2324
- The `Profile()` constructor does not accept a `hub` parameter anymore.
2425
- A `Profile` object does not have a `.hub` property anymore.
2526
- `MAX_PROFILE_DURATION_NS`, `PROFILE_MINIMUM_SAMPLES`, `Profile`, `Scheduler`, `ThreadScheduler`, `GeventScheduler`, `has_profiling_enabled`, `setup_profiler`, `teardown_profiler` are no longer accessible from `sentry_sdk.profiler`. They're still accessible from `sentry_sdk.profiler.transaction_profiler`.
@@ -185,6 +186,8 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
185186
- If you want to force creation of a new trace, use the `sentry_sdk.new_trace()` context manager.
186187
- `Span.set_data()` is deprecated. Use `Span.set_attribute()` instead.
187188

189+
---------------------------------------------------------------------------------
190+
188191
## Upgrading to 2.0
189192

190193
Looking to upgrade from Sentry SDK 1.x to 2.x? Here's a comprehensive list of what's changed. Looking for a more digestible summary? See the [guide in the docs](https://docs.sentry.io/platforms/python/migration/1.x-to-2.x) with the most common migration patterns.

sentry_sdk/consts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ def __init__(
812812
http_proxy: Optional[str] = None,
813813
https_proxy: Optional[str] = None,
814814
ignore_errors: Sequence[Union[type, str]] = [], # noqa: B006
815-
inclue_request_bodies: Optional[bool] = True,
815+
include_request_bodies: Optional[bool] = True,
816816
socket_options: Optional[List[Tuple[int, int, int | bytes]]] = None,
817817
keep_alive: Optional[bool] = None,
818818
before_send: Optional[EventProcessor] = None,

tests/test_serializer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ def custom_repr(value):
141141

142142

143143
def test_dont_trim_databag_breadth(body_normalizer):
144-
data = {"key{}".format(i): "value{}".format(i) for i in range(10**9)}
144+
data = {"key{}".format(i): "value{}".format(i) for i in range(10**6)}
145145

146146
result = body_normalizer(data)
147147

148-
assert len(result) == 10**9
148+
assert len(result) == 10**6
149149
for key, value in result.items():
150150
assert data.get(key) == value
151151

0 commit comments

Comments
 (0)