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.
Metadata
Release files for spoqa-aws-xray-flask-middleware 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| spoqa_aws_xray_flask_middleware-0.1.2.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spoqa_aws_xray_flask_middleware-0.1.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 5.8 kB
Release files / spoqa_aws_xray_flask_middleware-0.1.2.tar.gz
| Download URL | spoqa_aws_xray_flask_middleware-0.1.2.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a90bfcd5affb25fa6b7694ec910675d0d3faa83d075a1d4a2941a15095e5fba7
|
|
BLAKE2b-256 checksum How to use checksums |
b2e61f1eafe2393e3dd0ee56c53e6be5bf360a6b0b2f7149f352d9afc94e953d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.9 CPython/3.7.7 Linux/5.4.47-1-lts
|
Release files / spoqa_aws_xray_flask_middleware-0.1.2-py2.py3-none-any.whl
| Download URL | spoqa_aws_xray_flask_middleware-0.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
91f64f2afc71972ce802c5c96ad1e57ea7a9c46e22653b127237d8de20970f59
|
|
BLAKE2b-256 checksum How to use checksums |
02a313532b69204eff7561ac5f3a34ef075cf766ccb740287f425675e0595492
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.9 CPython/3.7.7 Linux/5.4.47-1-lts
|