bitfab 0.59.1 → 0.60.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.
@@ -17,7 +17,7 @@ import {
17
17
  serializeValue,
18
18
  toJsonSafe,
19
19
  toJsonSafeReport
20
- } from "./chunk-3D5EEY47.js";
20
+ } from "./chunk-7GIZS4E2.js";
21
21
  import {
22
22
  BitfabError,
23
23
  CONTENT_OFF_KEY,
@@ -36,7 +36,7 @@ import {
36
36
  readEnv,
37
37
  recordCallerTraceMetadata,
38
38
  retireTraceMetadata
39
- } from "./chunk-GJCZABUC.js";
39
+ } from "./chunk-HKQGI5WP.js";
40
40
  import {
41
41
  __privateAdd,
42
42
  __privateGet,
@@ -5732,9 +5732,6 @@ var Bitfab = class {
5732
5732
  return {
5733
5733
  traceId,
5734
5734
  addContext: (context) => {
5735
- if (!this.shouldRecord()) {
5736
- return Promise.resolve();
5737
- }
5738
5735
  if (typeof context !== "object" || context === null) {
5739
5736
  return Promise.resolve();
5740
5737
  }
@@ -5743,27 +5740,18 @@ var Bitfab = class {
5743
5740
  });
5744
5741
  },
5745
5742
  setMetadata: (metadata) => {
5746
- if (!this.shouldRecord()) {
5747
- return Promise.resolve();
5748
- }
5749
5743
  if (typeof metadata !== "object" || metadata === null) {
5750
5744
  return Promise.resolve();
5751
5745
  }
5752
5746
  return this.httpClient.patchTrace(traceId, { mergeMetadata: metadata });
5753
5747
  },
5754
5748
  setSessionId: (sessionId) => {
5755
- if (!this.shouldRecord()) {
5756
- return Promise.resolve();
5757
- }
5758
5749
  if (typeof sessionId !== "string" || sessionId.length === 0) {
5759
5750
  return Promise.resolve();
5760
5751
  }
5761
5752
  return this.httpClient.patchTrace(traceId, { setSessionId: sessionId });
5762
5753
  },
5763
5754
  setName: (name) => {
5764
- if (!this.shouldRecord()) {
5765
- return Promise.resolve();
5766
- }
5767
5755
  if (typeof name !== "string" || name.length === 0) {
5768
5756
  return Promise.resolve();
5769
5757
  }
@@ -6147,7 +6135,7 @@ var Bitfab = class {
6147
6135
  await runWithSeedContext({ traceId }, async () => target(...args));
6148
6136
  } finally {
6149
6137
  try {
6150
- const { flushTraces: flushTraces2 } = await import("./http-2QEMP27E.js");
6138
+ const { flushTraces: flushTraces2 } = await import("./http-QKQUDVEX.js");
6151
6139
  await flushTraces2(3e4);
6152
6140
  } finally {
6153
6141
  unrecorded = activeTraceStates.delete(traceId);
@@ -6206,7 +6194,7 @@ var Bitfab = class {
6206
6194
  `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.`
6207
6195
  );
6208
6196
  }
6209
- const { replay: doReplay } = await import("./replay-WYPFFXSU.js");
6197
+ const { replay: doReplay } = await import("./replay-TAYX5PBU.js");
6210
6198
  return doReplay(
6211
6199
  this.httpClient,
6212
6200
  this.serviceUrl,
@@ -6526,7 +6514,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
6526
6514
  sessionId: seedCase.sessionId
6527
6515
  })
6528
6516
  );
6529
- const { flushTraces: flushTraces2 } = await import("./http-2QEMP27E.js");
6517
+ const { flushTraces: flushTraces2 } = await import("./http-QKQUDVEX.js");
6530
6518
  await flushTraces2(3e4);
6531
6519
  return { pipeline, traceFunctionKey, traceIds };
6532
6520
  }
@@ -6570,4 +6558,4 @@ export {
6570
6558
  reseedFromRegistry,
6571
6559
  seedFromRegistry
6572
6560
  };
6573
- //# sourceMappingURL=chunk-NVOQ7YMI.js.map
6561
+ //# sourceMappingURL=chunk-RXKKTRSN.js.map