lib/ddtelemetry/metric.rb in ddtelemetry-1.0.0a2 vs lib/ddtelemetry/metric.rb in ddtelemetry-1.0.0a3

- old
+ new

@@ -24,7 +24,13 @@ # @api private def basic_metric_for(label, basic_class) @basic_metrics.fetch(label) { @basic_metrics[label] = basic_class.new } end + + # @api private + def validate_label(label) + return if label.is_a?(Hash) + raise ArgumentError, 'label argument must be a hash' + end end end