bitfab 0.28.6 → 0.28.7

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.
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-5E4BUIYA.js";
14
14
 
15
15
  // src/version.generated.ts
16
- var __version__ = "0.28.6";
16
+ var __version__ = "0.28.7";
17
17
 
18
18
  // src/constants.ts
19
19
  var DEFAULT_SERVICE_URL = "https://bitfab.ai";
@@ -2641,6 +2641,8 @@ var noOpTrace = {
2641
2641
  setMetadata() {
2642
2642
  },
2643
2643
  addContext() {
2644
+ },
2645
+ drop() {
2644
2646
  }
2645
2647
  };
2646
2648
  function getCurrentSpan() {
@@ -2717,6 +2719,12 @@ function getCurrentTrace() {
2717
2719
  traceState.contexts.push(context);
2718
2720
  } catch {
2719
2721
  }
2722
+ },
2723
+ drop() {
2724
+ try {
2725
+ getOrCreateTraceState().dropped = true;
2726
+ } catch {
2727
+ }
2720
2728
  }
2721
2729
  };
2722
2730
  }
@@ -3306,6 +3314,7 @@ var Bitfab = class {
3306
3314
  testRunId: traceState?.testRunId,
3307
3315
  inputSourceTraceId: traceState?.inputSourceTraceId,
3308
3316
  dbSnapshotRef: traceState?.dbSnapshotRef,
3317
+ dropped: traceState?.dropped,
3309
3318
  // Built AFTER the wrapped fn finished, so `accessed` reflects
3310
3319
  // whether customer code obtained the branch URL during this
3311
3320
  // item. Omitted entirely when no lease was attached, so the
@@ -3551,6 +3560,7 @@ var Bitfab = class {
3551
3560
  traceFunctionKey: params.traceFunctionKey,
3552
3561
  externalTrace: rawTrace,
3553
3562
  completed: true,
3563
+ ...params.dropped && { dropped: true },
3554
3564
  ...params.sessionId && { sessionId: params.sessionId },
3555
3565
  ...params.testRunId && { testRunId: params.testRunId }
3556
3566
  });
@@ -3867,4 +3877,4 @@ export {
3867
3877
  BitfabFunction,
3868
3878
  finalizers
3869
3879
  };
3870
- //# sourceMappingURL=chunk-P4YXY7J4.js.map
3880
+ //# sourceMappingURL=chunk-TIMBGA3A.js.map