aws / aws-xray-sdk-python

AWS X-Ray SDK for the Python programming language
Apache License 2.0
329 stars 143 forks source link

Auto-Instrument for Flask and Fast API applications #332

Open Galactic21 opened 2 years ago

Galactic21 commented 2 years ago

Good afternoon, I'm using your SDK to create traces for my Django applications. However, I noticed that the auto-instrument option only works for Django. My question is if in the future this option will also be available for Flask and Fast-API applications?! Best regards.

NathanielRN commented 2 years ago

Hi @Galactic21!

Thanks for reaching out. We don't currently have solutions for other frameworks, but the AWS Distro for OpenTelemetry (ADOT) team has launched GA support for using OpenTelemetry Python with AWS X-ray as of September 2021.

You find numerous more features there, including auto instrumentation for Flask and Fast-API applications 🙂.

We have a demo GitHub repo where you can see how we use OpenTelemetry (tests run everyday against the latest code: https://github.com/aws-observability/aws-otel-python

We also have ADOT Docs on how to use OTel Python auto instrumenting with X-Ray: https://aws-otel.github.io/docs/getting-started/python-sdk

OpenTelemetry is your the best option for getting advanced features and community support for a feature request.

Let me know if that helps! 😄