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

Can I run aws-xray on the same ECS container?

I don't want to have to deploy a whole other ECS service just to enable X-Ray. I'm hoping I can run X-Ray on the same docker container as my app, I would have thought that was the preferred way of running it. I know there might be some data loss if…
Derrops
  • 7,651
  • 5
  • 30
  • 60
0
votes
1 answer

AWS XRay SDK fails to read environment variables within a docker container

AWS XRay is a tracing service that allows you to trace requests in distributed systems, and even profile your services. Without going too much in to how XRay works, it basically monitors your service and sends data about each request to the service…
J Hamm
  • 300
  • 2
  • 10
0
votes
1 answer

AWS xray put trace segment command return error

I am trying to send segment doc manually using the CLI with example on this page: https://docs.aws.amazon.com/xray/latest/devguide/xray-api-sendingdata.html#xray-api-segments I created my own Trace ID and also start and end time. The command i used…
zeus1234
  • 453
  • 1
  • 5
  • 15
0
votes
1 answer

How we trace axios http requests with aws x-ray in koa application model

I am using the koa nodejs microservice for my backend. I have deployed everything in AWS environment. I am having all my logs in cloudwatch. When I was trying to use AWS X-Ray I am able to trace the request in individual services. But I am unable…
0
votes
1 answer

Is it worth it to xray incoming and outgoing requests of services you control?

I am currently adding aws xray support to a bunch of pieces of software that talk to each other. As far as I can tell, I can log incoming and outgoing traces for each. But is it worth it to log the outgoing traces of one piece, if I am logging the…
Guy
  • 3
  • 1
0
votes
2 answers

Not able to solve throttlingException in DynamoDB

I have a lambda function which does a transaction in DynamoDB similar to this. try { const reservationId = genId(); await transactionFn(); return { statusCode: 200, body: JSON.stringify({id:…
0
votes
1 answer

Manual AWS X-Ray traces not showing even though they are sent

I'm sending xray information from Python manually (no Django, Flask, etc.). I can see the xray information sent in the logs, for example: Jan 24 16:50:17 ip-172-16-7-143 python3[10700]: DEBUG:sending: {"format":"json","version":1} Jan 24 16:50:17…
Y L
  • 51
  • 1
  • 3
0
votes
1 answer

How can I create subsegments in AWSXRay?

Objective: show errors on AWS X-ray (all errors from lambda). 'use strict'; const AWSXRay = require('aws-xray-sdk-core'), AWS = AWSXRay.captureAWS(require('aws-sdk')), env = process.env; AWS.config.update({ region:…
Alvaro
  • 11
  • 3
0
votes
1 answer

AWS X Ray : inside for loop, system is not logging traces for each Trace ID as per the iteration. How to use AWS Async function here?

I am new to javascript and AWS SDK. How to get the expected output using async calls? We have a json object which has Trace IDs and related URL and etc. We need to loop through the list of Trace IDs ('id' in the below JSON) and get trace information…
Madhu
  • 65
  • 1
  • 1
  • 9
0
votes
1 answer

is it possible to monitor websocket communication using aws xray

I followed the Aws tutorial for setting up a node.js project just fine, however it seems like it can only trace http requests. var AWSXRay = require('aws-xray-sdk'); AWSXRay.captureHTTPsGlobal(require('http')); var http = require('http'); My…
highfive_
  • 77
  • 10
0
votes
0 answers

AWS X-Ray causes my app to throw a NullReferenceException from ASP.NET MVC code

In my ASP.NET MVC app running on EC2, I get the following exception when accessing my webapp: [NullReferenceException]: Object reference not set to an instance of an object. at …
rothkko
  • 113
  • 6
0
votes
1 answer

xray setup with buffalo

I'm trying to setup buffalo to send data to AWS X-Ray. I am new to buffalo/go and I'm completely lost in the docs... My actions.go package actions import ( "fmt" "github.com/gobuffalo/buffalo" "github.com/gobuffalo/envy" …
0
votes
1 answer

How to stub AWSXray.captureHTTPsGlobal using Sinon?

In my nodejs lambda function I use AWSXray to simply capture https calls made by the function. const AWSXRay = require("aws-xray-sdk-core"); AWSXRay.captureHTTPsGlobal(require("https")); In my unit tests how do I mock this? I have tried mocking…
sompnd
  • 561
  • 5
  • 7
0
votes
1 answer

How to configure AWS API Gateway so that User-Agent is available on X-Rray Analytics

I want to include the AWS API Gateway step in my X-Ray trace results. However when I enable X-Ray in my gateway on the production stage, the analytics tab in X-Ray only populates User-Agent as '-' Example "Gateway Logging Config" -…
0
votes
1 answer

AWS X-Ray with Node.JS Express and request

So I'm trying to implement X-Ray with my express app. I have my app.js file and inside reference a router file. my project structure: project/ routes/ index.js app.js app.js: var indexRouter = require("./routes/index") ... app.use("/",…
J.Ting
  • 95
  • 2
  • 10