Skip to content

Commit

Permalink
Add hint for fargate 1.4 in case of errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Etienne Chabert committed Sep 11, 2023
1 parent 730ccb7 commit b252f35
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/aws-xray-sdk/plugins/ecs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

module XRay
module Plugins
# Due to lack of ECS container metadata service, the only host information
# available is the host name.
module ECS
include Logging

Expand Down Expand Up @@ -39,7 +37,7 @@ def self.get_metadata()
metadata_json = do_request(req)
return parse_metadata(metadata_json)
rescue StandardError => e
Logging.logger.warn %(cannot get the ecs instance metadata due to: #{e.message}.)
Logging.logger.warn %(cannot get the ecs instance metadata due to: #{e.message}. Make sure you are using Fargate platform version >=1.4.0)
{ ecs: {}, cloudwatch_logs: {} }
end
end
Expand Down

0 comments on commit b252f35

Please sign in to comment.