Skip to content

Commit

Permalink
Merge pull request #256 from lincolnzhou/master
Browse files Browse the repository at this point in the history
feat: ehttp trace
  • Loading branch information
sevennt authored Mar 7, 2022
2 parents e3a0677 + 82b5a61 commit a00e804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/ehttp/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit a00e804

Please sign in to comment.