Can't use a custom transport #994
Unanswered
stuart-mclaren-hpe
asked this question in
Q&A
Replies: 2 comments 4 replies
-
@stuart-mclaren-hpe You could initialize as follows. client := resty.New().
SetTransport(otelhttp.NewTransport(http.DefaultTransport))
fmt.Println(client) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for your suggestion. I think the issue is any of the methods that call c.Transport() For example this:
will error with
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Doing something like this:
gives the following (with some extra debug):
ERROR RESTY current transport is not an *http.Transport instance XXX Type of Transport: *otelhttp.Transport
and the request fails.
Is there a trick to use a custom transport that I'm missing? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions