# frozen_string_literal: true
module ContextRequestMiddleware
# :nodoc:
module SamplingHandler - ContextRequestMiddleware::SamplingHandler has no descriptive comment
extend self
def from_request - ContextRequestMiddleware::SamplingHandler#from_request doesn't depend on instance state (maybe move it to another class?)
ContextRequestMiddleware - ContextRequestMiddleware::SamplingHandler#from_request performs a nil-check
.load_class_from_name(ContextRequestMiddleware.sampling_handler,
ContextRequestMiddleware::SamplingHandler.to_s,
ContextRequestMiddleware.sampling_handler_version)
&.new
end
end
end