Skip to content

Commit

Permalink
Reduce profile sample rate
Browse files Browse the repository at this point in the history
  • Loading branch information
NivekT committed Nov 1, 2023
1 parent 2921817 commit ecb5644
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion prompttools/sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit ecb5644

Please sign in to comment.