class Aws::DynamoDB::Plugins::Endpoints::Handler

def with_metrics(context, &block)

def with_metrics(context, &block)
  metrics = []
  metrics << 'ENDPOINT_OVERRIDE' unless context.config.regional_endpoint
  if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
    metrics << 'SIGV4A_SIGNING'
  end
  case context.config.account_id_endpoint_mode
  when 'preferred'
    metrics << 'ACCOUNT_ID_MODE_PREFERRED'
  when 'disabled'
    metrics << 'ACCOUNT_ID_MODE_DISABLED'
  when 'required'
    metrics << 'ACCOUNT_ID_MODE_REQUIRED'
  end
  if context.config.credentials&.credentials&.account_id
    metrics << 'RESOLVED_ACCOUNT_ID'
  end
  Aws::Plugins::UserAgent.metric(*metrics, &block)
end