Class: ScoutApm::PlatformIntegrations::Heroku

Inherits:
Object
  • Object
show all
Defined in:
lib/scout_apm/platform_integrations/heroku.rb

Instance Method Summary collapse

Instance Method Details

#hostnameObject



16
17
18
# File 'lib/scout_apm/platform_integrations/heroku.rb', line 16

def hostname
  ENV['DYNO']
end

#log_to_stdout?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/scout_apm/platform_integrations/heroku.rb', line 12

def log_to_stdout?
  true
end

#nameObject



8
9
10
# File 'lib/scout_apm/platform_integrations/heroku.rb', line 8

def name
  "Heroku"
end

#present?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/scout_apm/platform_integrations/heroku.rb', line 4

def present?
  !! ENV['DYNO']
end