Skip to content

Commit 34d4c24

Browse files
authored
chore(profiling): move the sampling paragraph to the right place in python profiling docs (#13264)
1 parent a72f7b8 commit 34d4c24

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/platforms/python/profiling/index.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ sentry_sdk.profiler.start_profiler()
9191

9292
sentry_sdk.profiler.stop_profiler()
9393
```
94+
These new APIs do not offer any sampling functionality—every call to start the profiler will start it, and the same goes for launch profiles if you've configured that. If you are interested in reducing the amount of profiles that run, you must take care to do it at the callsites.
9495

9596
For some applications such as web servers, it may be difficult to call `sentry_sdk.profiler.start_profiler` in every process. Instead, you can use the `profile_lifecycle` option to automatically profile anytime a transaction is active.
9697

@@ -107,6 +108,4 @@ sentry_sdk.init(
107108
)
108109
```
109110

110-
These new APIs do not offer any sampling functionality—every call to start the profiler will start it, and the same goes for launch profiles if you've configured that. If you are interested in reducing the amount of profiles that run, you must take care to do it at the callsites.
111-
112111
Continuous profiling has implications for your org's billing structure. This feature is only available for subscription plans that enrolled after June 5, 2024.

0 commit comments

Comments
 (0)