mirror of
https://github.com/astaxie/beego.git
synced 2025-06-13 12:30:38 +00:00
Support prometheus and opentracing filter
This commit is contained in:
@ -27,6 +27,8 @@ import (
|
||||
"github.com/astaxie/beego/logs"
|
||||
)
|
||||
|
||||
// Deprecated: we will removed this function in 2.1.0
|
||||
// please use pkg/web/filter/prometheus#FilterChain
|
||||
func PrometheusMiddleWare(next http.Handler) http.Handler {
|
||||
summaryVec := prometheus.NewSummaryVec(prometheus.SummaryOpts{
|
||||
Name: "beego",
|
||||
|
Reference in New Issue
Block a user