Class: OpenTelemetry::SDK::Metrics::Exemplar::ExemplarReservoir
- Inherits:
-
Object
- Object
- OpenTelemetry::SDK::Metrics::Exemplar::ExemplarReservoir
- Defined in:
- lib/opentelemetry/sdk/metrics/exemplar/exemplar_reservoir.rb
Overview
ExemplarReservoir base class Subclasses must implement offer and collect methods
Direct Known Subclasses
AlignedHistogramBucketExemplarReservoir, NoopExemplarReservoir, SimpleFixedSizeExemplarReservoir
Instance Method Summary collapse
-
#collect(attributes: nil, aggregation_temporality: :delta) ⇒ Array
Return list of Exemplars based on given attributes.
-
#offer(value: nil, timestamp: nil, attributes: nil, context: nil) ⇒ Nil
Store the info into exemplars bucket.
Instance Method Details
#collect(attributes: nil, aggregation_temporality: :delta) ⇒ Array
Return list of Exemplars based on given attributes
32 33 34 |
# File 'lib/opentelemetry/sdk/metrics/exemplar/exemplar_reservoir.rb', line 32 def collect(attributes: nil, aggregation_temporality: :delta) raise NotImplementedError, "#{self.class} must implement #collect" end |
#offer(value: nil, timestamp: nil, attributes: nil, context: nil) ⇒ Nil
Store the info into exemplars bucket
22 23 24 |
# File 'lib/opentelemetry/sdk/metrics/exemplar/exemplar_reservoir.rb', line 22 def offer(value: nil, timestamp: nil, attributes: nil, context: nil) raise NotImplementedError, "#{self.class} must implement #offer" end |