Code Monkey home page Code Monkey logo

Comments (3)

JoJoJoJoJoJoJo avatar JoJoJoJoJoJoJo commented on August 18, 2024

I also found an issue here which looks like similar

getsentry/sentry-python#1993

from aws-xray-sdk-python.

jj22ee avatar jj22ee commented on August 18, 2024

I wasn't able to reproduce the issue with your sample code, at least on Python 3.11.7. I provided the dependency versions I used in a Linux environment:

yyyyyyyyyy % pip list | grep -e aws-xray-sdk -e fastapi -e uvicorn
aws-xray-sdk                  2.12.1
fastapi                       0.108.0
uvicorn                       0.25.0

(24-01-10 23:07:43) <0> [~/temp]  
yyyyyyyyyy %% uvicorn --version                                    
Running uvicorn 0.25.0 with CPython 3.11.7 on Linux

(24-01-10 23:07:55) <0> [~/temp]  
yyyyyyyyyy % uvicorn test:app --port=2000                         
INFO:     Started server process [129701]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://127.0.0.1:2000/ (Press CTRL+C to quit)

However, in your sample code I also noticed this syntax error:

xray_recorder.configure('app', context=AsyncContext())

I think you must have wanted:

xray_recorder.configure(service='app', context=AsyncContext())

Does the error still persist if you fix the syntax error and use the same dependency versions?

from aws-xray-sdk-python.

JoJoJoJoJoJoJo avatar JoJoJoJoJoJoJo commented on August 18, 2024

It still persists after I fixed the syntax error.
However, when I create a new conda environment and install the same dependent packages, the error can't be reproduced. 🤣
Anyway it works fine now, thank you a lot for your attention.

from aws-xray-sdk-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.