@bitfab/sdk 0.41.0 → 0.42.0

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.
@@ -14,14 +14,14 @@ import {
14
14
  serializeValue,
15
15
  toJsonSafe,
16
16
  toJsonSafeReport
17
- } from "./chunk-RWZYZRYI.js";
17
+ } from "./chunk-BG3A5HNC.js";
18
18
  import {
19
19
  BitfabError,
20
20
  DEFAULT_SERVICE_URL,
21
21
  HttpClient,
22
22
  getReplayContext,
23
23
  warnOnce
24
- } from "./chunk-IFYX3KW6.js";
24
+ } from "./chunk-UGFTBSGS.js";
25
25
  import {
26
26
  __privateAdd,
27
27
  __privateGet,
@@ -3653,6 +3653,9 @@ var Bitfab = class {
3653
3653
  ...replayCtxAtStart?.inputSourceTraceId && {
3654
3654
  inputSourceTraceId: replayCtxAtStart.inputSourceTraceId
3655
3655
  },
3656
+ ...replayCtxAtStart?.replayAttempt !== void 0 && {
3657
+ replayAttempt: replayCtxAtStart.replayAttempt
3658
+ },
3656
3659
  dbSnapshotRef
3657
3660
  });
3658
3661
  registeredTraceId = traceId;
@@ -3703,6 +3706,7 @@ var Bitfab = class {
3703
3706
  contexts: traceState?.contexts ?? [],
3704
3707
  testRunId: traceState?.testRunId,
3705
3708
  inputSourceTraceId: traceState?.inputSourceTraceId,
3709
+ replayAttempt: traceState?.replayAttempt,
3706
3710
  dbSnapshotRef: traceState?.dbSnapshotRef,
3707
3711
  dropped: traceState?.dropped,
3708
3712
  ingestionType: traceState?.ingestionType,
@@ -4100,6 +4104,9 @@ var Bitfab = class {
4100
4104
  if (params.inputSourceTraceId) {
4101
4105
  rawTrace.input_source_trace_id = params.inputSourceTraceId;
4102
4106
  }
4107
+ if (params.replayAttempt !== void 0) {
4108
+ rawTrace.replay_attempt = params.replayAttempt;
4109
+ }
4103
4110
  if (params.dbSnapshotRef) {
4104
4111
  rawTrace.db_snapshot_ref = params.dbSnapshotRef;
4105
4112
  }
@@ -4330,7 +4337,7 @@ var Bitfab = class {
4330
4337
  `Function is wrapped with trace function key '${wrappedKey}' but replay was called with '${traceFunctionKey}'. Pass matching keys, or pass the unwrapped function to replay it under the explicit key.`
4331
4338
  );
4332
4339
  }
4333
- const { replay: doReplay } = await import("./replay-HMMWDSLB.js");
4340
+ const { replay: doReplay } = await import("./replay-PLACY77M.js");
4334
4341
  return doReplay(
4335
4342
  this.httpClient,
4336
4343
  this.serviceUrl,
@@ -4583,7 +4590,7 @@ async function seedFromRegistry(registry, pipeline, cases) {
4583
4590
  sessionId: seedCase.sessionId
4584
4591
  })
4585
4592
  );
4586
- const { flushTraces: flushTraces2 } = await import("./http-UCJCOKW7.js");
4593
+ const { flushTraces: flushTraces2 } = await import("./http-F5L466DI.js");
4587
4594
  await flushTraces2(3e4);
4588
4595
  return { pipeline, traceFunctionKey, traceIds };
4589
4596
  }
@@ -4616,4 +4623,4 @@ export {
4616
4623
  defineReplayRegistry,
4617
4624
  seedFromRegistry
4618
4625
  };
4619
- //# sourceMappingURL=chunk-U3AKIFW3.js.map
4626
+ //# sourceMappingURL=chunk-BC5OYWAM.js.map