Updated

lib/context_request_middleware / sampling_handler.rb

A
16 lines of codes
1 methods
6.8 complexity/method
2 churn
6.8 complexity
0 duplications
# frozen_string_literal: true module ContextRequestMiddleware # :nodoc: module SamplingHandler
  1. ContextRequestMiddleware::SamplingHandler has no descriptive comment
extend self def from_request
  1. ContextRequestMiddleware::SamplingHandler#from_request doesn't depend on instance state (maybe move it to another class?)
ContextRequestMiddleware
  1. 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