How to profile HTTP requests with Elixir?

There is anything in Elixir like this I would like to get the time of each step that composes an HTTP request like dns, transfer, etc… It’s really important for the app that I’m building.

As the library you have pointed to is just wrapper for cURL CLI you could use exactly the same approach. However you probably could build similar thing without shelling out. Unfortunately I am not aware of any library that provides such information OotB so you probably would need some tinkering around it.

1 Like

Doesn’t have the same level of breakdown as the one you show, but maybe you can use it as the starting point to make it more detailed:

Screenshot from 2021-01-09 01-01-29