From b0d2d1522021f730534d430e217e67b248b9776f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vjeran=20Grozdani=C4=87?= Date: Mon, 23 Sep 2024 15:30:46 +0200 Subject: [PATCH] fix(docs): Fix missing python configure SDK code snippet #11413 In our SDK docs, for most of the platforms we were missing init SDK code snippet for python in Configure section (e.g. AIOHTTP). This is because we were missing python.mdx as a platfrom in our platform-includes/getting-started-config/ directory. The code snippet here is the same as for the default Python SDK configuration. --- .../getting-started-config/python.mdx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 platform-includes/getting-started-config/python.mdx diff --git a/platform-includes/getting-started-config/python.mdx b/platform-includes/getting-started-config/python.mdx new file mode 100644 index 0000000000000..2e70bbae9789c --- /dev/null +++ b/platform-includes/getting-started-config/python.mdx @@ -0,0 +1,14 @@ +```python {"onboardingOptions": {"performance": "5-7", "profiling": "8-11"}} +import sentry_sdk + +sentry_sdk.init( + dsn="___PUBLIC_DSN___", + # Set traces_sample_rate to 1.0 to capture 100% + # of transactions for tracing. + traces_sample_rate=1.0, + # Set profiles_sample_rate to 1.0 to profile 100% + # of sampled transactions. + # We recommend adjusting this value in production. + profiles_sample_rate=1.0, +) +```