module XRay::Plugins::ECS

Due to lack of ECS container metadata service, the only host information available is the host name.

Constants

ORIGIN

Public Class Methods

aws() click to toggle source
# File lib/aws-xray-sdk/plugins/ecs.rb, line 13
def self.aws
  @@aws ||= begin
    { ecs: { container: Socket.gethostname } }
  rescue StandardError => e
    @@aws = {}
    Logging.logger.warn %(cannot get the ecs container hostname due to: #{e.message}.)
  end
end