module Metrics::Tags
Public Class Methods
normalize(tags)
click to toggle source
# File lib/metrics/tags.rb, line 27 def self.normalize(tags) return nil unless tags&.any? if tags.is_a?(Hash) tags = tags.map{|key, value| "#{key}:#{value}"} end return Array(tags) end