类:BoundedChannel


🌐 Class: BoundedChannel

稳定性: 1 - 实验性

BoundedChannelTracingChannel 的简化版本,只跟踪同步操作。它由两个通道(startend)组成,而不是五个,省略了 asyncStartasyncEnderror 事件。这使它适用于跟踪不涉及异步延续或错误处理的操作。

🌐 The class BoundedChannel is a simplified version of TracingChannel that only traces synchronous operations. It consists of two channels (start and end) instead of five, omitting the asyncStart, asyncEnd, and error events. This makes it suitable for tracing operations that don't involve asynchronous continuations or error handling.

TracingChannel 一样,建议在文件的顶层创建并重用单个 BoundedChannel,而不是动态创建它们。

🌐 Like TracingChannel, it is recommended to create and reuse a single BoundedChannel at the top-level of the file rather than creating them dynamically.