Minimally, I'd like a metric that counts log lines emitted by the app's code tagged by the log level. This way, we can tell how often an app is failing internally, even when it succeeds the requests.
A couple of ideas:
1. Add a logger at initialize() time that would drop the actual logs, but would count the number of calls at each log level.
2. If #1 fails: implement a wrapper in gae_ts_mon for the "logging" module, and import it in apps as
from gae_ts_mon import logging
Note, that logs generated by the AppEngine layer itself (like request logs, instance restart logs, etc.) are nice to have, but probably harder to implement, and therefore are optional here.
This bug is limited to the python version.
Comment 1 by benhenry@google.com
, Apr 27 2016Labels: -Infra-Monitoring