File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
src/platforms/python/common/configuration/integrations Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ title : asyncpg
3
+ description : " Learn about importing the asyncpg integration and how it captures queries from asyncpg."
4
+ sidebar_order : 25
5
+ ---
6
+
7
+ The asyncpg integration captures queries from
8
+ [ asyncpg] ( https://github.com/MagicStack/asyncpg ) , which can be viewed in Sentry's ** Performance** page.
9
+
10
+ ## Install
11
+
12
+ To get started, install ` sentry-sdk ` from PyPI.
13
+
14
+ ``` bash
15
+ pip install --upgrade sentry-sdk[asyncpg]
16
+ ```
17
+
18
+ ## Configure
19
+
20
+ Add ` AsyncPGIntegration() ` to your ` integrations ` list:
21
+
22
+ <SignInNote />
23
+
24
+ ``` python
25
+ import sentry_sdk
26
+ from sentry_sdk.integrations.asyncpg import AsyncPGIntegration
27
+
28
+ sentry_sdk.init(
29
+ dsn = " ___PUBLIC_DSN___" ,
30
+ integrations = [
31
+ AsyncPGIntegration(),
32
+ ],
33
+ )
34
+ ```
35
+
36
+ ## Supported Versions
37
+
38
+ - asyncpg: 0.23+
39
+ - Python: 3.7+
You can’t perform that action at this time.
0 commit comments