Golang XRAY SDK with redis

0

Hi, I am trying to implement golang xray sdk in LAMBDA to capture calls going to redis (AWS managed). Is there a documentation that I can refer for that or any directions to do that. I am using go-redis to makes calls to redis server.

asked 2 years ago496 views
1 Answer
0

Greetings,

Kindly note that currently there is no official documentation for the implementation of the golang xray sdk in LAMBDA to capture calls going to redis. But I did find the relevant documentation for your use case where when your application makes calls to AWS services to store data, write to a queue, or send notifications, the X-Ray SDK for Go tracks the calls downstream in subsegments, but this reference is for Dynamodb ; and the other one is for the Serverless tracking.

[+] Tracing AWS SDK calls with the X-Ray SDK for Go : https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-go-awssdkclients.html

[+] AWS Lambda and AWS X-Ray : https://docs.aws.amazon.com/xray/latest/devguide/xray-services-lambda.html

[+] Tracing serverless application with AWS X-Ray : https://medium.com/nordcloud-engineering/tracing-serverless-application-with-aws-x-ray-2b5e1a9e9447

Going ahead, I was also able to find on the aws/aws-xray-sdk-node github link that 'the SDK uses CLS to bind context. Since the SDK doesn't officially support any Redis client, they may or may not work with CLS.' Please refer to the below mentioned links for more information on the same.

[+] Redis Support via Lambda : https://github.com/aws/aws-xray-sdk-node/issues/26

[+] https://github.com/aws/aws-xray-sdk-node/issues/28

Having said that, if need further deep diving or any possible solutions/workarounds for your concern, please reach out to the ElastiCache for Redis team through the AWS support and we will be glad to assist you.

[+] Getting started with AWS Support : https://docs.aws.amazon.com/awssupport/latest/user/getting-started.html

[+] Creating support cases and case management : https://docs.aws.amazon.com/awssupport/latest/user/case-management.html

Thank you! Have a great day ahead!

AWS
Omkar_S
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions