graphql-engine/server/src-lib/Hasura/GraphQL/Transport/WebSocket
Anon Ray 046a783a14
server: pass http and websocket request to logging context (#5470)
* pass request body to logging context in all cases

* add message size logging on the websocket API

  this is required by graphql-engine-pro/#416

* message size logging on websocket API

  As we need to log all messages recieved/sent by the websocket server,
  it makes sense to log them as part of the websocket server event logs.
  Previously message recieved were logged inside the onMessage handler,
  and messages sent were logged only for "data" messages (as a server event log)

* fix review comments

Co-authored-by: Phil Freeman <phil@hasura.io>
2020-07-29 20:18:36 +05:30
..
Protocol.hs Pass environment variables around as a data structure, via @sordina (#5374) 2020-07-14 12:00:58 -07:00
Server.hs server: pass http and websocket request to logging context (#5470) 2020-07-29 20:18:36 +05:30