benoitc/gunicorn

Separate instrumentation and logging

Open

#1564 aperta il 6 ago 2017

Vedi su GitHub
 (9 commenti) (4 reazioni) (0 assegnatari)Python (1707 fork)batch import
Feature/LoggingImprovementhelp wanted

Metriche repository

Star
 (9334 star)
Metriche merge PR
 (Merge medio 8h 8m) (1 PR mergiata in 30 g)

Descrizione

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.

Guida contributor