Created
August 14, 2021 14:17
-
-
Save karlosmid/400fe1b8003bfc9e9c896435286571dd to your computer and use it in GitHub Desktop.
how to log broken HTTP request in Phoenix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: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