Skip to content

Commit

Permalink
tidy up info log
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitch Hartweg committed Jan 10, 2025
1 parent c60703a commit 9209b7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/scout_apm/sampling.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ def initialize(config)

# for now still support old config key ('ignore') for backwards compatibility
@ignore_endpoints = config.value('ignore').present? ? config.value('ignore') : config.value('ignore_endpoints')

@sample_endpoints = individual_sample_to_hash(config.value('sample_endpoints'))

@ignore_jobs = config.value('ignore_jobs')
@sample_jobs = individual_sample_to_hash(config.value('sample_jobs'))

logger.info("Sampling Initialized: global_sample_rate: #{global_sample_rate}, sample_endpoints: #{sample_endpoints}, ignore_uri_regex: #{ignore_uri_regex}, sample_uri_regex: #{sample_uri_regex}, ignore_jobs: #{ignore_jobs}, sample_jobs: #{sample_jobs}")
logger.info("Sampling initialized with config: global_sample_rate: #{@global_sample_rate}, sample_endpoints: #{@sample_endpoints}, ignore_endpoints: #{@ignore_endpoints}, sample_jobs: #{@sample_jobs}, ignore_jobs: #{@ignore_jobs}")
end

def drop_request?(transaction)
Expand Down

0 comments on commit 9209b7f

Please sign in to comment.