Class: OpenCensus::Trace::Samplers::NeverSample

Inherits:
Object
  • Object
show all
Defined in:
lib/opencensus/trace/samplers/never_sample.rb

Overview

The NeverSample sampler always returns false.

Instance Method Summary collapse

Instance Method Details

#call(_opts = {}) ⇒ boolean

Implements the sampler contract. Checks to see whether a sample should be taken at this time.

Returns:

  • (boolean)

    Whether to sample at this time.



29
30
31
# File 'lib/opencensus/trace/samplers/never_sample.rb', line 29

def call _opts = {}
  false
end