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

How to avoid "TypeError: argument 2 must be a connection, cursor or None" with SQLAlchemy/psycopg2 when creating engine from engine_from_config()

After patching psycopg2 with the latest aws-xray-python-sdk (v2.2.0), my alembic script started to throw exception : TypeError: argument 2 must be a connection, cursor or None. The `TypeError: argument 2 must be a connection, cursor or None` in…
ThatChrisGuy
  • 559
  • 2
  • 7
  • 23
2
votes
1 answer

AOP with Spring and the X-Ray SDK for Java

I am trying to trace a request in spring boot application. I am running AWS X-Ray Daemon locally which is listing on UDP port 2000 but it is not sending the trace data to the AWS X-Ray. My application is a standalone application which does some…
2
votes
1 answer

aws x-ray tracing breaks on outgoing requests in Node.js

Hey I'm trying to trace outgoing requests from an express app, but I can't get it to work. When I dont use the AWSXRAY.captureHttpsGlobal function everything works fine with incoming requests and I can see my application in "Service Map" and my…
user3621898
  • 589
  • 5
  • 24
2
votes
1 answer

How can use the Java Kinesis Client Library together with X-Ray?

When adding aws-xray-recorder-sdk-aws-sdk-instrumentor the KCL raises a SegmentNotFoundException. As I understand this is because the KCL is starting their own threads so my calls to AWSXRay.beginSegment() do not apply to the instrumented requests…
RubenLaguna
  • 21,435
  • 13
  • 113
  • 151
2
votes
1 answer

Automatically instrumenting Java application using AWS X-Ray

I am trying to achieve automatic instrumentation of all calls made by AWS SDKs for Java using X-Ray. The X-Ray SDK for Java automatically instruments all AWS SDK clients when you include the AWS SDK Instrumentor submodule in your build…
Jonatan
  • 720
  • 7
  • 12
2
votes
1 answer

How should AWSRequestInfo.json look like?

This file is mentioned only once on the internet. However, I need it for my x-ray monitoring library to refer to it from my appsettings file. How should it look like?
Daan
  • 2,478
  • 3
  • 36
  • 76
2
votes
1 answer

Spring rest template with aws x-ray

I would like to trace calls between spring micro services deployed as aws lambdas using aws x-ray. The set up is as follows: Microservice A with api endpoint deployed as aws lambda Microservice B with api endpoint deployed as aws lambda calling…
user152468
  • 3,202
  • 6
  • 27
  • 57
2
votes
1 answer

AWS X-Ray PHP instrumentation

I'm looking for AWS X-Ray instrumentation of a PHP application. I may be wrong, but the AWS PHP Sdk is only about getting trace data back from X-Ray. So, It seems that I need to send Json fragments to a X-Ray daemon. I'm wondering why PHP…
anon
2
votes
1 answer

Enabling X-Ray support in AWS Lambda

I want to get some X-Ray traces of my Lambda function. From reading the documentation it seems I can just enable active tracing in the configuration and it should record it automatically without any new code deploys correct? Only if I want custom…
MikanPotatos
  • 143
  • 1
  • 2
  • 9
1
vote
1 answer

subsegment creation in golang and xray

I am trying to create subsegments in golang and lambda but it not works for me: This is my code: package main import ( "context" "fmt" "github.com/aws/aws-lambda-go/lambda" "github.com/aws/aws-xray-sdk-go/xray" ) func handler(ctx…
user2291499
  • 21
  • 1
  • 5
1
vote
1 answer

X-Ray Traces - Segment Timeline Duration and How to Interpret Results

My IIS server has always experiencing strange, intermittent 20-30s lag spikes on fairly standard API calls in my C# app. I'll add the server details below in case anyone is interested In order to see if my app was at fault, I thought it wise to add…
NullHypothesis
  • 4,286
  • 6
  • 37
  • 79
1
vote
1 answer

Enable XRAY on a lambda function using AWS Amplify

What is the recommended way to do enable XRAY on a Lambda function using AWS Amplify? Edit the CloudFormation that Amplify generates? Use CDK somehow to edit the function after it's been deployed? How? Some other way?
1
vote
0 answers

alternative for mongoose-xray for mongoose version 6.x

I have been using mongoose-xray as a plugin to mongoose 5.x to log requests and subsegments through AWSXray. Nevertheless I now want to update mongodb from version 4.4 to version 5.x which implies to update mongoose to version 6.x. mongoose-xray is…
Sophie Jacquin
  • 194
  • 2
  • 10
1
vote
1 answer

xray subsegments sdk golang

I am creating segments and subsegments in golang to send to XRay, but I am getting a lot of problems with it. FIrst I don't have continuity with the trace map balls. Second the subsegments don't appear: third i am asigning the segment to xRay group…
1
vote
1 answer

Error using the AWS X-Ray agent in a Spring Boot Application on ECS Fargate

I'm having difficulty figuring out how to properly set up the AWS X-Ray Agent for a dockerized "Spring Boot" application. I'm deploying this application on AWS ECS (Fargate) and together with the main container with the application there is the…
HK15
  • 47
  • 9