Questions tagged [aws-xray]

AWS X-Ray allows developers to analyze the behavior of distributed applications by providing request tracing, exception collection, and profiling capabilities.

Documentation: https://aws.amazon.com/documentation/xray/

371 questions
1
vote
1 answer

How to enable AWS XRAY tracing for pymysql lambda

I am having a lambda function created in python. It inserts the data in MySQL using pymysql library. How can I enable AWS xray tracing for database operation?
Knot
  • 141
  • 13
1
vote
1 answer

AWS XRay - Failed to begin subsegment named 'AWSSecurityTokenService': segment cannot be found, during a request

I am trying to set up AWS XRay in a new(ish) Spring Boot application. I would like to test it locally before putting it into production. Locally this application runs with a dynamoDB client and STS to assume the role to call dynamo. The service…
1
vote
1 answer

Aws x-ray doesn't work for a sidecar container on fargate

I tried to set up aws x-ray on fargatge. But there is no errors and metrics do not appear in x-ray. Here is part of my task definition for fargate. I tried to debug potential issue, but on local machine using docker compose and x-ray daemon it…
nimate
  • 165
  • 2
  • 7
1
vote
2 answers

Disable AWS X-Ray in java application

I am looking for option to disable the AWS X-Ray in my java application so it wont create/record any segment. Java application is built in spring boot and its deployed on EC2 Like global recorder to disable sampling and instrument all incoming…
Nilesh Patil
  • 31
  • 1
  • 4
1
vote
1 answer

AWS XRay Tracing - Not Displaying Trace Map or SubSegments

I am trying to trace a serverless express Lambda function using AWSXRay. I have tried several different approaches to this and nothing seems to work. If I leave out the aws-xray-sdk-express middleware, I will see all my segments in the Timeline, and…
jeeves
  • 1,871
  • 9
  • 25
1
vote
1 answer

AWS X-Ray not working in Edge Lambda and Authorizer lambda

I tried enabling AWS X-Ray in Lambda@Edge, Origin Response handler I see that X-Ray does not trace it. Can someone tell me if that will work? Let me know if someone faced the same and what are the workarounds. Edit: Interesting read…
PCB
  • 638
  • 1
  • 11
  • 22
1
vote
2 answers

Tracking of Common Services in AWS using X-ray

I have multiple Lambdas and each of them either invoke another lambda or a rest API or a dynamoDB or S3 etc . Example : HotelBooking FlighBooking These invoke the common services like BookingService InvoiceService I need to track which…
PCB
  • 638
  • 1
  • 11
  • 22
1
vote
1 answer

Passing Xray context around in a Lambda

We have an application with around 25 Lambdas where we want to implement Xray tracing for all (or most) AWS SDK client calls. We have done a PoC implementation as described here, and it's working as expected. What I'm wondering is how we can best…
Daniel
  • 2,050
  • 7
  • 31
  • 55
1
vote
1 answer

What is XRay daemon?

When we are running a serverless app, say a beanstalk, a danymoDB and a SNS, there will be three XRay daemons in each JVM, right? If so,how could XRay trace a request from the beginning to the end? The trace ID will go with http request header…
icespace
  • 481
  • 9
  • 20
1
vote
1 answer

AWS Xray SDK : I need to extract Service Graph using boto3, observing "TypeError: 'module' object is not callable" error

I am new to AWS (coding as well) and we are using API gateways. As part of our validations, I need extract trace using AWS X-ray service. I have written below code but observing TypeError: 'module' object is not callable error. Kindly help me on…
Madhu
  • 65
  • 1
  • 1
  • 9
1
vote
1 answer

AWS XRay fails when being used in Typescript with Hapi

I have been trying to incorporate AWS Xray in an API written in Typescript with HAPI framework. I have been using Hapi Xray plugin to append segment property to be appended on Request Object. On doing this, I am able to see the xray traces being…
1
vote
2 answers

Could not initialize class com.amazonaws.xray.AWSXRay

I'm trying out the AWS X-Ray into a simple Spring Boot app. I have the right credentials in ~/.aws/credentials and have included the necessary dependencies: plugins { id 'org.springframework.boot' version '2.2.0.RELEASE' id…
user103220
  • 35
  • 1
  • 9
1
vote
3 answers

Tracing SQL Queries with X-Ray and Spring Boot 2

The current X-Ray SQL tracing interceptor uses Tomcat JDBC Pool but Spring Boot 2 uses HikariCP as default pool, is it possible to configure the jdbc tracing in HikariCP instead? Here (https://forums.aws.amazon.com/thread.jspa?threadID=254847) they…
demetrio812
  • 290
  • 3
  • 15
1
vote
2 answers

AWS X-Ray shows absurdly long invoke time for P2P lambda call

So I have a lambda that makes a point-to-point call to another lambda. We have AWS X-Ray set up so we can monitor performance. However, X-Ray show this odd result where even though the invocation itself takes only a second, the "invoke" call from…
cidthecoatrack
  • 1,441
  • 2
  • 18
  • 32
1
vote
1 answer

How to Configure AWS X-Ray for node.js app not using Express middleware?

I am trying to integrate AWS X-Ray with my nodejs api hosted on AWS Lambda(serverless). X-Ray works as intended for api using express middleware and able to see traces on AWS Console. For async functions without express framework, I am facing issues…