From ecb5644ed5bae0c4eaeabf12f4e25c7adec2eeed Mon Sep 17 00:00:00 2001 From: Kevin Date: Wed, 1 Nov 2023 10:58:14 -0400 Subject: [PATCH] Reduce profile sample rate --- prompttools/sentry.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prompttools/sentry.py b/prompttools/sentry.py index 18abbd3..f3dff61 100644 --- a/prompttools/sentry.py +++ b/prompttools/sentry.py @@ -57,12 +57,14 @@ def init_sentry(): sentry_sdk.init( dsn=SENTRY_DSN, release=__version__, - traces_sample_rate=1, + traces_sample_rate=1.0, include_local_variables=False, send_default_pii=False, attach_stacktrace=False, before_send=filter_info, include_source_context=False, + # the rate at which transaction and performance data is sampled for profiling purposes + profiles_sample_rate=0.0, ) try: filename = os.path.join(os.environ.get("HOME", "/tmp"), ".token")