We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70b0f02 commit 038ae7fCopy full SHA for 038ae7f
platform-includes/performance/traces-sampler-as-sampler/ruby.mdx
@@ -9,7 +9,7 @@ Sentry.init do |config|
9
10
# the sampling context also has the full rack environment if you want to check the path directly
11
rack_env = sampling_context[:env]
12
- return 0.0 if rack_env['PATH_INFO'] =~ /health_check/
+ return 0.0 if rack_env && rack_env['PATH_INFO'] =~ /health_check/
13
14
# transaction_context is the transaction object in hash form
15
# keep in mind that sampling happens right after the transaction is initialized
0 commit comments