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 03a20c0
Browse filesBrowse the repository at this point in the historyBrowse files
feat(sentry)!: support sentry-sdk 3 alongside 2.x and raise the floor to 2.70 (#359)
* feat(sentry)!: support sentry-sdk 3 alongside 2.x and raise the floor to 2.70
* chore(benchmarks): run on sentry-sdk 3 and keep the 2.x transaction probes 2.x-only
Copy file name to clipboardExpand all lines: docs/introduction/configuration.md
+37-10Lines changed: 37 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Additional parameters can also be supplied through the settings object:
17
17
-`sentry_attach_stacktrace` - if True, stack traces are automatically attached to all messages logged
18
18
-`sentry_auto_session_tracking` - whether every request opens and closes a Sentry release-health `Session` (default: `True`), measured at ~7.7 µs per request. Set it to `False` if you do not use Sentry release health.
19
19
-`sentry_integrations` - list of integrations to enable
20
-
-`sentry_logging_breadcrumb_level` - the minimum standard-library log level recorded as a breadcrumb (default: `logging.INFO`). Passed as `LoggingIntegration(level=...)`; see below.
20
+
-`sentry_logging_breadcrumb_level` - the minimum standard-library log level recorded as a breadcrumb (default: `logging.INFO`). See below for how it reaches `LoggingIntegration`.
21
21
-`sentry_tags` - key/value string pairs that are both indexed and searchable
22
22
-`sentry_additional_params` - additional params, which will be passed to `sentry_sdk.init`, overriding any of the above that map to the same keyword
23
23
-`sentry_default_integrations` - whether to use sentry's default integrations (default: `True`)
@@ -30,15 +30,21 @@ integration; see [Performance](performance.md).
30
30
31
31
### Sentry logging integration
32
32
33
-
Unless `sentry_integrations` already contains a `LoggingIntegration`, lite-bootstrap appends one built
34
-
as `LoggingIntegration(level=sentry_logging_breadcrumb_level, sentry_logs_level=None)`. Its event
35
-
handler keeps the sentry-sdk default (`ERROR`), so the only departure from sentry-sdk's own default
36
-
integration is `sentry_logs_level`.
37
-
38
-
Turning `sentry_logs_level` off is free. lite-bootstrap never sets `enable_logs`, so Sentry Logs is
39
-
off, but `SentryLogsHandler.emit` formats the record *before* it checks whether logs are enabled
40
-
([getsentry/sentry-python#7402](https://github.com/getsentry/sentry-python/issues/7402)) - it formats
41
-
every `INFO`+ record and discards the result. Dropping breadcrumbs as well, with
33
+
lite-bootstrap supports sentry-sdk 2.70 and later, on both the 2.x and 3.x majors. Unless
34
+
`sentry_integrations` already contains a `LoggingIntegration`, it appends one that turns `ERROR`
35
+
records into events, records breadcrumbs from `sentry_logging_breadcrumb_level` up and sends no
36
+
Sentry Logs. 3.0 renamed the integration's arguments, so the call differs per major:
37
+
38
+
- 2.x: `LoggingIntegration(level=sentry_logging_breadcrumb_level, sentry_logs_level=None)`, with the
0 commit comments