From b3272cd5b3e0fff3ed86ffca662a70da080b42e6 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Wed, 6 Sep 2023 10:23:57 +0200 Subject: [PATCH 1/6] Added asyncpg docs --- .../configuration/integrations/asyncpg.mdx | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/platforms/python/common/configuration/integrations/asyncpg.mdx diff --git a/src/platforms/python/common/configuration/integrations/asyncpg.mdx b/src/platforms/python/common/configuration/integrations/asyncpg.mdx new file mode 100644 index 0000000000000..2f6107422f04c --- /dev/null +++ b/src/platforms/python/common/configuration/integrations/asyncpg.mdx @@ -0,0 +1,39 @@ +--- +title: asyncpg +description: "Learn about importing the asyncpg integration and how it captures queries from asyncpg." +sidebar_order: 120 +--- + +The asyncpg integration captures queries from +[asyncpg](https://magicstack.github.io/asyncpg/current/) and shows them in the "Performance" seciton of Sentry. + +## Install + +Install `sentry-sdk` from PyPI. + +```bash +pip install --upgrade sentry-sdk +``` + +## Configure + +Add `AsyncPGIntegration()` to your `integrations` list: + + + +```python +import sentry_sdk +from sentry_sdk.integrations.asyncpg import AsyncPGIntegration + +sentry_sdk.init( + dsn="___PUBLIC_DSN___", + integrations=[ + AsyncPGIntegration(), + ], +) +``` + +## Supported Versions + +- asyncpg: 0.23+ +- Python: 3.7+ From ac159625902524055a17560c3b9deeb6cf8a8d4b Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Wed, 6 Sep 2023 10:26:02 +0200 Subject: [PATCH 2/6] Fixed sidebar odering --- .../python/common/configuration/integrations/asyncpg.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/python/common/configuration/integrations/asyncpg.mdx b/src/platforms/python/common/configuration/integrations/asyncpg.mdx index 2f6107422f04c..6cbb6cb5b9fde 100644 --- a/src/platforms/python/common/configuration/integrations/asyncpg.mdx +++ b/src/platforms/python/common/configuration/integrations/asyncpg.mdx @@ -1,7 +1,7 @@ --- title: asyncpg description: "Learn about importing the asyncpg integration and how it captures queries from asyncpg." -sidebar_order: 120 +sidebar_order: 25 --- The asyncpg integration captures queries from From d15be383cddec1386c52b61c13354eaeb9b18312 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Wed, 6 Sep 2023 10:27:03 +0200 Subject: [PATCH 3/6] Better link for asyncpg integration. --- .../python/common/configuration/integrations/asyncpg.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/python/common/configuration/integrations/asyncpg.mdx b/src/platforms/python/common/configuration/integrations/asyncpg.mdx index 6cbb6cb5b9fde..f54afd84674c7 100644 --- a/src/platforms/python/common/configuration/integrations/asyncpg.mdx +++ b/src/platforms/python/common/configuration/integrations/asyncpg.mdx @@ -5,7 +5,7 @@ sidebar_order: 25 --- The asyncpg integration captures queries from -[asyncpg](https://magicstack.github.io/asyncpg/current/) and shows them in the "Performance" seciton of Sentry. +[asyncpg](https://github.com/MagicStack/asyncpg) and shows them in the "Performance" seciton of Sentry. ## Install From 008627f6a610f0e4ab01157a129404098cbd45ad Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 11 Sep 2023 08:56:10 +0200 Subject: [PATCH 4/6] Update src/platforms/python/common/configuration/integrations/asyncpg.mdx Co-authored-by: Liza Mock --- .../python/common/configuration/integrations/asyncpg.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/python/common/configuration/integrations/asyncpg.mdx b/src/platforms/python/common/configuration/integrations/asyncpg.mdx index f54afd84674c7..c90d91c0e0a08 100644 --- a/src/platforms/python/common/configuration/integrations/asyncpg.mdx +++ b/src/platforms/python/common/configuration/integrations/asyncpg.mdx @@ -5,7 +5,7 @@ sidebar_order: 25 --- The asyncpg integration captures queries from -[asyncpg](https://github.com/MagicStack/asyncpg) and shows them in the "Performance" seciton of Sentry. +[asyncpg](https://github.com/MagicStack/asyncpg), which can be viewed in Sentry's **Performance** page. ## Install From 4cae0d6eb83317548efa0e6ede2e037b9123288f Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 11 Sep 2023 08:56:18 +0200 Subject: [PATCH 5/6] Update src/platforms/python/common/configuration/integrations/asyncpg.mdx Co-authored-by: Liza Mock --- .../python/common/configuration/integrations/asyncpg.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/python/common/configuration/integrations/asyncpg.mdx b/src/platforms/python/common/configuration/integrations/asyncpg.mdx index c90d91c0e0a08..9bd869af56e3a 100644 --- a/src/platforms/python/common/configuration/integrations/asyncpg.mdx +++ b/src/platforms/python/common/configuration/integrations/asyncpg.mdx @@ -9,7 +9,7 @@ The asyncpg integration captures queries from ## Install -Install `sentry-sdk` from PyPI. +To get started, install `sentry-sdk` from PyPI. ```bash pip install --upgrade sentry-sdk From 0babb8249631b242e775e5484f57020e6848c845 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 11 Sep 2023 08:56:27 +0200 Subject: [PATCH 6/6] Update src/platforms/python/common/configuration/integrations/asyncpg.mdx Co-authored-by: Martin Imre --- .../python/common/configuration/integrations/asyncpg.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/python/common/configuration/integrations/asyncpg.mdx b/src/platforms/python/common/configuration/integrations/asyncpg.mdx index 9bd869af56e3a..729e77adf0c45 100644 --- a/src/platforms/python/common/configuration/integrations/asyncpg.mdx +++ b/src/platforms/python/common/configuration/integrations/asyncpg.mdx @@ -12,7 +12,7 @@ The asyncpg integration captures queries from To get started, install `sentry-sdk` from PyPI. ```bash -pip install --upgrade sentry-sdk +pip install --upgrade sentry-sdk[asyncpg] ``` ## Configure