@bitfab/sdk 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.
@@ -8,7 +8,7 @@ import {
8
8
  replayContextReady,
9
9
  runWithReplayContext,
10
10
  unrefTimer
11
- } from "./chunk-YOM2DADY.js";
11
+ } from "./chunk-A7NX4OKG.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-QCPTN2U6.js.map
2053
+ //# sourceMappingURL=chunk-PXNFY22G.js.map
@@ -7,7 +7,7 @@ import {
7
7
  flushTraces,
8
8
  parseRetryAfterMs,
9
9
  serializePayloadBody
10
- } from "./chunk-JN3C4PIV.js";
10
+ } from "./chunk-GURR5AWG.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-4DPVYNI3.js.map
21
+ //# sourceMappingURL=http-C44ETCJK.js.map
@@ -7,7 +7,7 @@ import {
7
7
  flushTraces,
8
8
  parseRetryAfterMs,
9
9
  serializePayloadBody
10
- } from "./chunk-YOM2DADY.js";
10
+ } from "./chunk-A7NX4OKG.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-IFJ4TUVR.js.map
22
+ //# sourceMappingURL=http-QX6O4EDS.js.map
package/dist/index.cjs CHANGED
@@ -42,7 +42,7 @@ var __version__, __packageName__;
42
42
  var init_version_generated = __esm({
43
43
  "src/version.generated.ts"() {
44
44
  "use strict";
45
- __version__ = "0.64.13";
45
+ __version__ = "0.64.14";
46
46
  __packageName__ = "@bitfab/sdk";
47
47
  }
48
48
  });
@@ -2737,6 +2737,12 @@ var init_http = __esm({
2737
2737
  const response = await this.get(endpoint);
2738
2738
  return response.span;
2739
2739
  }
2740
+ async getSpan(spanId) {
2741
+ const response = await this.get(
2742
+ `/api/sdk/spans/${encodeURIComponent(spanId)}`
2743
+ );
2744
+ return response.span;
2745
+ }
2740
2746
  /**
2741
2747
  * GET a JSON endpoint on the service with the client's API key. Throws a
2742
2748
  * `BitfabError` carrying the status text for any non-2xx response.
@@ -11477,6 +11483,12 @@ var Bitfab = class {
11477
11483
  }
11478
11484
  return this.httpClient.getTraceSpan(traceId, lookup);
11479
11485
  }
11486
+ async getSpan(spanId) {
11487
+ if (typeof spanId !== "string" || spanId.trim().length === 0) {
11488
+ throw new BitfabError("spanId must be a non-empty string");
11489
+ }
11490
+ return this.httpClient.getSpan(spanId);
11491
+ }
11480
11492
  /**
11481
11493
  * Get a function wrapper for a specific trace function key.
11482
11494
  *