roc

Results 121 comments of roc

`resp.Response` 存储的是原始的 `http.Response`,里面本身就会包含请求链,比如获取重定向前的`http.Response`: `resp.Response.Request.Response`,重定向前的请求:`resp.Response.Request.Response.Request`。 只是没有包含body,但一般之前的body不重要

一般路追踪中间件就用 client 中间件,是在 beforeRequest 之后运行的。你说的 `如果在新增的 Client 中间件中追加请求参数(如:签名 header 、 params 等),链路追踪中间件无法收集这些参数` 没太理解,能否举个实际的例子

> Also seeing this issue on v77.5.0. Wondering if related to the following logs from the grafana-sc-dashboards container > > ``` > {"time": "2025-10-30T10:58:14.949803+00:00", "level": "WARNING", "msg": "Retrying (Retry(total=1, connect=10,...

如果要自己解压缩,可以显式设置Accept-Encoding为 gzip,并设置不自动读取 body: ```go client := req.C().SetCommonHeader("Accept-Encoding", "gzip").DisableAutoReadResponse() ```

可以用client中间件获取,参考tracing 实践 https://req.cool/zh/docs/examples/integrate-opentelemetry-and-jaeger/ ![image](https://github.com/imroc/req/assets/7448852/83f04cef-9d8d-401e-9d31-99a4750545f6)

@msivasubramaniaan The most common scenario: View the complete YAML of the Kubernetes Pod (e.g. kubectl edit pod xxx ), where the lastProbeTime in status.conditions is usually null. Regardless of the...

@msivasubramaniaan any plan update? I've uploaded a video demo (use `kubectl edit` command, open kubernetes yaml with neovim, and use `yaml-language-server` as the LSP Server, it's a very common usage...

嗯,目前实现是这样,后续看看有没有办法强制h2的时候也能走代理,先加到todo