Comments (9)
The actual query string capture was originally in the PR submitted by @therealryanbonham, but we requested that part of logic to be removed and submitted with a separate PR.
The actual query might contain sensitive user information and we will have to require the query capture PR to be sanitized and reviewed by our security team to make sure no sensitive user data can sneak into the captured data.
We haven't receive the separate PR yet but I will ping @therealryanbonham to check if there is any recent plan on the query capture.
from aws-xray-sdk-python.
can you link me to that PR ?
I dont mind having some sensitive information being sent.
I would like to see if I can use X ray for my application right now.
from aws-xray-sdk-python.
Yes sorry I forget to put that link on. #14
from aws-xray-sdk-python.
Hi @harveyslash just want to let you know that the PR for query capture is submitted: #34. Please feel free to try it out and provide any feedback under that PR.
from aws-xray-sdk-python.
I installed that using:
pip install --upgrade git+https://github.com/therealryanbonham/aws-xray-sdk-python.git
And it doesnt seem to have changed anything.
I am not getting the actual query in my X-ray console
from aws-xray-sdk-python.
You need to include the branch..
git+https://github.com/therealryanbonham/aws-xray-sdk-python.git@sqlalchemy_query#egg=aws-xray-sdk
from aws-xray-sdk-python.
just tried the branch, now im getting :
File "venv/beatest-flask-rest-backend-36/lib/python3.6/site-packages/aws_xray_sdk/core/emitters/udp_emitter.py", line 55, in _send_data
self._port))
OSError: [Errno 40] Message too long
And my X-ray console doesnt show the requests that had the message too long error.
I about 15 fields in my table, so the sql query could be fairly long
from aws-xray-sdk-python.
The default UDP packet size is usually 64KB but it might vary on different OS. You can consider to increase this limit.
You can also change streaming_threshold
to a lower value so that some data is streamed out earlier:
xray_recorder.configure(streaming_threshold=10)
See https://github.com/aws/aws-xray-sdk-python/blob/master/aws_xray_sdk/core/recorder.py#L118. The default value is 30 which means a segment will stream out its children subsegments when the total children count reaches 30. You can change to 10 or even lower to fit your use case.
from aws-xray-sdk-python.
Since the PR for query capture is already out #34, I will close this in favor of the PR to make sure we have a single place to track feedback, concerns and progress regarding this new feature.
If you have other questions regarding the SDK usage in general, feel free to post on our forum https://forums.aws.amazon.com/forum.jspa?forumID=241 or open new issues. But feel free to leave any comments here if you still have concerns.
from aws-xray-sdk-python.
Related Issues (20)
- 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
- Error when using AsyncContext in python 3.11.5 HOT 3
- MongoDB AttributeError: 'NoneType' object has no attribute 'put_annotation'
- aws-xray-sdk-python compatibility with Python 3.12 HOT 9
- Fix docstring in Entity.close() HOT 1
- No supported for fastAPI, need to add middleware for fastapi HOT 1
- Incompatible with Pynamodb 6.x HOT 4
- trace simple websocket messages - python HOT 5
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.