fix: opentelemetry traceid not correct (#1108)

This commit is contained in:
Kevin Wan
2021-10-01 22:44:37 +08:00
committed by GitHub
parent 295ec27e1b
commit ed15ca04f4
6 changed files with 24 additions and 18 deletions

View File

@@ -108,7 +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),
handler.OtelHandler(s.conf.Name, route.Path),
s.getLogHandler(),
handler.PrometheusHandler(route.Path),
handler.MaxConns(s.conf.MaxConns),