@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.
package/dist/index.d.cts CHANGED
@@ -668,6 +668,7 @@ declare class HttpClient {
668
668
  lookupFunction<T>(name: string): Promise<T>;
669
669
  getSimulationPlan(): Promise<SimulationPlanResponse>;
670
670
  getTraceSpan(traceId: string, lookup: SpanLookup): Promise<CapturedSpan | null>;
671
+ getSpan(spanId: string): Promise<CapturedSpan | null>;
671
672
  /**
672
673
  * GET a JSON endpoint on the service with the client's API key. Throws a
673
674
  * `BitfabError` carrying the status text for any non-2xx response.
@@ -3684,6 +3685,7 @@ declare class Bitfab {
3684
3685
  * as `"first"` or a zero-based index to select a different match.
3685
3686
  */
3686
3687
  getTraceSpan(traceId: string, lookup: SpanLookup): Promise<CapturedSpan | null>;
3688
+ getSpan(spanId: string): Promise<CapturedSpan | null>;
3687
3689
  /**
3688
3690
  * Get a function wrapper for a specific trace function key.
3689
3691
  *
@@ -3996,7 +3998,7 @@ interface CommitRef {
3996
3998
  /**
3997
3999
  * SDK version from package.json (injected at build time)
3998
4000
  */
3999
- declare const __version__ = "0.64.13";
4001
+ declare const __version__ = "0.64.14";
4000
4002
 
4001
4003
  /**
4002
4004
  * Constants for the Bitfab SDK.
package/dist/index.d.ts CHANGED
@@ -668,6 +668,7 @@ declare class HttpClient {
668
668
  lookupFunction<T>(name: string): Promise<T>;
669
669
  getSimulationPlan(): Promise<SimulationPlanResponse>;
670
670
  getTraceSpan(traceId: string, lookup: SpanLookup): Promise<CapturedSpan | null>;
671
+ getSpan(spanId: string): Promise<CapturedSpan | null>;
671
672
  /**
672
673
  * GET a JSON endpoint on the service with the client's API key. Throws a
673
674
  * `BitfabError` carrying the status text for any non-2xx response.
@@ -3684,6 +3685,7 @@ declare class Bitfab {
3684
3685
  * as `"first"` or a zero-based index to select a different match.
3685
3686
  */
3686
3687
  getTraceSpan(traceId: string, lookup: SpanLookup): Promise<CapturedSpan | null>;
3688
+ getSpan(spanId: string): Promise<CapturedSpan | null>;
3687
3689
  /**
3688
3690
  * Get a function wrapper for a specific trace function key.
3689
3691
  *
@@ -3996,7 +3998,7 @@ interface CommitRef {
3996
3998
  /**
3997
3999
  * SDK version from package.json (injected at build time)
3998
4000
  */
3999
- declare const __version__ = "0.64.13";
4001
+ declare const __version__ = "0.64.14";
4000
4002
 
4001
4003
  /**
4002
4004
  * Constants for the Bitfab SDK.
package/dist/index.js CHANGED
@@ -27,7 +27,7 @@ import {
27
27
  getCurrentTrace,
28
28
  reseedFromRegistry,
29
29
  seedFromRegistry
30
- } from "./chunk-42RXX24H.js";
30
+ } from "./chunk-F5ZFL5W6.js";
31
31
  import "./chunk-YWXQM6J3.js";
32
32
  import {
33
33
  BITFAB_PROGRESS_PREFIX,
@@ -36,7 +36,7 @@ import {
36
36
  ReplayError,
37
37
  reportReplayProgress,
38
38
  serializeReplayResult
39
- } from "./chunk-QCPTN2U6.js";
39
+ } from "./chunk-PXNFY22G.js";
40
40
  import {
41
41
  BitfabError,
42
42
  DEFAULT_SERVICE_URL,
@@ -44,7 +44,7 @@ import {
44
44
  MixedTracingError,
45
45
  __version__,
46
46
  flushTraces
47
- } from "./chunk-YOM2DADY.js";
47
+ } from "./chunk-A7NX4OKG.js";
48
48
  import "./chunk-MT36GJMW.js";
49
49
  export {
50
50
  AssertionCategoriesClient,
package/dist/node.cjs CHANGED
@@ -88,7 +88,7 @@ var __version__, __packageName__;
88
88
  var init_version_generated = __esm({
89
89
  "src/version.generated.ts"() {
90
90
  "use strict";
91
- __version__ = "0.64.13";
91
+ __version__ = "0.64.14";
92
92
  __packageName__ = "@bitfab/sdk";
93
93
  }
94
94
  });
@@ -2744,6 +2744,12 @@ var init_http = __esm({
2744
2744
  const response = await this.get(endpoint);
2745
2745
  return response.span;
2746
2746
  }
2747
+ async getSpan(spanId) {
2748
+ const response = await this.get(
2749
+ `/api/sdk/spans/${encodeURIComponent(spanId)}`
2750
+ );
2751
+ return response.span;
2752
+ }
2747
2753
  /**
2748
2754
  * GET a JSON endpoint on the service with the client's API key. Throws a
2749
2755
  * `BitfabError` carrying the status text for any non-2xx response.
@@ -11491,6 +11497,12 @@ var Bitfab = class {
11491
11497
  }
11492
11498
  return this.httpClient.getTraceSpan(traceId, lookup);
11493
11499
  }
11500
+ async getSpan(spanId) {
11501
+ if (typeof spanId !== "string" || spanId.trim().length === 0) {
11502
+ throw new BitfabError("spanId must be a non-empty string");
11503
+ }
11504
+ return this.httpClient.getSpan(spanId);
11505
+ }
11494
11506
  /**
11495
11507
  * Get a function wrapper for a specific trace function key.
11496
11508
  *