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
{{ message }}
Repository navigation
Commit bab41ae
Browse filesBrowse the repository at this point in the historyBrowse files
On 3.x `level` means Sentry Logs, and `event_level` defaults to `None`, so without it a logged
63
-
error creates no event.
64
-
65
-
On 2.x, turning `sentry_logs_level` off is free. lite-bootstrap never sets `enable_logs`, so Sentry
54
+
lite-bootstrap supports sentry-sdk 2.70 and later 2.x releases. sentry-sdk 3.0 is not supported
55
+
yet. Unless `sentry_integrations` already contains a `LoggingIntegration`, lite-bootstrap appends
56
+
`LoggingIntegration(level=sentry_logging_breadcrumb_level, sentry_logs_level=None)`. It turns
57
+
`ERROR` records into events, records breadcrumbs from `sentry_logging_breadcrumb_level` up and sends
58
+
no Sentry Logs.
59
+
60
+
Turning `sentry_logs_level` off is free. lite-bootstrap never sets `enable_logs`, so Sentry
66
61
Logs is off, but `SentryLogsHandler.emit` formats the record *before* it checks whether logs are
67
62
enabled ([getsentry/sentry-python#7402](https://github.com/getsentry/sentry-python/issues/7402)) - it
68
63
formats every `INFO`+ record and discards the result.
@@ -92,8 +87,8 @@ SQLAlchemy, asyncpg, redis, httpx, aiohttp, MCP and others. lite-bootstrap passe
92
87
93
88
With tracing off, those integrations still open a span and record a breadcrumb for every SQL
94
89
statement, Redis command or outgoing HTTP request. `SqlalchemyIntegration` measured about 64 µs per
95
-
statement on sentry-sdk 2.70, and `RedisIntegration` +27.1 µs per FastStream publish on 2.73.0 and
96
-
+9.5 µs on 3.0.0b2 ([FastStream](https://github.com/modern-python/lite-bootstrap/blob/main/benchmarks/README.md#8d-faststream)). The default integrations stay:
90
+
statement on sentry-sdk 2.70, and `RedisIntegration` +27.1 µs per FastStream publish on 2.73.0
91
+
([FastStream](https://github.com/modern-python/lite-bootstrap/blob/main/benchmarks/README.md#8d-faststream)). The default integrations stay:
97
92
dedupe, excepthook, threading, stdlib, atexit, modules, argv and lite-bootstrap's own
98
93
`LoggingIntegration`.
99
94
@@ -116,12 +111,8 @@ default as a whole, so keys you leave out take sentry-sdk's own defaults, which
116
111
change one key, spread the default: `{**DEFAULT_DATA_COLLECTION, "user_info": True}`. Read more about
117
112
the option [here](https://docs.sentry.io/platforms/python/data-management/data-collected/).
118
113
119
-
`send_default_pii` has no effect on 2.x while `data_collection` is set, and on 3.x it is gone. 3.0
120
-
also raises `TypeError` at `sentry_sdk.init` for any option it removed, so passing one of these
121
-
through `sentry_additional_params` fails at bootstrap on 3.x, `enable_tracing`, `enable_logs` and
122
-
`include_local_variables` among them. sentry-sdk's
0 commit comments