go-server-timing icon indicating copy to clipboard operation
go-server-timing copied to clipboard

Extract handler to standalone for easier usage in libraries

Open deefdragon opened this issue 3 years ago • 0 comments

Because the handler is currently entirely inside the middleware, it is very difficult to fine tune it (such as enabling/disabling it), and takes a reasonably large work around when used with a library like echo or gin.

Please put the handler into a standalone function so that it can be called manually from whatever library a user chooses/ in a more flexible manner in general.

deefdragon avatar Jul 13 '21 08:07 deefdragon