能否提供一个http.Client的注入方案 ? #484
huanglaoyi
started this conversation in
Ideas
Replies: 1 comment
-
或者像go-redis一样,提供hook |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我们在做链路监控时,无法传递context.Context,记录不到请求
能否像jwx一样,提供一个可选的注入方案?
https://github.com/lestrrat-go/jwx
相关代码:jwx包
func FetchHTTPWithContext(ctx context.Context, jwkurl string, options ...Option)
func WithHTTPClient(cl *http.Client) Option
Beta Was this translation helpful? Give feedback.
All reactions