Class: ScoutApm::PlatformIntegrations::CloudFoundry

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

Instance Method Summary collapse

Instance Method Details

#hostnameObject

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



18
19
20
# File 'lib/scout_apm/platform_integrations/cloud_foundry.rb', line 18

def hostname
  Socket.gethostname
end

#log_to_stdout?Boolean

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

Returns:

  • (Boolean)


13
14
15
# File 'lib/scout_apm/platform_integrations/cloud_foundry.rb', line 13

def log_to_stdout?
  true
end

#nameObject



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

def name
  "Cloud Foundry"
end

#present?Boolean

Returns:

  • (Boolean)


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

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