File tree Expand file tree Collapse file tree 6 files changed +50
-9
lines changed
src/collections/_documentation/platforms/python Expand file tree Collapse file tree 6 files changed +50
-9
lines changed Original file line number Diff line number Diff line change @@ -371,6 +371,7 @@ Array [
371
371
"platforms/python/default-integrations/index.html",
372
372
"platforms/python/django/index.html",
373
373
"platforms/python/flask/index.html",
374
+ "platforms/python/gnu_backtrace/index.html",
374
375
"platforms/python/index.html",
375
376
"platforms/python/logging/index.html",
376
377
"platforms/python/pyramid/index.html",
Original file line number Diff line number Diff line change @@ -10,15 +10,21 @@ sidebar_order: 4
10
10
11
11
The AIOHTTP integration adds support for the [ AIOHTTP-Server Web
12
12
Framework] ( https://docs.aiohttp.org/en/stable/web.html ) . A Python version of
13
- 3.7 or greater is required.
13
+ 3.6 or greater is required.
14
14
15
15
1 . Install ` sentry-sdk ` from PyPI:
16
16
17
17
``` bash
18
18
$ pip install --upgrade ' sentry-sdk=={% sdk_version sentry.python %}'
19
19
```
20
20
21
- 2. Initialize the SDK before starting the server:
21
+ 2. If you' re on Python 3.6, you also need the `aiocontextvars` package:
22
+
23
+ ```bash
24
+ $ pip install --upgrade aiocontextvars
25
+ ```
26
+
27
+ 3. Initialize the SDK before starting the server:
22
28
23
29
```python
24
30
import sentry_sdk
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : GNU Backtrace
3
+ sidebar_order : 2
4
+ ---
5
+ <!-- WIZARD -->
6
+ * Import name: ` sentry_sdk.integrations.gnu_backtrace.GnuBacktraceIntegration ` *
7
+
8
+ The GNU backtrace integration parses native stack trace produced by [ ` backtrace_symbols ` ] ( https://linux.die.net/man/3/backtrace_symbols ) from error messages and concatenates them with the Python traceback.
9
+
10
+ It is currently tested to work with server exceptions raised by [ ` clickhouse-driver ` ] ( https://github.com/mymarilyn/clickhouse-driver ) .
11
+
12
+ ** This integration is experimental.** It may be removed in minor versions. When enabling this integration, expect to see new event groups due to new stack trace frames.
13
+
14
+ Add `` GnuBacktraceIntegration() `` to your `` integrations `` list:
15
+
16
+ ``` python
17
+ import sentry_sdk
18
+ from sentry_sdk.integrations.celery import CeleryIntegration
19
+
20
+ sentry_sdk.init(" ___PUBLIC_DSN___" , integrations = [GnuBacktraceIntegration()])
21
+ ```
22
+
23
+ <!-- ENDWIZARD -->
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ SDK. A call to `sentry_sdk.init` configures integrations. Unless you set `defaul
40
40
### Other Integrations
41
41
42
42
* [ Logging] ({% link _ documentation/platforms/python/logging.md %})
43
+ * [ GNU Backtrace] ({% link _ documentation/platforms/python/gnu_backtrace.md %})
43
44
* [ Default integrations] ({% link _ documentation/platforms/python/default-integrations.md %})
44
45
45
46
{% capture __ alert_content -%}
Original file line number Diff line number Diff line change @@ -9,15 +9,22 @@ sidebar_order: 3
9
9
* Import name: ` sentry_sdk.integrations.sanic.SanicIntegration ` *
10
10
11
11
The Sanic integration adds support for the [ Sanic Web
12
- Framework] ( https://github.com/huge-success/sanic ) .
12
+ Framework] ( https://github.com/huge-success/sanic ) . A Python version of 3.6 or
13
+ greater is required.
13
14
14
15
1 . Install ` sentry-sdk ` from PyPI:
15
16
16
17
``` bash
17
18
$ pip install --upgrade ' sentry-sdk=={% sdk_version sentry.python %}'
18
19
```
19
20
20
- 2. To configure the SDK, initialize it with the integration before or after your app has been initialized:
21
+ 2. If you' re on Python 3.6, you also need the `aiocontextvars` package:
22
+
23
+ ```bash
24
+ $ pip install --upgrade aiocontextvars
25
+ ```
26
+
27
+ 3. To configure the SDK, initialize it with the integration before or after your app has been initialized:
21
28
22
29
```python
23
30
import sentry_sdk
Original file line number Diff line number Diff line change @@ -10,15 +10,21 @@ sidebar_order: 4
10
10
11
11
The Tornado integration adds support for the [ Tornado Web
12
12
Framework] ( https://www.tornadoweb.org/ ) . A Tornado version of 5 or greater and
13
- Python 3.7 or greater is required.
13
+ Python 3.6 or greater is required.
14
14
15
15
1 . Install ` sentry-sdk ` from PyPI:
16
16
17
17
``` bash
18
18
$ pip install --upgrade sentry-sdk=={% sdk_version sentry.python %}
19
19
```
20
20
21
- 2. Initialize the SDK before starting the server:
21
+ 2. If you' re on Python 3.6, you also need the `aiocontextvars` package:
22
+
23
+ ```bash
24
+ $ pip install --upgrade aiocontextvars
25
+ ```
26
+
27
+ 3. Initialize the SDK before starting the server:
22
28
23
29
```python
24
30
import sentry_sdk
@@ -45,9 +51,6 @@ Python 3.7 or greater is required.
45
51
46
52
* {% include platforms/python/request-data.md %}
47
53
48
- * Note: The tornado integration currently does not capture formdata.* See [the
49
- relevant GitHub issue](https://github.com/getsentry/sentry-python/issues/221)
50
-
51
54
* Logging with any logger will create breadcrumbs when
52
55
the [Logging]({% link _documentation/platforms/python/logging.md %})
53
56
integration is enabled (done by default).
You can’t perform that action at this time.
0 commit comments