Open rahulsinghpatwal opened 6 months ago
Expected Behavior: I should be able to construct a Go client instance with an http.Client where http.RoundTripper is *otelhttp.Transport
Expected Behavior:
Actual Behavior: NewClient panics
Actual Behavior:
getting below error on creating clent"-
panic: interface conversion: http.RoundTripper is otelhttp.Transport, not http.Transport goroutine 1 [running]: github.com/GetStream/stream-chat-go/v6.NewClient({0x13fa848, 0xc}, {0x1430def, 0x40}, {0x0, 0x0, 0x8?}) /home/Rahul/go/pkg/mod/github.com/!get!stream/stream-chat-go/v6@v6.9.0/client.go:80 +0x3ea
changing the http.DefaultTransport can have unexpected side effects and is non recommended praxis in Go. Set the *http.Client and Http Roundtripper using SetClient
Expected Behavior:
I should be able to construct a Go client instance with an http.Client where http.RoundTripper is *otelhttp.TransportActual Behavior:
NewClient panicsgetting below error on creating clent"-
panic: interface conversion: http.RoundTripper is otelhttp.Transport, not http.Transport goroutine 1 [running]: github.com/GetStream/stream-chat-go/v6.NewClient({0x13fa848, 0xc}, {0x1430def, 0x40}, {0x0, 0x0, 0x8?}) /home/Rahul/go/pkg/mod/github.com/!get!stream/stream-chat-go/v6@v6.9.0/client.go:80 +0x3ea