aws / aws-xray-sdk-go

AWS X-Ray SDK for the Go programming language.
Apache License 2.0
275 stars 118 forks source link

instance metadata related error when running ecs sidecar container for xray #468

Open AbhilashVijayakumar opened 1 month ago

AbhilashVijayakumar commented 1 month ago

seeing this error when running go code with xray sdk version v1.8.1 as sidecar on ecs [Error] Get instance id metadata failed: RequestError: send request failed

cli has option LocalMode – Set to true to skip checking for EC2 instance metadata - need a way to disable this redundant error in cloudwatch when using aws-xray-sdk-go

wangzlei commented 1 month ago

Could you help me understand the Error log is from X-Ray daemon as a sidecar on ecs? Or is from application code instrumented by aws-xray-sdk-go?