@tripo3d/lens / index / TracePlugin
Interface: TracePlugin
Defined in: src/core/plugin.ts:46
Plugin 契约。Core 只认这套生命周期,不感知 Plugin 内部业务;Plugin 间不直连。
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
name | readonly | string | 插件唯一名,重复注册报错 | src/core/plugin.ts:48 |
requiredConsent? | readonly | "errors" | "performance" | "tracking" | 所需授权维度(FR-6.4):声明后受 Consent 启停管控;缺省则不受控(如 IdentityPlugin) | src/core/plugin.ts:50 |
setup | public | (ctx) => void | Promise<void> | 注册激活:Core 在 init 时调用 | src/core/plugin.ts:52 |
teardown? | public | (ctx) => void | 注销清理:destroy 时调用 | src/core/plugin.ts:54 |