Skip to content

@tripo3d/lens / index / TracePlugin

Interface: TracePlugin ​

Defined in: src/core/plugin.ts:46

Plugin 契约。Core 只认这套生命周期,不感知 Plugin 内部业务;Plugin 间不直连。

Properties ​

PropertyModifierTypeDescriptionDefined in
namereadonlystring插件唯一名,重复注册报错src/core/plugin.ts:48
requiredConsent?readonly"errors" | "performance" | "tracking"所需授权维度(FR-6.4):声明后受 Consent 启停管控;缺省则不受控(如 IdentityPlugin)src/core/plugin.ts:50
setuppublic(ctx) => void | Promise<void>注册激活:Core 在 init 时调用src/core/plugin.ts:52
teardown?public(ctx) => void注销清理:destroy 时调用src/core/plugin.ts:54

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