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)
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
File details
Details for the file spoqa_aws_xray_flask_middleware-0.1.0.tar.gz
.
File metadata
- Download URL: spoqa_aws_xray_flask_middleware-0.1.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.9 CPython/3.7.7 Linux/5.4.47-1-lts
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ac7c650b0973ddedafe5f75bc63c65843e04fcd3c93f9e210840d163150e2eb |
|
MD5 | b356f70d12ceae68998bf62d530a775a |
|
BLAKE2b-256 | 01f7989e4fe818cc5abeea5fd7d0046104635a24b36b4ae7500f480cb4303e4b |
File details
Details for the file spoqa_aws_xray_flask_middleware-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: spoqa_aws_xray_flask_middleware-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.9 CPython/3.7.7 Linux/5.4.47-1-lts
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8aafd4976eee71b58583c5c10b30a48977365b34f44bf1cbc78683fb91800fce |
|
MD5 | d97f07cc2d5baec9ac67bec4afed44b4 |
|
BLAKE2b-256 | c116378ee17da8d4d30949de9569756b3b1b70f2a5f223e5f1fc440712518b37 |