Open p-fedyukovich opened 1 year ago
Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests.
Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests.
Thanks for your reply. Yea, sure
I'm working on this.
Shouldn't it be live inside pino
instead of here?
If it add too much overhead into pino
, then it should be a custom transportor?
Prerequisites
🚀 Feature Proposal
It would be good to support
customAttributeKeys
as pino-http does. Currently there is no elegant way to change for examplereq
key tohttpRequest
Motivation
Google cloud log entry has own logging structure, including
httpRequest
. By adding custom attribute keyreq: 'httpRequest'
and own custom request serializer it would be possible easily configure logger for google cloud log structure.Example
Example for google cloud: