Skip to content

Commit

Permalink
fix(docs): Fix missing python configure SDK code snippet #11413
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vgrozdanic authored Sep 23, 2024
1 parent cf62806 commit b0d2d15
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions platform-includes/getting-started-config/python.mdx
Original file line number Diff line number Diff line change
@@ -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,
)
```

0 comments on commit b0d2d15

Please sign in to comment.