Class: ScoutApm::PlatformIntegrations::CloudFoundry
- Inherits:
-
Object
- Object
- ScoutApm::PlatformIntegrations::CloudFoundry
- Defined in:
- lib/scout_apm/platform_integrations/cloud_foundry.rb
Instance Method Summary collapse
-
#hostname ⇒ Object
TODO: Is there a better way to get a hostname from Cloud Foundry?.
-
#log_to_stdout? ⇒ Boolean
TODO: Which is easier for users by defualt? STDOUT or our log/scout_apm.log file?.
- #name ⇒ Object
- #present? ⇒ Boolean
Instance Method Details
#hostname ⇒ Object
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?
13 14 15 |
# File 'lib/scout_apm/platform_integrations/cloud_foundry.rb', line 13 def log_to_stdout? true end |
#name ⇒ Object
8 9 10 |
# File 'lib/scout_apm/platform_integrations/cloud_foundry.rb', line 8 def name "Cloud Foundry" end |
#present? ⇒ Boolean
4 5 6 |
# File 'lib/scout_apm/platform_integrations/cloud_foundry.rb', line 4 def present? !! ENV['VCAP_APPLICATION'] end |