Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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__)

# To exclude routes from being traced.
#Tracy(app, excluded_routes=['/test/'])

def index()
    return "Hello World"

Example Log:

2015-09-17 18:15:16,252 200 http://localhost:5000/ 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

Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Flask_Tracy-0.1.3-py3-none-any.whl (12.7 kB) Copy SHA256 Checksum SHA256 3.5 Wheel Dec 1, 2015
Flask-Tracy-0.1.3.tar.gz (7.6 kB) Copy SHA256 Checksum SHA256 Source Dec 1, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting