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

AWS X Ray logging HTTP 404 response as 200 instead

I'm setting up AWS X-Ray integration for my lambda service in Python, but I've encountered a strange issue. I make an external HTTP call with the built in Python requests library, and my logs show that the status code is 404. Here's a…
Ryan T.
  • 197
  • 1
  • 15
1
vote
1 answer

Opentelemetry + X-Ray + Flask + ECS - not instrumenting endpoints

I have a problem with instrumenting my Flask application with OpenTelemetry and XRay. I've configured my main.py propagate.set_global_textmap(AwsXRayPropagator()) span_processor_to_aws =…
Chiefir
  • 2,561
  • 1
  • 27
  • 46
1
vote
0 answers

Springboot app throws exception when AWS X-ray deamon is not running

I am working on springboot & AWS X-Ray integration, as part of this we pushed our code and deployed springboot app and x-ray deamon as a sidecar container in ESC Fargate task on production environmenet and everything works fine, however we dont need…
1
vote
1 answer

Eventbrige X-Ray config via Cloudformation

I see Eventbrdge has X-Ray support now which is great - https://aws.amazon.com/blogs/compute/using-aws-x-ray-tracing-with-amazon-eventbridge/ But the example is via the CLI - does this feature have Cloudformation support yet ? As can't find any docs
1
vote
1 answer

aws x-ray with python

This is my Python code with AWS X-Ray There is no Error but it is not sending anything to X-Ray Daemon. What is missing in this code ? from aws_xray_sdk.core import xray_recorder xray_recorder.configure(daemon_address="xx.xx.xx.xx:2000") # Start…
cofactor
  • 13
  • 6
1
vote
1 answer

What are my options for viewing the traces asp.net core captures in my applications?

I've recently been reading up on the topic of distributed tracing in asp.net core. I'm using asp.net core 5 and can see that it is automatically creating tracing information that is compatible with W3C context tracing. I plan to use this information…
omatase
  • 1,551
  • 1
  • 18
  • 42
1
vote
0 answers

Is it possible to enable X-Ray tracing on an EventBridge Eventbus via CDK?

The ability for EventBridge to trace events via X-ray was added earlier this year, see: https://aws.amazon.com/blogs/compute/using-aws-x-ray-tracing-with-amazon-eventbridge/ and…
1
vote
1 answer

How does one assume a role with the golang xray client?

Per https://aws.amazon.com/xray/faqs/: Q: My application components run in their own AWS accounts. Can I use X-Ray to collect data across AWS accounts? Yes, the X-Ray agent can assume a role to publish data into an account different from the one in…
TopherGopher
  • 655
  • 11
  • 21
1
vote
1 answer

Monitor incoming requests based on subdomain in api gateway

I am using the wild card subdomain for API gateway, so the requests come from different subdomains. eg: I get requests from abc.domain.com/api, def.domain.com/api, xyz.domain.com/api etc. I have created dashboards and alarms in cloud watch for total…
1
vote
1 answer

Centralized Logging architecture in AWS with X-Ray

I am new in AWS and need a Centralized Logging architecture with X-Ray. For this issue, I checked the AWS reference implementation: https://docs.aws.amazon.com/solutions/latest/centralized-logging/architecture.html which shows an interesting…
1
vote
0 answers

XRAY shutdown in sidecar container in ECS fargate

I'm trying to make XRAY work as a sidecar container on ECS fargate. However, it is shutting down and stopping the task. These are the logs: 2021-04-26 08:59:592021-04-26T15:59:59Z [Debug] Shutdown Initiated. Current epoch in nanoseconds:…
Peter
  • 2,004
  • 2
  • 24
  • 57
1
vote
1 answer

AWS X-Ray sampling rules for API-Gateway - Lambda setup (proxy integration)

We're using AWS Api Gateway along with Lambda - using proxy integration. Lambda is hosting Asp.net core web api. We also have configured Health Checks using Route53 We have turned on active tracing for APIGateway and Lambda. What we're trying to…
JeloneK
  • 249
  • 2
  • 11
1
vote
0 answers

Is it possible to not sample some traces in AWS X Ray?

Is it possible to not sample some traces in X Ray? I am not interested in traces that begin with /foo/ url so I set up a Sampling Rule with the following settings: URL Matches: `/foo/*` ReservoirSize: 0 FixedRate: 0 priority: 100 Everything else I…
Charles V.
  • 45
  • 8
1
vote
1 answer

How to use X-Ray support for the AWS SDK for Java V2 with EventBridgeClient

As per the documentation here, its just adding a maven module aws-xray-recorder-sdk-aws-sdk-v2. Then individual clients will be able to do x-ray tracing using TracingInterceptor. I did add both sdk-core and sdk-v2 in my pom.xml, but my…
Jimson James
  • 2,937
  • 6
  • 43
  • 78
1
vote
2 answers

How do you deploy aws-xray-daemon in Docker swarm?

I'm trying to deploy amazon/aws-xray-daemon to my docker swarm. I didn't do much in terms of configuration because there's not much I can see to configure in the README.md services: xrayd: image: amazon/aws-xray-daemon deploy: …
Archimedes Trajano
  • 35,625
  • 19
  • 175
  • 265