Re: Debugging features needed

Поиск
Список
Период
Сортировка
От Michael Lewis
Тема Re: Debugging features needed
Дата
Msg-id CAHOFxGrWa4UCA6ox4Ly8bj1+pBE03srA7NQ9TbdHwSuTX+9BKQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Debugging features needed  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Debugging features needed
Re: Debugging features needed
Список pgsql-general
For my purposes, app name isn't long enough so we put a comment at the start of every SQL that has a unique ID generated in the application. This ensures that we can tell one connection apart from another even when both are coming from the same feature/action (applicationName is set to this) even using connection pooling. Before, we had different requests reusing the same pid of course and if they happened to have the same appName, we didn't know it was a new process on app side.

We also log that same request ID to NewRelic and when an app process needs to use multiple databases, it links those for research of events after the fact as well.

I would be interested to hear what others are doing.

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Debugging features needed
Следующее
От: Vijaykumar Jain
Дата:
Сообщение: Re: Debugging features needed