@lark-apaas/observable 1.0.3-alpha.4 → 1.0.3
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/dist/index.cjs +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -41,9 +41,9 @@ declare class AppOTelSDK {
|
|
|
41
41
|
*/
|
|
42
42
|
startTrace(name: string, parentSpan?: Span): Span;
|
|
43
43
|
/**
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
* 丢弃 Span 的工厂函数
|
|
45
|
+
* @param {Span} span - 要被丢弃的 Span 对象
|
|
46
|
+
*/
|
|
47
47
|
static dropTraceSpan(span: Span): void;
|
|
48
48
|
/**
|
|
49
49
|
* [框架专用] 强制刷新
|
package/dist/index.d.ts
CHANGED
|
@@ -41,9 +41,9 @@ declare class AppOTelSDK {
|
|
|
41
41
|
*/
|
|
42
42
|
startTrace(name: string, parentSpan?: Span): Span;
|
|
43
43
|
/**
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
* 丢弃 Span 的工厂函数
|
|
45
|
+
* @param {Span} span - 要被丢弃的 Span 对象
|
|
46
|
+
*/
|
|
47
47
|
static dropTraceSpan(span: Span): void;
|
|
48
48
|
/**
|
|
49
49
|
* [框架专用] 强制刷新
|
package/dist/index.js
CHANGED
|
@@ -8960,7 +8960,12 @@ var CustomTraceExporter = class {
|
|
|
8960
8960
|
app_env: isDev ? AppEnv.Dev : AppEnv.Prod
|
|
8961
8961
|
};
|
|
8962
8962
|
const finalSpans = spans.filter((span) => !(span.attributes ?? {})[TraceDropToken]);
|
|
8963
|
-
if (!finalSpans.length)
|
|
8963
|
+
if (!finalSpans.length) {
|
|
8964
|
+
resultCallback({
|
|
8965
|
+
code: ExportResultCode.SUCCESS
|
|
8966
|
+
});
|
|
8967
|
+
return;
|
|
8968
|
+
}
|
|
8964
8969
|
const otlpLikeStructure = {
|
|
8965
8970
|
resource: {
|
|
8966
8971
|
attributes: {
|