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

Received SubsegmentNotFoundException when try to use AWS X-Ray with java spring @Scheduled

I am implementing AWS X-Ray in my Java Spring project, and generally speaking, it is working correctly. Log requests and I can see the tracking on the AWS console. However, in a specific case, it is generating an exception when starting the…
3
votes
3 answers

How can I link log to xray?

I am running application on lambda and enabled auto xray. I can see xray data on the console and logs on cloudwatch. But I am looking for a way to link my log to xray data. I'd like to see the logs relate to trace data when I click each trace on…
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
3
votes
1 answer

What is the different between AWS::LAMBDA and AWS::LAMBDA::FUNCTION in xray?

I enable labmda xray on AWS and I am able to see the service map on xray console. But what I don't understand is the different between AWS::LAMBDA and AWS::LAMBDA::FUNCTION. If you look at below screenshot, you will see that my lambda…
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
3
votes
1 answer

AWS X-ray import with Typescript

I currently use postgresql-node in my lambda with import { Client } from 'pg' I want to instrument the Postgresql lib with AWS X-ray. The Nodejs example has this line: var AWSXRay = require('aws-xray-sdk'); var pg =…
vertti
  • 7,539
  • 4
  • 51
  • 81
3
votes
1 answer

AWS X-Ray trace segments are missing or not connected

I have code that creates a segment when a queue is being read. In the first function (within the same lambda) I have this: import * as AWSXRay from 'aws-xray-sdk'; // (using TypeScrpt) AWSXRay.enableManualMode(); var segment1 = new…
James Wilkins
  • 6,836
  • 3
  • 48
  • 73
3
votes
1 answer

aws xray sampling not working on http status code

How can we sample the data in aws xray on the basis of http status code, e.g I would to sample 40% of records with status code 200 and 100% of records with status code 500. Below is the sample json but I cannot sample the data const rules = { …
JN_newbie
  • 5,492
  • 14
  • 59
  • 97
3
votes
1 answer

Instrumenting Python 3.6 Lambda Function with X-Ray Causes Error

I have a very simple Lambda function that I invoke with an IOT Button that runs an ECS Task, very light weight stuff. I had been interested in adding Tracing and found the "One-Click" tracing you get from Lambda does not give you a whole lot out of…
3
votes
1 answer

XRay Traces not showing up in AWS Console

I've followed the AWS documentation on setting up XRAY for our Spring Boot application deployed on AWS ECS, but I'm not able to see the traces for my services in the AWS Console. Here's a high level view of the changes I've implemented: Added Role…
greenJavaDev
  • 997
  • 4
  • 12
  • 24
3
votes
1 answer

AWS Xray: Cannot create segments inside Lambda function and segment not found

A really strange behaviour I was experiencing, I am following online documentation and while creating a segment to work with my subsegment, the lambda executes in following…
NoorJafri
  • 1,787
  • 16
  • 27
3
votes
2 answers

Aws X-ray daemon monitor throws invalid segment Errorcode

I am trying to run this demo sample by AWS :- https://github.com/awslabs/lambda-refarch-mapreduce When run the program on my local then I am receiving this message on my AWS X-RAY daemon monitor 2018-06-28T16:39:06+05:30 [Error] Unprocessed segment:…
bhaskar das
  • 175
  • 4
  • 20
3
votes
1 answer

Can I use AWS-XRay to trace MySQL queries without Tomcat or Spring?

I'm running some SQL queries in an AWS Lambda, and was hoping to utilize AWS-XRay's tracing capabilities to get some more detailed information on these calls. This documentation shows examples of configuration with Spring and Tomcat, but neither of…
kibowki
  • 4,206
  • 16
  • 48
  • 74
3
votes
1 answer

AWS X-Ray shows duplicate nodes in the Service Map

I have just started working with AWS Xray and I am using it with AWS Lambda. The thing is I notice duplication of AWS Xray Nodes on service map. For example SNS is categorised as AWS::SNS and Remote call. Where as they are just both the same thing,…
NoorJafri
  • 1,787
  • 16
  • 27
3
votes
1 answer

Instrumentation of Mysql Jpa Repository in Spring using AWS X-Ray not working

I am trying to instrument Mysql calls using AWS X-Ray in my spring application. http and s3 instrumentation is working fine. I have set the property: spring.datasource.jdbc-interceptors=com.amazonaws.xray.sql.mysql.TracingInterceptor I have included…
kishor borate
  • 158
  • 1
  • 11
3
votes
0 answers

Getting SubsegmentNotFoundException exception on AWS Xray

I'm getting this error when I try make post request to same URL with Postman. By the way artifact was deployed successfully. Same codes are working on my teammates' develoment environment. message…
Arif Acar
  • 1,461
  • 2
  • 19
  • 33
3
votes
1 answer

Enable X-Ray Active tracing of a lambda function

I'm trying to add active tracing to 2 lambda functions, one in Node and one in Python. My service role has all the XRayWriteAccess permissions, I click the Advanced > Enable active tracing , see the info on permissions, click save, and see : A…
xShirase
  • 11,975
  • 4
  • 53
  • 85