@lark-apaas/observable 1.0.3-alpha.4 → 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.cjs CHANGED
@@ -8962,7 +8962,12 @@ var CustomTraceExporter = class {
8962
8962
  app_env: isDev ? AppEnv.Dev : AppEnv.Prod
8963
8963
  };
8964
8964
  const finalSpans = spans.filter((span) => !(span.attributes ?? {})[TraceDropToken]);
8965
- if (!finalSpans.length) return;
8965
+ if (!finalSpans.length) {
8966
+ resultCallback({
8967
+ code: core.ExportResultCode.SUCCESS
8968
+ });
8969
+ return;
8970
+ }
8966
8971
  const otlpLikeStructure = {
8967
8972
  resource: {
8968
8973
  attributes: {