bitfab 0.64.13 → 0.64.14

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-K64TGFIC.js";
20
+ } from "./chunk-YYSL4RYF.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-NZWWPT76.js";
39
+ } from "./chunk-DLH4OESM.js";
40
40
  import {
41
41
  __privateAdd,
42
42
  __privateGet,
@@ -5925,6 +5925,12 @@ var Bitfab = class {
5925
5925
  }
5926
5926
  return this.httpClient.getTraceSpan(traceId, lookup);
5927
5927
  }
5928
+ async getSpan(spanId) {
5929
+ if (typeof spanId !== "string" || spanId.trim().length === 0) {
5930
+ throw new BitfabError("spanId must be a non-empty string");
5931
+ }
5932
+ return this.httpClient.getSpan(spanId);
5933
+ }
5928
5934
  /**
5929
5935
  * Get a function wrapper for a specific trace function key.
5930
5936
  *
@@ -6277,7 +6283,7 @@ var Bitfab = class {
6277
6283
  await runWithSeedContext({ traceId }, async () => target(...args));
6278
6284
  } finally {
6279
6285
  try {
6280
- const { flushTraces: flushTraces2 } = await import("./http-U5ECMEG6.js");
6286
+ const { flushTraces: flushTraces2 } = await import("./http-VC2DY72V.js");
6281
6287
  await flushTraces2(3e4);
6282
6288
  } finally {
6283
6289
  unrecorded = activeTraceStates.delete(traceId);
@@ -6336,7 +6342,7 @@ var Bitfab = class {
6336
6342
  `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.`
6337
6343
  );
6338
6344
  }
6339
- const { replay: doReplay } = await import("./replay-JRXWG3LL.js");
6345
+ const { replay: doReplay } = await import("./replay-WC7H2E4J.js");
6340
6346
  return doReplay(
6341
6347
  this.httpClient,
6342
6348
  this.serviceUrl,
@@ -6682,7 +6688,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
6682
6688
  sessionId: seedCase.sessionId
6683
6689
  })
6684
6690
  );
6685
- const { flushTraces: flushTraces2 } = await import("./http-U5ECMEG6.js");
6691
+ const { flushTraces: flushTraces2 } = await import("./http-VC2DY72V.js");
6686
6692
  await flushTraces2(3e4);
6687
6693
  return { pipeline, traceFunctionKey, traceIds };
6688
6694
  }
@@ -6727,4 +6733,4 @@ export {
6727
6733
  reseedFromRegistry,
6728
6734
  seedFromRegistry
6729
6735
  };
6730
- //# sourceMappingURL=chunk-MRGSDZVX.js.map
6736
+ //# sourceMappingURL=chunk-6XEU55WF.js.map