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: hako_reporter.rb
    path of file: ./repos/newrelic-ruby-agent/test/performance/lib/performance
    
    the code of the file until where you have to start completion: # This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
# frozen_string_literal: true

module Performance
  class HakoReporter
    def initialize(results, elapsed, options = {})
      @results = results
      @token = E
    
    def report
      Performance.logger.info("Uploading #{@results.size} results to Hako")
      client = HakoClient.new(@token)
      @results.each do |result|
        rsp = client.submit(result)
        case rsp
        when Net::HTTPSuccess
          Performance.logger.debug('Successfully posted result to Hako')
        else
          Performance.logger.error("Failed to post results to Hako: #{rsp.inspect}")
        end
      end