You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
InstrumentHandlerResponseSize func(obs prometheus.ObserverVec, next http.Handler) http.Handler from the promhttp package takes in "http.Handler" and returns a "http.Handler" for instrumenting the response size. However, martini only has martini.Handler which makes it impossible to pass into the promhttp instrumentation function, I'm wondering if it's possible to use martini with prometheus promhttp?
The text was updated successfully, but these errors were encountered:
I was recently looking at adding opencensus instrumentation to orchestrator which uses Martini too. It suggests doing it passing in a custom http.Handler too here
Though I'm looking at writing my own middleware for it instead.
InstrumentHandlerResponseSize func(obs prometheus.ObserverVec, next http.Handler) http.Handler
from thepromhttp
package takes in "http.Handler" and returns a "http.Handler" for instrumenting the response size. However, martini only hasmartini.Handler
which makes it impossible to pass into the promhttp instrumentation function, I'm wondering if it's possible to use martini with prometheuspromhttp
?The text was updated successfully, but these errors were encountered: