Why dont use DefaultTransport? #982
Unanswered
FarmerChillax
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wanna support for open-telemetry in my application. like #648
I want to unify the changes, tried:
http.DefaultTransport = otelhttp.NewTransport(http.DefaultTransport)
. but not work.because resty does not use
http.DefaultTransport
, so why dont use defaultTransport?The
createTransport
function is not much different from theDefaultTransport
.ref:
resty/client.go
Line 1449 in 1e19d6b
resty/transport.go
Line 17 in 1e19d6b
Beta Was this translation helpful? Give feedback.
All reactions