Skip to content

Instantly share code, notes, and snippets.

@karlosmid
Created August 14, 2021 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karlosmid/400fe1b8003bfc9e9c896435286571dd to your computer and use it in GitHub Desktop.
Save karlosmid/400fe1b8003bfc9e9c896435286571dd to your computer and use it in GitHub Desktop.
how to log broken HTTP request in Phoenix
:ok = :telemetry.attach(
"cowboy-request-handler",
[:cowboy, :request, :early_error],
&YourAppName.LogIncompleteRequestHandler.handle_event/4,
nil
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment