1
0
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:
Ming Deng
2020-08-04 22:16:55 +08:00
parent ae8461f95d
commit 6c6cf91741
8 changed files with 206 additions and 58 deletions

View File

@ -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",