Module: XRay::Plugins::EC2
- Includes:
- Logging
- Defined in:
- lib/aws-xray-sdk/plugins/ec2.rb
Overview
A plugin that gets the EC2 instance_id, availabiity_zone, instance_type, and ami_id if running on an EC2 instance.
Constant Summary collapse
- ORIGIN =
'AWS::EC2::Instance'.freeze
- METADATA_BASE_URL =
'http://169.254.169.254/latest'.freeze
Class Method Summary collapse
Methods included from Logging
Class Method Details
.aws ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/aws-xray-sdk/plugins/ec2.rb', line 16 def self.aws @@aws = {} token = get_token = (token) @@aws = { ec2: } end |