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
25
votes
2 answers

How can we trace axios http requests with aws x-ray?

I'm looking for a method to trace axios http requests in my node.js based aws lambda function. I've found a method to trace HTTP request on aws official docs https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-nodejs-httpclients.html var…
Zeeshan Tariq
  • 604
  • 5
  • 10
22
votes
3 answers

Error:"Failed to get the current sub/segment from the context" when use AWS X-ray in Lambda with node.js

I am trying to use implement the AWS X-ray into my current project (using Node.js and Serverless framework). I am trying to wire the X-ray to one of my lambda function, I got the problem of Error: Failed to get the current sub/segment from the…
19
votes
0 answers

How to use AWS SDK C++ XRay in a AWS Lambda Layer implemented in C++ called by a Lambda function in Python?

My team implemented a pipeline with Computer Vision (OpenCV) and a DNN in Tensorflow and Keras using C++. This pipeline is an AWS Layer used by an AWS Lambda Function implemented in Python and this Layer is invoked through Boost library. As needed,…
14
votes
1 answer

What is my Lambda doing between startup and first line?

I have some Lambda functions written in C# running in the .NET Core 2.1 runtime in AWS. The cold start time on them is very large (>8s with 256MB, >4s with 512). However, I'm not sure if it is just cold start time or something else; I have other…
Tom Davies
  • 899
  • 6
  • 20
12
votes
2 answers

AWS XRAY SDK issue: Failed to begin subsegment named 'Amazon S3': segment cannot be found

We are adding XRAY to our Spring Boot application and I'm unable to resolve the following error: Failed to begin subsegment named 'Amazon S3': segment cannot be found. Here's the relevant parts of our code: pom.xml:
11
votes
3 answers

Serverless framework - Enabling X-Ray in serverless.yml

Is there a way to enable X-Ray from the serverless.yml for Lambda functions? I've added the X-Ray permissions in the file: iamRoleStatements: - Effect: "Allow" Resource: "*" Action: - "xray:*" But Advanced Tracing still…
Bachman
  • 701
  • 1
  • 6
  • 25
11
votes
2 answers

AWS Lambda@Edge debugging

I'm currently working on a lambda@edge function. I cannot find any logs on CloudWatch or other debugging options. When running the lambda using the "Test" button, the logs are written to CloudWatch. When the lambda function is triggered by a…
10
votes
2 answers

AWS X-Ray GoLang Lambda to lambda tracing and displayed in the service map

I have the API Gateway that calls Lamdba function 1 and that invokes lambda function 2 in Go. I want to see these 2 functions joined in the service map. The only way i have been able to do this so far is to create a custom segment eg called…
rick
  • 463
  • 5
  • 23
9
votes
1 answer

Invoke AWS Lambda with AWS X-Ray locally

Is there a way to invoke lambda with X-Ray by using sam invoke local? According to the idea which PaulMaddox mentioned, I have tried the step below, and I don't know whether I misunderstood : Run a X-Ray Daemon locally (0.0.0.0:2000) by following…
willisc
  • 507
  • 4
  • 22
8
votes
3 answers

AWS X-Ray Crossacount data collection

I have an application that is distributed over two AWS accounts. One part of the application ingest data from one account into the other account. The producer part is realised as python lambda microservices. The consumer part is a spring-boot app…
Hendrik Jander
  • 5,515
  • 3
  • 23
  • 31
7
votes
0 answers

Provision Concurrency not keeping AWS Lambda function warm and it still has initialization time

I was trying to set up lambda with provisioned concurrency. I enabled this feature for the latest version of my lambda function. After that, i ran this function and watched logs in AWS X-RAY. I saw that my function, still has initialization, but it…
7
votes
2 answers

Error when creating a dynamodb document client aws serverless using aws-xray-sdk,

I am creating a function which is supposed to write to a dynamodb and I want to generate the trace using aws-xray-sdk. My function is private readonly docClient: DocumentClient = AWS.DynamoDB.DocumentClient() async createTodo(todoItem:…
7
votes
2 answers

AWS X-ray with SQS fanout pattern

I am trying to use x-ray to trace requests which use an SNS-SQS fanout pattern. The request comes from API GW, lambda proxy integration, published to SNS and delivered to a subscribed SQS which has a lambda trigger which receives the messages for…
Ravenscar
  • 2,730
  • 19
  • 18
7
votes
2 answers

AWS X-Ray: Is it possible to add the API Gateway call to the service map?

I've added X-ray instrumentation to my lambda(Node.js) and can see all services around it in the trace, but still cannot add the API Gateway calling it to the trace and the service map. Is there anyway to do it?
Bachman
  • 701
  • 1
  • 6
  • 25
6
votes
0 answers

AWS XRay service map components are disconnected

I'm using open telemetry to export trace information of the following application: A nodejs kafka producer sends messages to input-topic. It uses kafkajs instrumented with opentelemetry-instrumentation-kafkajs library. I'm using the example from…
Majid Azimi
  • 5,575
  • 13
  • 64
  • 113
1
2 3
24 25