rest otel support (#943)

This commit is contained in:
zhoushuguang
2021-08-24 10:04:12 +08:00
committed by GitHub
parent f669e1226c
commit 280e837c9e
8 changed files with 103 additions and 3 deletions

View File

@@ -108,6 +108,7 @@ func (s *engine) bindRoute(fr featuredRoutes, router httpx.Router, metrics *stat
route Route, verifier func(chain alice.Chain) alice.Chain) error {
chain := alice.New(
handler.TracingHandler,
handler.OtelHandler(route.Path),
s.getLogHandler(),
handler.PrometheusHandler(route.Path),
handler.MaxConns(s.conf.MaxConns),