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.
@@ -2,7 +2,7 @@ import {
2
2
  BitfabError,
3
3
  warnOnce,
4
4
  writeOnce
5
- } from "./chunk-34AYKC32.js";
5
+ } from "./chunk-Q5XWNTP2.js";
6
6
 
7
7
  // src/codeChange.ts
8
8
  var NUL = String.fromCharCode(0);
@@ -348,7 +348,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
348
348
  sessionId: seedCase.sessionId
349
349
  })
350
350
  );
351
- const { flushTraces: flushTraces2 } = await import("./http-RRY6R2TH.js");
351
+ const { flushTraces: flushTraces2 } = await import("./http-ZZHVL3NT.js");
352
352
  await flushTraces2(3e4);
353
353
  return { pipeline, traceFunctionKey, traceIds };
354
354
  }
@@ -1042,4 +1042,4 @@ export {
1042
1042
  runRegistryMain,
1043
1043
  runIfEntrypoint
1044
1044
  };
1045
- //# sourceMappingURL=chunk-QUJBFRGL.js.map
1045
+ //# sourceMappingURL=chunk-WCM64ED6.js.map
@@ -8,7 +8,7 @@ import {
8
8
  replayContextReady,
9
9
  runWithReplayContext,
10
10
  unrefTimer
11
- } from "./chunk-NZWWPT76.js";
11
+ } from "./chunk-DLH4OESM.js";
12
12
  import {
13
13
  runWithCaptureSuppressed,
14
14
  warnOnce,
@@ -2050,4 +2050,4 @@ export {
2050
2050
  warnJudgeAssertionsDeprecated,
2051
2051
  replay
2052
2052
  };
2053
- //# sourceMappingURL=chunk-K64TGFIC.js.map
2053
+ //# sourceMappingURL=chunk-YYSL4RYF.js.map
@@ -7,7 +7,7 @@ import {
7
7
  flushTraces,
8
8
  parseRetryAfterMs,
9
9
  serializePayloadBody
10
- } from "./chunk-NZWWPT76.js";
10
+ } from "./chunk-DLH4OESM.js";
11
11
  import "./chunk-MT36GJMW.js";
12
12
  export {
13
13
  BitfabError,
@@ -19,4 +19,4 @@ export {
19
19
  parseRetryAfterMs,
20
20
  serializePayloadBody
21
21
  };
22
- //# sourceMappingURL=http-U5ECMEG6.js.map
22
+ //# sourceMappingURL=http-VC2DY72V.js.map
@@ -7,7 +7,7 @@ import {
7
7
  flushTraces,
8
8
  parseRetryAfterMs,
9
9
  serializePayloadBody
10
- } from "./chunk-34AYKC32.js";
10
+ } from "./chunk-Q5XWNTP2.js";
11
11
  export {
12
12
  BitfabError,
13
13
  HttpClient,
@@ -18,4 +18,4 @@ export {
18
18
  parseRetryAfterMs,
19
19
  serializePayloadBody
20
20
  };
21
- //# sourceMappingURL=http-RRY6R2TH.js.map
21
+ //# sourceMappingURL=http-ZZHVL3NT.js.map
package/dist/index.cjs CHANGED
@@ -51,7 +51,7 @@ var __version__, __packageName__;
51
51
  var init_version_generated = __esm({
52
52
  "src/version.generated.ts"() {
53
53
  "use strict";
54
- __version__ = "0.64.13";
54
+ __version__ = "0.64.14";
55
55
  __packageName__ = "bitfab";
56
56
  }
57
57
  });
@@ -2746,6 +2746,12 @@ var init_http = __esm({
2746
2746
  const response = await this.get(endpoint);
2747
2747
  return response.span;
2748
2748
  }
2749
+ async getSpan(spanId) {
2750
+ const response = await this.get(
2751
+ `/api/sdk/spans/${encodeURIComponent(spanId)}`
2752
+ );
2753
+ return response.span;
2754
+ }
2749
2755
  /**
2750
2756
  * GET a JSON endpoint on the service with the client's API key. Throws a
2751
2757
  * `BitfabError` carrying the status text for any non-2xx response.
@@ -11486,6 +11492,12 @@ var Bitfab = class {
11486
11492
  }
11487
11493
  return this.httpClient.getTraceSpan(traceId, lookup);
11488
11494
  }
11495
+ async getSpan(spanId) {
11496
+ if (typeof spanId !== "string" || spanId.trim().length === 0) {
11497
+ throw new BitfabError("spanId must be a non-empty string");
11498
+ }
11499
+ return this.httpClient.getSpan(spanId);
11500
+ }
11489
11501
  /**
11490
11502
  * Get a function wrapper for a specific trace function key.
11491
11503
  *