Spoqa flavoured AWS X-Ray middleware for Flask
Project description
spoqa-aws-xray-flask-middleware
Spoqa flavoured AWS X-Ray middleware for Flask
Before:
https://example.com/api/12345/messages
http://localhost:8000/api/32123/messages
http://127.0.0.1/api/43434/messages
...
After:
//service_name/api/<int:id>/messages
Usage
Replace aws_xray_sdk.ext.flask.middleware.XRayMiddleware
with spoqa_aws_xray_flask_middleware.XRayMiddleware
from aws_xray_sdk.core import xray_recorder
from spoqa_aws_xray_flask_middleware import XRayMiddleware
app = Flask(__name__)
xray_recorder.configure(service='fallback_name', dynamic_naming='*mysite.com*')
XRayMiddleware(app, xray_recorder)
License
spoqa-aws-xray-flask-middleware is licensed under the terms of MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for spoqa_aws_xray_flask_middleware-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a90bfcd5affb25fa6b7694ec910675d0d3faa83d075a1d4a2941a15095e5fba7 |
|
MD5 | 094d965e784f5464b68db8db7a19a0da |
|
BLAKE2b-256 | b2e61f1eafe2393e3dd0ee56c53e6be5bf360a6b0b2f7149f352d9afc94e953d |
Close
Hashes for spoqa_aws_xray_flask_middleware-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91f64f2afc71972ce802c5c96ad1e57ea7a9c46e22653b127237d8de20970f59 |
|
MD5 | 45d39469a7c729fa95f28baeb3b8e992 |
|
BLAKE2b-256 | 02a313532b69204eff7561ac5f3a34ef075cf766ccb740287f425675e0595492 |