hapijs / good

hapi process monitoring
Other
525 stars 160 forks source link

Logging request headers in response event #555

Closed duro closed 7 years ago

duro commented 7 years ago

As I dig through various parts of the code and API it seems that at one point we had the ability to have the request headers be included in the RequestSent event object.

We are trying to use our users session JWT as a way to be able to filter logs for all request and response logs for a particular user.

I see now that the only option for response is to include the payload.

Is there another way to do this?

arb commented 7 years ago

I think the includes option is what you're looking for.

includes: {
  request: ['headers', 'payload']
}
arb commented 7 years ago

Closing due to inactivity.

lock[bot] commented 4 years ago

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.