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
2
votes
0 answers

OpenTelemetry AWS XRay Exporter

Noob question here. I'm sending x-ray data to an Opentelemetry Collector so the receiver is awsxray. But when it is exported by the awsxray exporter, it does not show a complete trace. Is there something missing in what I'm doing? It should be…
2
votes
0 answers

go xray sdk in lambda to capture calls to redis

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.
2
votes
1 answer

AWS XRay with AWS SDK v3 for NodeJS

Is there any way how to use XRay instrumentation for AWS NodeJS SDK v3? In SDK v2, AWSXray was able to capture any client and instrument it for tracing into XRay. I have been trying the same thing with v3 with following snippet const …
Martin Macak
  • 3,507
  • 2
  • 30
  • 54
2
votes
2 answers

AWS X-Ray Tracing from Lambda to SNS to SQS to another Lambda (Python3, boto3)

I have a question similar to this one. I want to generate a service map that allows me to view the orchestration of my serverless architecture, especially across SNS and SQS between 2 lambdas. The difference being that I am using Amazon's SQS in…
Ryan T.
  • 197
  • 1
  • 15
2
votes
0 answers

AWS X-Ray - Lambda invoked by another lambda does not use parent traceID

I want to use AWS X-Ray with Apollo Federation. The Apollo Gateway is hosted on AWS Lambda and it calls subservices which are also hosted on AWS Lambda. I activated tracing for every lambda (gateway & subservices) in serverless.yml: tracing: { …
Nicoowr
  • 770
  • 1
  • 10
  • 29
2
votes
0 answers

How to create independent subsegments in java?

In our application, we are currently creating subsegments for our asynchronous downstream calls, but from looking at the AWS X-Ray documentation it seems that they are embedded with the parent segment that is created for the main thread. Every once…
2
votes
1 answer

What is the complexity cost of adding X-Ray instrumentation in AWS?

I've started using AWS Synthetics Canaries with the Active Tracing option on, and correct me if I'm wrong, it's not very useful without nodejs code instrumentation like if I was making AWS SDK calls: const AWSXRay = require('aws-xray-sdk'); const…
hendry
  • 9,725
  • 18
  • 81
  • 139
2
votes
0 answers

How to initialize AWS XRay for all lambdas in a NodeJS serverless project

As I understand, XRay has to be initialized before every AWS clients, and http clients if I want to also trace outgoing http requests. This is the code for XRay initialization. import aws from 'aws-sdk' import AWSXRay from 'aws-xray-sdk' import http…
Hung Tran
  • 1,595
  • 2
  • 17
  • 17
2
votes
2 answers

How do I invoke a SAM Lambda function locally with X-Ray statements?

I'm receiving the following error when invoking an AWS SAM Lambda function locally: Missing AWS Lambda trace data for X-Ray. Ensure Active Tracing is enabled and no subsegments are created outside the function handler. Below you can see my…
Sean Lindo
  • 25
  • 4
2
votes
1 answer

How to trace a lambda invokes a lambda with AWS X-Ray?

I have an AWS Lambda function which is triggered by an API Gateway event. The API Gateway is configured to use X-Ray. As the Lambda tracing configuration defaults to PassTrough it is also shown in X-Ray (service map, etc.). The invoked Lambda uses…
thopaw
  • 3,796
  • 2
  • 17
  • 24
2
votes
1 answer

How to trace incoming requests with AWS X-Ray on Spring Boot WebFlux?

I have multiple microservices running on AWS ECS and I want to try out AWS X-Ray. Following this developer guide I added a WebConfig.java file with a tracing filter. Added lines to build.gradle: implementation…
2
votes
1 answer

How can I search `subsegment` by name in AWS xray console?

I am running lambda in AWS and enabled xray. Below is a code I use to create a subsegment inside lambda. I can see this subsegment when I click a trace. How can I search all traces with this subsegment by name in xray console? await…
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
2
votes
1 answer

AWS X-Ray and StepFunctions -> can't get TraceHeader

I would like to get to get the trace of a specific execution of my Stepfunction. I'm 100% i enable X-Ray for my stepfunction and give it a full access permissions. I created a lambda with boto3 that describe_execution of a given executionArn. The…
Theo Cerutti
  • 779
  • 1
  • 10
  • 33
2
votes
2 answers

How can I send xray trace id to API gateway on AWS?

I have a lambda which has xray enabled and it sends http request to API gateway which links to another lambda. I also enabled xray in the API gateway. But it doesn't trace the whole flow because the trace id in the first lambda is not used by API…
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
2
votes
1 answer

Is there a way to look at the full request object in AWS Xray

I have a nodejs project where I am receiving a lot of http 400 error. I have aws xray implemented. Where in xray can I see the full request object with the full http header information? Does aws xray show this?
kumar
  • 8,207
  • 20
  • 85
  • 176