Skip to content

Commit

Permalink
remove confusing comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitch Hartweg committed Jan 14, 2025
1 parent ea6c0f0 commit f8cbee7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/scout_apm/sampling.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,12 @@ def drop_request?(transaction)
job_name = transaction.layer_finder.job.name
rate = job_sample_rate(job_name)
return sample?(rate) unless rate.nil?
# can't always return here
return true if ignore_job?(job_name)
return sample?(@job_sample_rate) unless @job_sample_rate.nil?
elsif transaction.web?
uri = transaction.annotations[:uri]
rate = web_sample_rate(uri)
return sample?(rate) unless rate.nil?
# can't always return here
return true if ignore_uri?(uri)
return sample?(@endpoint_sample_rate) unless @endpoint_sample_rate.nil?
end
Expand Down

0 comments on commit f8cbee7

Please sign in to comment.