A plug to enable hackney_trace in hackney.
With this plug, you can easily enable hackney_trace for your desired controller or the specific action. Furthermore, this plug automatically handles the output of hackney_trace and convert it into Elixir String. You can log it or handle by your own function.
If available in Hex, the package can be installed
by adding plug_hackney_trace to your list of dependencies in mix.exs:
def deps do
[
{:plug_hackney_trace, "~> 0.1.0"}
]
endTo use it, just plug it into the desired module.
plug PlugHackneyTrace, trace: :minIn a Phoenix powered project, you can plug it into a specific action.
plug PlugHackneyTrace when action in [:show]See LICENSE file.