Skip to content

NewClient panics when http.RoundTripper is *otelhttp.Transport #269

Description

@rahulsinghpatwal

Expected Behavior:
I should be able to construct a Go client instance with an http.Client where http.RoundTripper is *otelhttp.Transport

Actual Behavior:
NewClient panics

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions