Skip to content

Commit e8d024e

Browse files
committed
.
1 parent 6a56952 commit e8d024e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

MIGRATION_GUIDE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
4545
- `enable_logs` and `before_send_log` are now regular SDK options. Their original versions under `_experiments` have been removed.
4646

4747
#### Integrations
48+
49+
- AWS Lambda: The message of the warning the SDK optionally emits if a Lambda function is about to time out has changed.
4850
- Redis: In Redis pipeline spans there is no `span["data"]["redis.commands"]` that contains a dict `{"count": 3, "first_ten": ["cmd1", "cmd2", ...]}` but instead `span["data"]["redis.commands.count"]` (containing `3`) and `span["data"]["redis.commands.first_ten"]` (containing `["cmd1", "cmd2", ...]`).
4951
- clickhouse-driver: The query is now available under the `db.query.text` span attribute (only if `send_default_pii` is `True`).
5052
- Logging: By default, the SDK won't capture Sentry issues anymore when calling `logging.error()`, `logging.critical()` or `logging.exception()`. If you want to preserve the old behavior use `sentry_sdk.init(integrations=[LoggingIntegration(event_level="ERROR")])`.

tests/integrations/aws_lambda/test_aws_lambda.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,7 @@ def test_timeout_error(lambda_client, test_environment):
216216
(exception,) = error_event["exception"]["values"]
217217
assert not exception["mechanism"]["handled"]
218218
assert exception["type"] == "ServerlessTimeoutWarning"
219-
assert exception["value"].startswith(
220-
"WARNING : Function is expected to get timed out. Configured timeout duration ="
221-
)
219+
assert exception["value"] == "WARNING: Function is about time out."
222220
assert exception["mechanism"]["type"] == "threading"
223221

224222

0 commit comments

Comments
 (0)