From 6f9c5ee520d3730f007d06ca67f723087cf6483c Mon Sep 17 00:00:00 2001 From: Pavel Dedik Date: Mon, 21 Oct 2024 14:32:05 +0200 Subject: [PATCH] docs: Update README.md to document change from `hub` to `scope` --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c8eaa08..aa160a8 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,8 @@ Do not forget to add the `structlog.stdlib.add_log_level` and optionally the - `ignore_loggers` A list of logger names to ignore any events from. - `verbose` Report the action taken by the logger in the `event_dict`. Default is `False`. -- `hub` Optionally specify `sentry_sdk.Hub`. +- `scope` Optionally specify `sentry_sdk.Client` (in `structlog-sentry<2.2` + this corresponds to `hub: sentry_sdk.Hub`). Now events are automatically captured by Sentry with `log.error()`: