@lark-apaas/observable 1.0.3-alpha.3 → 1.0.3-alpha.5

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.d.cts CHANGED
@@ -41,9 +41,9 @@ declare class AppOTelSDK {
41
41
  */
42
42
  startTrace(name: string, parentSpan?: Span): Span;
43
43
  /**
44
- * 丢弃 Span 的工厂函数
45
- * @param {Span} span - 要被丢弃的 Span 对象
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
- * 丢弃 Span 的工厂函数
45
- * @param {Span} span - 要被丢弃的 Span 对象
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
@@ -8842,7 +8842,7 @@ __name(hrTimeToNanosNumber, "hrTimeToNanosNumber");
8842
8842
 
8843
8843
  // package.json
8844
8844
  var package_default = {
8845
- version: "1.0.3-alpha.2"};
8845
+ version: "1.0.3-alpha.4"};
8846
8846
 
8847
8847
  // src/const.ts
8848
8848
  var AppEnv = /* @__PURE__ */ (function(AppEnv2) {
@@ -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) return;
8963
+ if (!finalSpans.length) {
8964
+ resultCallback({
8965
+ code: ExportResultCode.SUCCESS
8966
+ });
8967
+ return;
8968
+ }
8964
8969
  const otlpLikeStructure = {
8965
8970
  resource: {
8966
8971
  attributes: {