Class: OpenCensus::Trace::Samplers::AlwaysSample

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

Overview

The AlwaysSample sampler always returns true.

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/always_sample.rb', line 29

def call _opts = {}
  true
end