lib/ddtelemetry/summary.rb in ddtelemetry-1.0.0a2 vs lib/ddtelemetry/summary.rb in ddtelemetry-1.0.0a3
- old
+ new
@@ -1,13 +1,15 @@
# frozen_string_literal: true
module DDTelemetry
class Summary < Metric
def observe(value, label)
+ validate_label(label)
basic_metric_for(label, BasicSummary).observe(value)
end
def get(label)
+ validate_label(label)
values = basic_metric_for(label, BasicSummary).values
DDTelemetry::Stats.new(values)
end
def to_s