Why dont use DefaultTransport? #982
Unanswered
FarmerChillax
asked this question in
Q&A
Replies: 1 comment 2 replies
-
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.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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