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

How can I pass xray trace over eventbridge?

I am using AWS lambda and eventbridge. One lambdaA sends event to eventbridge and another lambdaB receives this event and save it to database. What I'd like to do is to add xray trace data on this flow. I'd like to see the flow in the service map on…
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
6
votes
1 answer

AWS Xray with Java SQS JMS connector

We've recently begun adding in AWS Xray into our Spring project and had success utilizing the AWSXRayServletFilter for creating Segments to cover our client requests. Now we've also begun adding in the AWS SDK Instrumentor to trace our usages of…
dvisco
  • 461
  • 5
  • 12
5
votes
0 answers

How do you trace microservices with the AWS X-Ray SDK for Go?

My goal is to see in Xray service Lens A -> B -> A, but that's not the case: I've instrumented my handlers with xray.Handler and I'm fetching the B endpoint with xray context too like so ctxhttp.Get(r.Context(), xray.Client(nil), endpoint), still…
hendry
  • 9,725
  • 18
  • 81
  • 139
5
votes
0 answers

How to integrate aws-xray in fast api?

I am working with fast api. I would like to integrate x-ray but could not find any example on line, I can see there is a feature request but I also found this github answer where it states You can now instruments your FastAPI application using Open…
helpper
  • 2,058
  • 4
  • 13
  • 32
5
votes
1 answer

AWS X-Ray not initializing a new segment

I'm using OpenTelemetry with AWS X-Ray to trace E2E messaging between: Producer (JVM) -> Kafka Broker -> Consumers (Multiple, Python-based) Generated traces are then send to AWS OTEL Collector which forwards them to AWS X-Ray. However when I see…
Yayotrón
  • 1,759
  • 16
  • 27
5
votes
0 answers

How to filter xray traces by segment or subsegment

I am new to using xray and have instrumented my lambdas with a number of segments/subsegments to start tracing. This is helpful in analyzing a single trace, but I need better filtering of traces. I've read about how to use filter expressions in the…
mojoken
  • 1,256
  • 1
  • 15
  • 27
5
votes
2 answers

How to chain lambda function calls in X-Ray service map

I would like to chain two lambda function calls in the xray service map to visualize the connections between the function calls and get the overall execution time. My lambda functions are being called by step functions. When enabling active…
5
votes
1 answer

How to create a health check for XRAY Daemon Task

I'm trying to implement XRAY for our AWS ECS spring boot application. To do so I'm creating a new task with a separate docker file just for the docker daemon as suggested by the AWS documentation and suggested when I asked another question on the…
greenJavaDev
  • 997
  • 4
  • 12
  • 24
5
votes
1 answer

How much latency does X-ray add to AWS Lamda functions

I've gone over the documentation and cannot find a clear statement regarding how much latency is X-ray tracing supposed to add to Lambda function executions (and to other services as well). It should be minimal, but since it's sending out traces,…
Bachman
  • 701
  • 1
  • 6
  • 25
5
votes
2 answers

AWS X-Ray AmazonDynamoDBv2 segment not found

I have a web application (spring) which I want to instrument using AWS-XRay. I have added "AWSXRayServletFilter" in my web.xml, and the below snippet in my spring configuration class, as per documentation. static { AWSXRayRecorderBuilder builder…
Anil Bhaskaran
  • 495
  • 1
  • 8
  • 23
4
votes
2 answers

AWS Xray NodeJS: How to Fix "Missing AWS Lambda trace data for X-Ray" messages on startup

We have several NodeJS Lambdas with AWS X-Ray with the following general setup. process.env.AWS_XRAY_DEBUG_MODE = 'TRUE' process.env.AWS_XRAY_TRACING_NAME = 'api-extensions' console.log('Enabled XRAY debug mode') import AWSXRay from…
Whyhankee
  • 822
  • 10
  • 14
4
votes
3 answers

How do I set up AWS X-Ray SQL Instrumentation for Hikari based projects without using Tomcat JDBC?

The AWS Documentation for AWS X-Ray currently doesn't give any solutions for Java projects that do not use Tomcat JDBC. In order to instrument database queries using spring-boot-data-jpa, you need to also include Tomcat JDBC as a dependency, and…
J Hamm
  • 300
  • 2
  • 10
4
votes
1 answer

What to prefer AWS XRAY or CloudTrail for analysing user request travelling through Amazon API Gateway

I am preparing for AWS exam and I found some documentation about AWS CloudTrail and AWS X-RAY where it creates confusion on their usage requirement. I have came across following question where requirement was to trace and analyse the user request as…
Gunjan Shah
  • 5,088
  • 16
  • 53
  • 72
4
votes
3 answers

enabling aws-xray serverless.yml

I am trying to enable aws-xray for all lambda functions the following way: serverless.yml provider: tracing: lambda: true apiGateway: true name: aws runtime: nodejs8.10 stage: ${opt:stage, 'dev'} region: ${opt:region,…
Sal B
  • 93
  • 1
  • 8
4
votes
1 answer

aws-xray captureAWS annotations

I've begun using AWSXRay in order to get more insight into why performance is not ideal in my lambda function. This lambda function runs a gql service meaning it has lots of outbound requests to other lambda functions as well as dynamodb for…
Ulad Kasach
  • 11,558
  • 11
  • 61
  • 87
1
2
3
24 25