Why dont use DefaultTransport? #982
Unanswered
FarmerChillax
asked this question in
Q&A
Replies: 1 comment 1 reply
-
The default transport is not suitable for providing resty features with appropriate values. However, you could supply any Go client instance to |
Beta Was this translation helpful? Give feedback.
1 reply
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