class ScoutApm::PlatformIntegrations::CloudFoundry

Public Instance Methods

hostname() click to toggle source

TODO: Is there a better way to get a hostname from Cloud Foundry?

# File lib/scout_apm/platform_integrations/cloud_foundry.rb, line 18
def hostname
  Socket.gethostname
end
log_to_stdout?() click to toggle source

TODO: Which is easier for users by defualt? STDOUT or our log/scout_apm.log file?

# File lib/scout_apm/platform_integrations/cloud_foundry.rb, line 13
def log_to_stdout?
  true
end
name() click to toggle source
# File lib/scout_apm/platform_integrations/cloud_foundry.rb, line 8
def name
  "Cloud Foundry"
end
present?() click to toggle source
# File lib/scout_apm/platform_integrations/cloud_foundry.rb, line 4
def present?
  !! ENV['VCAP_APPLICATION']
end