Tlm.Plug (tlm v0.1.0)

Copy Markdown

Attaches the current request to any error reported while handling it.

# lib/my_app_web/endpoint.ex
plug Tlm.Plug

Credentials (cookie, authorization and the like) are never sent.

It also forgets the user set by Tlm.set_user/1 for the previous request: on a keep-alive connection one process serves many requests, and a logged-out one mustn't report the last user.