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

Set jdbc interceptor using DriverManager class

I am using DriverManager.getConnection(url, prop) to get the connection. I am trying to inject the jdbc interceptors using properties like below but it is not working. Properties prop = new Properties(); ... prop.setProperty("jdbcInterceptors",…
Knot
  • 141
  • 13
2
votes
3 answers

Getting error, "Entity doesn't exist in AsyncLocal" when trying to call CreateBatchWrite method of DynamoDBContext object

I have created a DynamoDb table in my dev machine and I'm trying to insert couple of rows from my .NET Core application using the CreateBatchWrite method of DynamoDBContext object. I'm able to query the table from DynamoDB Javascript Shell window…
2
votes
1 answer

AWS Lambda with XRay Incorrect Response Code, No Stack Trace, No Function Tracing

I'm currently trying to set up XRay for a Lambda API. I'm unable to get a stack trace or statusCode that isn't 200. Im hitting an endpoint that simply throws a 500 error. The idea here would be that any errors in my code would bubble up to a final…
2
votes
2 answers

AWS X-Ray, Dotnet Core 3.1, X-Ray Daemon Locally

We are trying to get X-Ray trace data from a local dotnet core 3.1 app sending trace data to a local X-Ray Daemon. As a start, we've created a generic web api and added swagger (just to make testing easier). Startup.cs using System; using…
MG1093
  • 73
  • 6
2
votes
2 answers

Tracing Sequelize with AWS X-ray in Nodejs/Postgres

I am using Serverless NodeJs with PostgreSQL and want to start tracing Sequelize queries with AWS X-ray. The documentation only shows how we can trace the pg clients but doesn't state how we can do the same for Sequelize ORM. Can anyone help with…
2
votes
1 answer

How to check if AWS X-Ray has been configured

We have an AWS Lambda running in Go, and upon initialisation runs the following to initialise AWS X-Ray err := xray.Configure(xray.Config{ LogLevel: "info", ServiceVersion: "1.2.3", }) In a seperate repository, we have a utils repository…
lewtur
  • 603
  • 1
  • 6
  • 16
2
votes
0 answers

X-ray tracing not working for step function called from another lambda

My Workflow is like : Lambda1 --> Step Machine (many different lambdas inside it) --> SQS (result of step machine is sent to SQS) --> Lambda (That is SQS triggered). xray is not working in this case. It shows the broken trace, trace Id of lamda1…
2
votes
1 answer

How to use X-Ray with SNS to get one big chain instead of many small?

I have a chain (just to keep things simpler): Lambda1 (publisher) SNS Lambda2 (subscriber) Both lambdas have X-Ray enabled and they appear at X-Ray console as two separate chains containing "clients=>AWS::Lambda=>AWS::Lambda::Function" each. How…
Putnik
  • 5,925
  • 7
  • 38
  • 58
2
votes
2 answers

how to configure x-ray traces for amazon-neptune?

I've an api going thru Lambda (node.js) to Aws Neptune. X-ray shows the traces from api-gateway --> lambda and stops here. Has anyone enabled deeper tracing all the way into Neptune ? Thanks !
Sahas
  • 3,046
  • 6
  • 32
  • 53
2
votes
2 answers

How to trace requests in AWS API gateway efficiently

For tracing of AWS apigateway requests, I am using x-ray . One of the requirements is to trace every request (incoming in gateway, authorizer execution, backend endpoint) and store it in a defined log format. Is there any efficient way to trace…
2
votes
3 answers

Integrating SpringCloudSleuth With AWS X-Ray

I've an ECS cluster running Fargate instances with Springboot apps & want to enable tracing with least number of code changes. There're the two approaches I started looking at: Use AWS-Xray : Steps -> Add dependencies, add aWSXRayServletFilter, run…
2
votes
1 answer

X-Amzn-Trace-Id not present in response header when response status is other than 200

I am using X-Ray tracing in API Gateway and Lambda authorizer. Inside the authorizer, I am calling two HTTP URLs. When I give invalid URL for one http call, I am throwing callback ("unauthorized") from lambda authorizer. Hence, the response status…
Ramya Karuna
  • 61
  • 2
  • 5
2
votes
1 answer

Mark AWS lambda parent segment as fault or error

Is it possible to mark the parent segment of an aws-lambda function as fault or error? Aws documentation states that you can't add annotations and metadata to the parent segment but I can't seem to find if it is possible to mark the parent segment…
Xiduzo
  • 897
  • 8
  • 24
2
votes
1 answer

How to Instrument a React Web App Client using aws xray

I'm trying to instrument my React Web App using https://docs.aws.amazon.com/xray/latest/devguide/scorekeep-client.html I am using axios interceptor,But unable to instrument any further ideas?
user007
  • 21
  • 1
  • 2
2
votes
1 answer

AWS XRay regex servicename filter

I have services for different git branches. And would like to have Service Map drawn for each branch separately. For this I need to create a Group for each branch (provide some filtering condition that will match only traces corresponding to the…
Anatolii Stepaniuk
  • 2,585
  • 1
  • 18
  • 24