@lark-apaas/client-toolkit 1.2.1-alpha.13 → 1.2.1-alpha.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/trace/index.d.ts +13 -2
- package/lib/trace/index.js +5 -2
- package/package.json +1 -1
package/lib/trace/index.d.ts
CHANGED
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { observable } from "@lark-apaas/observable-web";
|
|
2
|
+
/**
|
|
3
|
+
* 核心 Trace 方法:用于执行并追踪异步函数
|
|
4
|
+
* 使用代理模式而非直接 bind,确保在调用时获取最新的 observable 实例状态
|
|
5
|
+
*/
|
|
6
|
+
export declare const trace: (...args: Parameters<typeof observable.trace>) => Promise<unknown>;
|
|
7
|
+
/**
|
|
8
|
+
* 默认导出追踪套件
|
|
9
|
+
*/
|
|
10
|
+
declare const _default: {
|
|
11
|
+
trace: (name: string, fn: (span: import("@opentelemetry/api").Span) => Promise<unknown>, options?: import("@opentelemetry/api").SpanOptions) => Promise<unknown>;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
package/lib/trace/index.js
CHANGED