From 6855e4f0b4cd7ef27713a6ecafd0c976146d20b2 Mon Sep 17 00:00:00 2001 From: Simon Hellmayr Date: Mon, 7 Apr 2025 16:30:03 +0200 Subject: [PATCH] chore(profiling): move the sampling paragraph to the right place in python profiling docs --- docs/platforms/python/profiling/index.mdx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/platforms/python/profiling/index.mdx b/docs/platforms/python/profiling/index.mdx index c19f1d2f7764b..f2d28215a8233 100644 --- a/docs/platforms/python/profiling/index.mdx +++ b/docs/platforms/python/profiling/index.mdx @@ -91,6 +91,7 @@ sentry_sdk.profiler.start_profiler() sentry_sdk.profiler.stop_profiler() ``` +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. 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. @@ -107,6 +108,4 @@ sentry_sdk.init( ) ``` -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. - Continuous profiling has implications for your org's billing structure. This feature is only available for subscription plans that enrolled after June 5, 2024.