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

Performance monitoring an AWS IOT core serverless architecture

I am working on an AWS serverless architecture that can be roughly described as follows: 1 Things reporting to IOT Core 2 From IOT Core the messages arrive to Kinesis 3 Kinesis to different Lambda functions 4 Lambda send messages (or not) to be…
1
vote
2 answers

Have X-Ray trace ID, but searching using X-Ray console says "Data not found"

On of my API Gateway logs entries indicates a timeout and I'm investigating where it's coming from. The log entry has an X-Ray trace ID but when I use X-Ray to search for it, I get "Data not found". I'm expecting at least one node, the APIG , to…
totsubo
  • 323
  • 4
  • 17
1
vote
1 answer

How can I view xray trace in ELK?

I am using Elasticsearch + Kibana + Metricbeat for monitoring and logging serverless application in AWS. I have enabled xray for my lambda running in AWS but I don't see there is any solution to view this xray trace in Kibana. What is the best way…
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
1
vote
3 answers

How to enable CloudWatch logging and X-ray for stepfunction in Terraform?

In AWS console, we can easily enable cloudwatch logging and X-ray for a step function statemachine, but I want my resource fully managed by Terraform, from this…
1
vote
1 answer

Request info in X-Ray trace from ALB

In AWS X-Ray if request starts with API Gateway - it populates trace with request info, such as URL or method. But if request initiates with ALB - only trace ID is supplied. Is there a way supply information similar to API Gateway?
1
vote
3 answers

How can I attach xray on typeorm in nodejs?

I am using https://typeorm.io/#/ in my nodejs project to connect to Postgresql. My app is running in AWS lambda and I'd like to enable xray for performance analysis. With xray sdk, I can do something like below code: var AWSXRay =…
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
1
vote
1 answer

How do I instrument additional functions in X-Ray with AWS Lambda function in Python?

I am trying to instrument an AWS Lambda function using X Ray. According to the official documentation of the aws_xray_sdk, I can't instrument anything outside the handler function. If I have the following sample code: from aws_xray_sdk.core import…
ramdesh
  • 650
  • 6
  • 22
1
vote
1 answer

Xray multi threading - Failed to end subsegment: subsegment cannot be found

I have an issue using Xray in a multithreaded environment with my REST API. I'm using the Xray Auto instrumentation agent for Java, and Spring boot. I've tried to follow the example found…
Daniel
  • 2,050
  • 7
  • 31
  • 55
1
vote
1 answer

aws-xray-sdk-python: Manually created segments are not displayed on AWS service map

I'm running my applications in a Docker ECS container (and thus the XRAY daemon is also running in a Docker container). I see my traces resulting from automated patched libraries (requests, sqlite3, httplib, botocore) and instrumented middleware…
silvakle
  • 115
  • 10
1
vote
1 answer

where to use aws x-ray patch all (python)

As documented, we can use patch_all to automatically create subsegments for aws services such as s3 and sqs. My question is where should I call this method. For example, let's assume there are 2 files which use boto3 and we want to patch. Because…
MyNick
  • 536
  • 1
  • 9
  • 25
1
vote
3 answers

How can I create customized trace id for xray?

I am building lambdas and using xray to check performance. My lambda will write to other dynamodb tables where trigger another lambda via streaming. The other lambda will carry that event and publish the data in RDS as well as external…
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
1
vote
1 answer

mvn build failing with xray

I am trying  funqy-amazon-lambda-http-quickstart at https://github.com/quarkusio/quarkus-quickstarts. I wanted to try XRay support and added io.quarkus
Jaydeep Patel
  • 2,394
  • 1
  • 21
  • 27
1
vote
1 answer

AWS X-Ray does not contain filter

I have the following X-ray filter: http.url CONTAINS "blah" It works great, except for the fact that I want something like: http.url !CONTAINS "blah" The question is how do I write an X ray filter/query so the URL does not contain a specific…
Brian
  • 556
  • 6
  • 26
1
vote
2 answers

AWS ECS xray sidecar "write: connection refused"

I am trying to start an ECS task with 2 containers, app and xray as sidecar. Following several blog posts and examples, I am still facing the error that no XRAY segments are visible in the Xray AWS console. And obviously the error is, that the…
GeKo
  • 141
  • 2
  • 11
1
vote
1 answer

API Gateway mapping template: $context.xrayTraceId is always empty

My stage has xray tracking enabled and I can see X-Amzn-Trace-Id is coming back from API gateway, moreover, I'm able to see the whole trace from APIG to Dynamo db. I would like to save this trace id to the table, so we can debug it more efficiently,…
nelly2k
  • 781
  • 1
  • 10
  • 28