Module: XRay::Plugins::ElasticBeanstalk
- Includes:
- Logging
- Defined in:
- lib/aws-xray-sdk/plugins/elastic_beanstalk.rb
Overview
A plugin that records information about the elastic beanstalk environment hosting your application.
Constant Summary collapse
- CONF_PATH =
'/var/elasticbeanstalk/xray/environment.conf'.freeze
- ORIGIN =
'AWS::ElasticBeanstalk::Environment'.freeze
Class Method Summary collapse
Methods included from Logging
Class Method Details
.aws ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/aws-xray-sdk/plugins/elastic_beanstalk.rb', line 14 def self.aws @@aws ||= begin file = File.open(CONF_PATH) { elastic_beanstalk: Oj.load(file) } rescue StandardError => e @@aws = {} Logging.logger.warn %(can not get the environment config due to: #{e.}.) end end |