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.
package/dist/index.cjs CHANGED
@@ -692,7 +692,7 @@ __export(index_exports, {
692
692
  module.exports = __toCommonJS(index_exports);
693
693
 
694
694
  // src/version.generated.ts
695
- var __version__ = "0.28.6";
695
+ var __version__ = "0.28.7";
696
696
 
697
697
  // src/constants.ts
698
698
  var DEFAULT_SERVICE_URL = "https://bitfab.ai";
@@ -3343,6 +3343,8 @@ var noOpTrace = {
3343
3343
  setMetadata() {
3344
3344
  },
3345
3345
  addContext() {
3346
+ },
3347
+ drop() {
3346
3348
  }
3347
3349
  };
3348
3350
  function getCurrentSpan() {
@@ -3419,6 +3421,12 @@ function getCurrentTrace() {
3419
3421
  traceState.contexts.push(context);
3420
3422
  } catch {
3421
3423
  }
3424
+ },
3425
+ drop() {
3426
+ try {
3427
+ getOrCreateTraceState().dropped = true;
3428
+ } catch {
3429
+ }
3422
3430
  }
3423
3431
  };
3424
3432
  }
@@ -4008,6 +4016,7 @@ var Bitfab = class {
4008
4016
  testRunId: traceState?.testRunId,
4009
4017
  inputSourceTraceId: traceState?.inputSourceTraceId,
4010
4018
  dbSnapshotRef: traceState?.dbSnapshotRef,
4019
+ dropped: traceState?.dropped,
4011
4020
  // Built AFTER the wrapped fn finished, so `accessed` reflects
4012
4021
  // whether customer code obtained the branch URL during this
4013
4022
  // item. Omitted entirely when no lease was attached, so the
@@ -4253,6 +4262,7 @@ var Bitfab = class {
4253
4262
  traceFunctionKey: params.traceFunctionKey,
4254
4263
  externalTrace: rawTrace,
4255
4264
  completed: true,
4265
+ ...params.dropped && { dropped: true },
4256
4266
  ...params.sessionId && { sessionId: params.sessionId },
4257
4267
  ...params.testRunId && { testRunId: params.testRunId }
4258
4268
  });