Flask-Tracy
Flask-Tracy is an extension to Flask that logs tracing information per request.
Time, url, client IP, client name, transaction ID, and request duration are logged as informational to the tracy logger.
- Configuration:
TRACY_REQURE_CLIENT: (OPTIONAL) configuration boolean used to return a 400 when no client name header (defaults to Trace-ID) is present.
Example:
from flask import Flask
from flask.ext.tracy import Tracy
app = Flask(__name__)
appp.config.from_object('some_file.ini')
Tracy(app)
# To exclude routes from being traced.
#Tracy(app, excluded_routes=['/test/'])
@app.route('/')
def index()
return "Hello World"
Example Log:
2015-09-17 18:15:16,252 200 http://localhost:5000/ 192.168.100.1 APP_1 0be9d830-5d68-11e5-82d5-0242ac11000e 0.000363
get Flask-Tracy
Install flask
pip install Flask-Tracy
Download the latest release from Python Package Index or clone the repository
Metadata
Release files for Flask-Tracy 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Flask-Tracy-0.1.3.tar.gz | 7.6 kB | Without provenance | Details for Flask-Tracy-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Flask_Tracy-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for Flask_Tracy-0.1.3-py3-none-any.whl |
Total release size: 20.3 kB
Release files / Flask-Tracy-0.1.3.tar.gz
| Download URL | Flask-Tracy-0.1.3.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2b0a5b8f2a00db9c05bdc74cd880522822fa4fe016b43a3c73af431b01a7fd9
|
|
BLAKE2b-256 checksum How to use checksums |
d96ee84513255661b94348756966002dc2ebcde00a1f6e87fa280a6f34d69598
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Flask_Tracy-0.1.3-py3-none-any.whl
| Download URL | Flask_Tracy-0.1.3-py3-none-any.whl |
|---|---|
| Size | 12.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
de1c09b81aa0c232ceb1858448239d35a38eeb6b13a86134e1d49ce2c346c15f
|
|
BLAKE2b-256 checksum How to use checksums |
e51279fb753bfcccb87865c1529057966d77f50b5ede5a10933a0a2fea5c8825
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Flask-Tracy 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.