Skip to content

Commit 705db9e

Browse files
authored
migrate python platform-includes to inline options syntax (#13449)
1 parent af2d854 commit 705db9e

File tree

1 file changed

+5
-1
lines changed
  • platform-includes/getting-started-config

1 file changed

+5
-1
lines changed

platform-includes/getting-started-config/python.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,24 @@
66
'profiling',
77
]}
88
/>
9-
```python {"onboardingOptions": {"performance": "8-10", "profiling": "11-14"}}
9+
```python
1010
import sentry_sdk
1111

1212
sentry_sdk.init(
1313
dsn="___PUBLIC_DSN___",
1414
# Add data like request headers and IP for users, if applicable;
1515
# see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info
1616
send_default_pii=True,
17+
# ___PRODUCT_OPTION_START___ performance
1718
# Set traces_sample_rate to 1.0 to capture 100%
1819
# of transactions for tracing.
1920
traces_sample_rate=1.0,
21+
# ___PRODUCT_OPTION_END___ performance
22+
# ___PRODUCT_OPTION_START___ profiling
2023
# Set profiles_sample_rate to 1.0 to profile 100%
2124
# of sampled transactions.
2225
# We recommend adjusting this value in production.
2326
profiles_sample_rate=1.0,
27+
# ___PRODUCT_OPTION_END___ profiling
2428
)
2529
```

0 commit comments

Comments
 (0)