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
0
votes
1 answer

AWS XRay outgoing tracing for ASP.NET WebAPI

Environment ASP.NET WebAPI calling external client services. XRay incoming trace applied in Global.asax via AWSXRayASPNET.RegisterXRay(this, "CustomerAPI"); HttpClient instance hidden as private member in utility class, shared in a separate…
NitinSingh
  • 2,029
  • 1
  • 15
  • 33
0
votes
1 answer

How to set segment (top) level AWS Xray annotations in Python Lambda

I am successfully using AWS Xray within a Python v2 Lambda. The patch_all() is working well to automatically patch a portion of my libraries, i.e boto3, for Xray. I am unable to set high level annotations that persist across the lower level…
tavor999
  • 447
  • 6
  • 25
0
votes
1 answer

AWS x-ray not generating

I am trying to generate an x-ray using aws x-ray but it is not generating. Currently I am generating it for a lambda function in node.js async function geUser(event, context) { await someFunction(); const segment = new…
0
votes
1 answer

AWS X Ray node js trails not showing

I am using Lambda (Node 8.10) and working with AWS X Ray. I am calling an external ip address using promise. When I call, other traces are shown but cannot get custom segment. I am not using any frameworks just a pure node js. const AWSXRay =…
Rafee
  • 3,975
  • 8
  • 58
  • 88
0
votes
1 answer

Explicitly setting requestId across different Lambda functions

I'm attempting to build a serverless application using AWS APIGateway/Lambda function integration. I have the following setup: * Two APIGateway resources. Calling them service A and service B for now. * Two Lambda functions which act the the…
chrisrhyno2003
  • 3,906
  • 8
  • 53
  • 102
0
votes
1 answer

AWS X-Ray: how to propagate TraceId through Lambda --> SNS --> Lambda?

I have the following architecture: API Gateway --> Lambda 1 --> SNS 1 --> Lambda 2 --> SNS 2 --> Lambda 3 (an Scatter-Gather pattern). The TraceId is generated in API Gateway and propagated successfully to Lambda 1. My question is: how to pass that…
Franco
  • 479
  • 3
  • 11
0
votes
1 answer

Is there a way to instrument Web/Javascript/ReactJS client for AWS X-Ray?

We are trying to see if we can collect performance as seen by Web application users (single page application using ReactJS, performance numbers that includes the client-to-server network/load time along with the back-end/DB server performance). I…
0
votes
1 answer

Failed to get the current sub/segment from the context and addAnnotation of NULL issue in NodeJS

I am getting "Failed to get the current sub/segment from the context" with node lambda. AFter adding environment variable as suggested in another post, I am getting addAnnotation of NULL. Because of this my test are getting failed. Is there any…
Ramya Karuna
  • 61
  • 2
  • 5
0
votes
1 answer

Creating single service map in AWS X-Ray for lambda function and microservice

I have a AWS lambda function which has x-ray traces(subsegments) and from inside, there is an http call to a microservice(NodeJS- used fetch) which again has x-ray tracing implemented(subsegments). When I hit the service url of lambda function, two…
Ramya Karuna
  • 61
  • 2
  • 5
0
votes
1 answer

What are the best practises for setting up x-ray daemon?

What is the best strategy to run the x-ray daemon for ~ 100 microservices running as amazon ECS stacks? Do each microservice requires one x-ray daemon ? One x-ray daemon should be enough for all the micro-services? As being the new technology and…
forum.test17
  • 2,119
  • 6
  • 30
  • 62
0
votes
0 answers

AWS XRay service map from provided json

As Xray documentation states, service map is a visual representation of JSON service graph. Is there a way to generate a service map from a given JSON?
Anatolii Stepaniuk
  • 2,585
  • 1
  • 18
  • 24
0
votes
1 answer

AWS XRay latency filter

Doing anything wrong here? Response time should be in specified range, but results are different:
Anatolii Stepaniuk
  • 2,585
  • 1
  • 18
  • 24
0
votes
1 answer

How to get data from X-RAY from multiple region(N. Virginia and ireland) in ireland region. How could I do this? Any suggestion?

I have lambdas in N. Virginia and ireland region which put metadata on X-RAY and have another lambda in ireland region which fetch metadata from X-RAY. Now I want to fetch metadata from N. Virginia region in ireland region. How could I do this? Is…
ABCD
  • 730
  • 1
  • 13
  • 31
0
votes
1 answer

AWS XRay: Unable to write to /tmp/.aws-xray/initialized. Failed to signal SDK initialization

I am trying to write a Lambda function to store data in dyanamodb and try to integrate with AWS Xray. Below is the code for Lambda function. I am getting the error Unable to write to /tmp/.aws-xray/initialized. Failed to signal SDK …
joey
  • 345
  • 1
  • 2
  • 9
0
votes
1 answer

AWS X-RAY showing weird error while fetching trace summaries for same time

I have a lambda who fetch trace summaries from X-RAY for the given time duration on basis of the user. When I enter startTime 17:10:03.021Z & endTime 17:52:03.097Z X-RAY is giving me traces present but when I changes time startTime 17:10:03.021Z &…
ABCD
  • 730
  • 1
  • 13
  • 31