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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | db68cbe1aa8d16ae1a75e0e5efda19da43186171a01f14f7e2267eb07f6874d9 |
|
MD5 | f04b83e04b718180f56eeed238703c5c |
|
BLAKE2b-256 | 50987fd573abc4a3ab80f1072d051d49b7a2fe6e5cf0f937ba8e8b80a7a42fac |
Close
Hashes for spoqa_aws_xray_flask_middleware-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1280bc10eb43f67e9f6cfd57a7322bf4423d23eef1d310e85cb24017d5aea4f8 |
|
MD5 | 824106b26d43ee720e8c90f338d8d51a |
|
BLAKE2b-256 | 88b50593c5b58b0dadf67733f11d6209b61f456d4b0409eeb177cac696b566fc |