Skip to main content

Logs tracing information on a per-request basis

Project description


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.

  • TRACY_REQURE_CLIENT: (OPTIONAL) configuration boolean used to return a 400 when no client name header (defaults to Trace-ID) is present.


from flask import Flask
from flask.ext.tracy import Tracy

app = Flask(__name__)

def index()
    return "Hello World"

Example Log:

2015-09-17 18:15:16,252 url:http://localhost:5000/ client_ip: client_name:APP_1 client_id:0be9d830-5d68-11e5-82d5-0242ac11000e duration:0.000363

get Flask-Tracy

Install flask

pip install Flask-Tracy

Download the latest release from Python Package Index or clone the repository

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
Flask_Tracy-0.0.1-py3-none-any.whl (10.4 kB) Copy SHA256 hash SHA256 Wheel 3.5
Flask-Tracy-0.0.1.tar.gz (7.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page