Skip to content

@tripo3d/lens / index / DebugTap

Interface: DebugTap ​

Defined in: src/core/debug-tap.ts:47

调试观测点:仅 debug 开启时注入 pipeline / transport,供 devtools 还原「为什么发 / 为什么没发」。 begin 在事件进管线时开启 trace(广播采样/Schema/PII 之前的原始形态),onQueue 报队列状态变化。

Methods ​

begin() ​

ts
begin(raw): TraceScope;

Defined in: src/core/debug-tap.ts:49

开启一条事件 trace(内部分配 traceId + 广播 ingress),返回阶段作用域句柄

Parameters ​

ParameterType
rawRawEvent

Returns ​

TraceScope


onQueue() ​

ts
onQueue(snap): void;

Defined in: src/core/debug-tap.ts:51

队列 / 批次状态变化

Parameters ​

ParameterType
snapQueueDebugSnapshot

Returns ​

void

基于 MIT 协议发布(内部使用)