Comments (3)
I also found an issue here which looks like similar
from aws-xray-sdk-python.
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.
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)
- ERROR: cannot find the current segment/subsegment when segment is open and uploading file to s3. HOT 3
- Installing SDK without botocore and other transitive dependencies HOT 4
- Custom emitter based on boto3 creates an infinite loop in the SDK HOT 3
- Bug: nested subsegments don't work across threads HOT 4
- IndexError when using AWS X-Ray SDK with SQLAlchemy HOT 1
- EKSPlugin HOT 1
- Very rare ReferenceError HOT 2
- Support for psycopg3 HOT 2
- Link a Textract async operation with downstream process HOT 1
- Current tox versions do not like how testenv.passenv is set
- aws_xray_sdk.core.exceptions.exceptions.SegmentNameMissingException: Segment name is required. HOT 1
- Using psycopg2 connection_factory throws exceptions HOT 4
- Documentation for patch_all HOT 2
- Sampling configuration should discuss DefaultSampler vs. LocalSampler HOT 1
- Flask middleware errors when an earlier Flask extension throws an exception in a before_request method HOT 1
- Patched DB cursor and template may record outside of XRayMiddleware HOT 2
- Segment not propgated when subsegment metadata is sufficiently long HOT 4
- sqlalchemy_core patch errors for unencoded special characters in db url HOT 1
- MongoDB AttributeError: 'NoneType' object has no attribute 'put_annotation'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-xray-sdk-python.