class Aws::Plugins::UserAgent

@api private

def self.feature(_feature, &block)

Deprecated - must exist for old service gems
def self.feature(_feature, &block)
  block.call
end

def self.metric(*metrics, &block)

def self.metric(*metrics, &block)
  Thread.current[:aws_sdk_core_user_agent_metric] ||= []
  metrics = metrics.map { |metric| METRICS[metric] }.compact
  Thread.current[:aws_sdk_core_user_agent_metric].concat(metrics)
  block.call
ensure
  Thread.current[:aws_sdk_core_user_agent_metric].pop(metrics.size)
end