Skip to content

Commit 2422b21

Browse files
committed
missing initialization
1 parent 168be8c commit 2422b21

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sentry_sdk/profiler/transaction_profiler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ def _set_initial_sampling_decision(self, sampling_context):
266266

267267
options = client.options
268268

269+
sample_rate = None
269270
if callable(options.get("profiles_sampler")):
270271
sample_rate = options["profiles_sampler"](sampling_context)
271272
elif options["profiles_sample_rate"] is not None:

0 commit comments

Comments
 (0)