diff --git a/client/ehttp/component.go b/client/ehttp/component.go index 5ceb840a..de65077d 100644 --- a/client/ehttp/component.go +++ b/client/ehttp/component.go @@ -27,7 +27,7 @@ type Component struct { func newComponent(name string, config *Config, logger *elog.Component) *Component { // resty的默认方法,无法设置长连接个数,和是否开启长连接,这里重新构造http client。 cookieJar, _ := cookiejar.New(&cookiejar.Options{PublicSuffixList: publicsuffix.List}) - interceptors := []interceptor{fixedInterceptor, logInterceptor, metricInterceptor} + interceptors := []interceptor{fixedInterceptor, logInterceptor, metricInterceptor, traceInterceptor} cli := resty.NewWithClient(&http.Client{Transport: createTransport(config), Jar: cookieJar}). SetDebug(config.RawDebug). SetTimeout(config.ReadTimeout).