You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: sidekiq_stats_job.rb
    path of file: ./repos/vets-api/app/sidekiq
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class SidekiqStatsJob
  include Sidekiq::Job

  sidekiq_options queue: 'critical'

  METR
    
  def perform
    info = Sidekiq::Stats.new

    self.class::METRIC_NAMES.each do |method, stat|
      stat ||= method

      StatsD.gauge "shared.sidekiq.stats.#{stat}", info.send(method)
    end

    working = Sidekiq::ProcessSet.new.select { |p| p[:busy] == 1 }.count
    StatsD.gauge 'shared.sidekiq.stats.working', working

    retry_size = Sidekiq::RetrySet.new.size
    StatsD.gauge 'shared.sidekiq.stats.retry_size', retry_size

    info.queues.each do |name, size|
      StatsD.gauge "shared.sidekiq.#{name}.size", size
    end
  end