Class: Oboe_metal::Reporter

Inherits:
Object
  • Object
show all
Defined in:
lib/heroku_metal.rb

Class Method Summary collapse

Class Method Details

.sendReport(evt) ⇒ Object



62
63
64
# File 'lib/heroku_metal.rb', line 62

def self.sendReport(evt)
  Oboe.reporter.sendReport(evt)
end

.startObject

Initialize the Oboe Context, reporter and report the initialization



45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/heroku_metal.rb', line 45

def self.start
  begin
    Oboe_metal::Context.init()

    Oboe.logger.debug "[oboe/debug] Initializing Heroku based reporter."
    
    # The Oboe Reporter is configured via Heroku config variables.
    Oboe.reporter = Oboe::Reporter.new(nil, nil)
    
    Oboe::API.report_init

  rescue Exception => e
    $stderr.puts e.message
    raise
  end
end