(评论)
(comments)

原始链接: https://news.ycombinator.com/item?id=43096477

子Trace是用于后端服务器的调试工具,可为Docker容器中的所有传入和发出请求提供类似Wireshark的可见性,可通过Chrome DevTools启发的接口访问。与Sentry或OpentElemetry不同,用户Trace捕获了其他工具中经常缺少的完整请求有效载荷,标题,状态代码和延迟详细信息。 它使用seccomp bpf拦截网络syscalls充当代理,从TCP流中解析HTTP请求,并将其显示在熟悉的基于浏览器的UI中。这消除了对伐木过多的需求,这减慢了调试。 sultrace允许您轻松过滤和检查请求详细信息。设置是一个单个命令:只需将服务器的启动命令带有``sultrace run''的前缀即可。不需要注册,并且与任何Linux程序一起使用,而不论语言如何。

相关文章
  • Show HN:用户跟踪 - Docker容器的Wireshark 2025-02-21
  • (评论) 2024-08-29
  • (评论) 2024-09-15
  • (评论) 2024-08-11
  • (评论) 2024-08-19

  • 原文
    Hey HN, we built Subtrace (https://subtrace.dev) to let you see all incoming and outgoing requests in your backend server—like Wireshark, but for Docker containers. It comes with a Chrome DevTools-like interface. Check out this video: https://www.youtube.com/watch?v=OsGa6ZwVxdA, and see our docs for examples: https://docs.subtrace.dev.

    Subtrace lets you see every request with full payload, headers, status code, and latency details. Tools like Sentry and OpenTelemetry often leave out these crucial details, making prod debugging slow and annoying. Most of the time, all I want to see are the headers and JSON payload of real backend requests, but it's impossible to do that in today's tools without excessive logging, which just makes everything slower and more annoying.

    Subtrace shows you every backend request flowing through your system. You can use simple filters to search for the requests you care about and inspect their details.

    Internally, Subtrace intercepts all network-related Linux syscalls using Seccomp BPF so that it can act as a proxy for all incoming and outgoing TCP connections. It then parses HTTP requests out of the proxied TCP stream and sends them to the browser over WebSocket. The Chrome DevTools Network tab is already ubiquitous for viewing HTTP requests in the frontend, so we repurposed it to work in the browser like any other app (we were surprised that it's just a bunch of TypeScript).

    Setup is just one command for any Linux program written in any language.

    You can use Subtrace by adding a `subtrace run` prefix to your backend server startup command. No signup required. Try for yourself: https://docs.subtrace.dev

    联系我们 contact @ memedata.com