biolink-api icon indicating copy to clipboard operation
biolink-api copied to clipboard

Include more upstream information in logging to aid while analyzing logs

Open deepakunni3 opened this issue 7 years ago • 1 comments

Include more upstream information to facilitate analysis of logs and study traffic.

This might require changes on the ontobio side as well. Will update with more information as we move forward.

@kltm Feel free to add more information and what you would like to see in the logs.

deepakunni3 avatar Sep 04 '18 22:09 deepakunni3

Thank you @deepakunni3 !

I think things that might be of interest would be:

  • calling route
  • IP address
  • user agent

As it stands right now, one must try and match entries in nginx and monarch-api, which have very different ideas of logging (e.g. one line per call vs. debug stream). It may be good to just have a high-level summary line for each call in the monarch app, and some method of trying those to individual sub-calls needed to perform it. Alternatively, every log line could contain all of the information necessary.

kltm avatar Sep 04 '18 22:09 kltm