Skip to content

Commit ec82937

Browse files
committed
Merge branch 'major/3.0' into ivana/major/clean-up-weird-client-options
2 parents 1cd0cab + abff2e4 commit ec82937

9 files changed

Lines changed: 472 additions & 1205 deletions

File tree

‎MIGRATION_GUIDE.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
122122
- Dropped support for Pydantic AI below 1.76.
123123
- Dropped support for OpenAI Agents below 0.10.3.
124124
- Dropped support for MCP below 2.0.
125+
- Dropped support for Hugging Face Hub below 2.0.
125126
- Removed the `transaction_style` option from server integrations (DjangoIntegration, StarletteIntegration, FastApiIntegration, AioHttpIntegration, FlaskIntegration, PyramidIntegration, QuartIntegration, BottleIntegration, FalconIntegration, StarliteIntegration and LitestarIntegration).
126127
- Removed the RedisIntegration `max_data_size` option.
127128
- Removed the possibility to supply a specific client to the LaunchDarklyIntegration.
@@ -163,6 +164,7 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
163164
- The `trace_ignore_status_codes` option was removed.
164165
- `add_attachment` no longer accepts an `add_to_transactions` argument.
165166
- The `stream_gen_ai_spans` option was removed. All spans are streamed now.
167+
- The `data_collection` option is no longer accessible under `_experiments`. Use it as a top-level option instead.
166168
- The experimental `record_sql_params` option was removed. Use the `database_query_data` setting of `data_collection` instead.
167169
- The `record_params` option of `AsyncPGIntegration` and `AioMySQLIntegration` was removed. Use the `database_query_data` setting of `data_collection` instead.
168170
- The `include_local_variables` option was removed. Use `data_collection`'s `stack_frame_variables` as a drop-in replacement.

‎scripts/populate_tox/config.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,7 @@
234234
"huggingface_hub": {
235235
"package": "huggingface_hub",
236236
"deps": {
237-
"*": ["responses", "pytest-httpx"],
238-
">=2": ["httpx2-pytest"],
237+
"*": ["httpx2-pytest"],
239238
},
240239
},
241240
"langchain-base": {

‎scripts/populate_tox/package_dependencies.jsonl‎

Lines changed: 9 additions & 133 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎scripts/populate_tox/releases.jsonl‎

Lines changed: 1 addition & 255 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎sentry_sdk/consts.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ class CompressionAlgo(Enum):
7272
"transport_num_pools": Optional[int],
7373
"transport_http2": Optional[bool],
7474
"transport_async": Optional[bool],
75-
"data_collection": Optional[DataCollectionUserOptions],
7675
},
7776
total=False,
7877
)

‎sentry_sdk/integrations/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def iter_default_integrations(
146146
"httpx": (0, 16, 0),
147147
"httpx2": (2, 0, 0),
148148
"huey": (2, 0),
149-
"huggingface_hub": (0, 24, 7),
149+
"huggingface_hub": (2, 0, 0),
150150
"langchain": (0, 1, 0),
151151
"langgraph": (0, 6, 6),
152152
"launchdarkly": (9, 8, 0),

‎sentry_sdk/utils.py‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -630,25 +630,25 @@ def serialize_frame(
630630
frame, tb_lineno, max_value_length
631631
)
632632

633-
dc_stack_frame_vars_config = data_collection["stack_frame_variables"]
633+
dc_stack_frame_vars_config = data_collection["stack_frame_variables"]
634634

635-
if isinstance(dc_stack_frame_vars_config, bool):
636-
if dc_stack_frame_vars_config:
637-
rv["vars"] = serialize(
638-
dict(frame.f_locals), is_vars=True, custom_repr=custom_repr
639-
)
640-
else:
641-
local_variables_to_send = _apply_key_value_collection_filtering(
642-
items=dict(frame.f_locals),
643-
behaviour=dc_stack_frame_vars_config,
635+
if isinstance(dc_stack_frame_vars_config, bool):
636+
if dc_stack_frame_vars_config:
637+
rv["vars"] = serialize(
638+
dict(frame.f_locals), is_vars=True, custom_repr=custom_repr
644639
)
640+
else:
641+
local_variables_to_send = _apply_key_value_collection_filtering(
642+
items=dict(frame.f_locals),
643+
behaviour=dc_stack_frame_vars_config,
644+
)
645645

646-
if local_variables_to_send:
647-
serialized_variables = serialize(
648-
local_variables_to_send, is_vars=True, custom_repr=custom_repr
649-
)
646+
if local_variables_to_send:
647+
serialized_variables = serialize(
648+
local_variables_to_send, is_vars=True, custom_repr=custom_repr
649+
)
650650

651-
rv["vars"] = serialized_variables
651+
rv["vars"] = serialized_variables
652652

653653
return rv
654654

0 commit comments

Comments
 (0)