benoitc/gunicorn

Separate instrumentation and logging

Open

#1,564 opened on Aug 6, 2017

View on GitHub
 (9 comments) (4 reactions) (0 assignees)Python (9,334 stars) (1,707 forks)batch import
Feature/LoggingImprovementhelp wanted

Description

Issues like #1405 demonstrate that having statsd instrumentation built on top of the logging handlers means instrumentation and logging are coupled. Some have found this coupling surprising.

I would like to see proposals for ways to separate these functions.

This may be as simple as making the statsd Logger into a handler instead, so it can be invoked no matter which logger is being used.

Contributor guide