@bitfab/sdk 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.
package/dist/index.cjs CHANGED
@@ -683,7 +683,7 @@ __export(index_exports, {
683
683
  module.exports = __toCommonJS(index_exports);
684
684
 
685
685
  // src/version.generated.ts
686
- var __version__ = "0.28.6";
686
+ var __version__ = "0.28.7";
687
687
 
688
688
  // src/constants.ts
689
689
  var DEFAULT_SERVICE_URL = "https://bitfab.ai";
@@ -3334,6 +3334,8 @@ var noOpTrace = {
3334
3334
  setMetadata() {
3335
3335
  },
3336
3336
  addContext() {
3337
+ },
3338
+ drop() {
3337
3339
  }
3338
3340
  };
3339
3341
  function getCurrentSpan() {
@@ -3410,6 +3412,12 @@ function getCurrentTrace() {
3410
3412
  traceState.contexts.push(context);
3411
3413
  } catch {
3412
3414
  }
3415
+ },
3416
+ drop() {
3417
+ try {
3418
+ getOrCreateTraceState().dropped = true;
3419
+ } catch {
3420
+ }
3413
3421
  }
3414
3422
  };
3415
3423
  }
@@ -3999,6 +4007,7 @@ var Bitfab = class {
3999
4007
  testRunId: traceState?.testRunId,
4000
4008
  inputSourceTraceId: traceState?.inputSourceTraceId,
4001
4009
  dbSnapshotRef: traceState?.dbSnapshotRef,
4010
+ dropped: traceState?.dropped,
4002
4011
  // Built AFTER the wrapped fn finished, so `accessed` reflects
4003
4012
  // whether customer code obtained the branch URL during this
4004
4013
  // item. Omitted entirely when no lease was attached, so the
@@ -4244,6 +4253,7 @@ var Bitfab = class {
4244
4253
  traceFunctionKey: params.traceFunctionKey,
4245
4254
  externalTrace: rawTrace,
4246
4255
  completed: true,
4256
+ ...params.dropped && { dropped: true },
4247
4257
  ...params.sessionId && { sessionId: params.sessionId },
4248
4258
  ...params.testRunId && { testRunId: params.testRunId }
4249
4259
  });