From b252f35f95942c4355f0850dd128ab3a4cd59059 Mon Sep 17 00:00:00 2001 From: Etienne Chabert Date: Mon, 11 Sep 2023 13:10:26 +0200 Subject: [PATCH] Add hint for fargate 1.4 in case of errors --- lib/aws-xray-sdk/plugins/ecs.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/aws-xray-sdk/plugins/ecs.rb b/lib/aws-xray-sdk/plugins/ecs.rb index f78cb5e..bfe25fe 100644 --- a/lib/aws-xray-sdk/plugins/ecs.rb +++ b/lib/aws-xray-sdk/plugins/ecs.rb @@ -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 @@ -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