@tripo3d/lens / index / PipelineDeps
Interface: PipelineDeps
Defined in: src/pipeline/types.ts:80
buildPipeline 依赖(均由 L2 Core 注入)
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
beforeEmit? | BeforeEmitHook | 业务 beforeEmit 钩子(来自 init 参数,可选) | src/pipeline/types.ts:82 |
config? | RemoteTraceConfig | null | 远端配置同步快照(建期读一次、整会话冻结):供 killSwitch / Sampler / SchemaValidator;未就绪(null)走内置默认 | src/pipeline/types.ts:84 |
debugTap? | DebugTap | 调试观测点(仅 debug 开启时注入;生产缺省,process 内一律短路、零开销) | src/pipeline/types.ts:86 |
deviceId | string | device id(整会话不可变,传固定值) | src/pipeline/types.ts:88 |
getBreadcrumbs? | () => Breadcrumb[] | 面包屑快照:BreadcrumbEnricher 给 error 事件附加用;缺省不注入 | src/pipeline/types.ts:90 |
getEntryUrl? | () => string | 入口 URL getter(构造期快照的 href,整会话固定;缺省或 SSR 时空串) | src/pipeline/types.ts:92 |
getGlobalParams? | () => Record<string, unknown> | null | 全局业务参数快照(payload.globalParams 私参命名空间来源) | src/pipeline/types.ts:94 |
getSessionId? | () => string | session id getter(每次页面加载新生成;空串不带) | src/pipeline/types.ts:96 |
getUserId? | () => string | undefined | user id getter(identify 后有值;未登录则为 undefined,信封不带该字段) | src/pipeline/types.ts:98 |
onError? | (err) => void | 阶段内部错误回调(Enricher/beforeEmit 失败);线上静默,开发态可观测 | src/pipeline/types.ts:100 |