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.
- package/dist/{chunk-MRGSDZVX.js → chunk-6XEU55WF.js} +12 -6
- package/dist/{chunk-MRGSDZVX.js.map → chunk-6XEU55WF.js.map} +1 -1
- package/dist/{chunk-NZWWPT76.js → chunk-DLH4OESM.js} +8 -2
- package/dist/{chunk-NZWWPT76.js.map → chunk-DLH4OESM.js.map} +1 -1
- package/dist/{chunk-34AYKC32.js → chunk-Q5XWNTP2.js} +8 -2
- package/dist/{chunk-34AYKC32.js.map → chunk-Q5XWNTP2.js.map} +1 -1
- package/dist/{chunk-QUJBFRGL.js → chunk-WCM64ED6.js} +3 -3
- package/dist/{chunk-K64TGFIC.js → chunk-YYSL4RYF.js} +2 -2
- package/dist/{http-U5ECMEG6.js → http-VC2DY72V.js} +2 -2
- package/dist/{http-RRY6R2TH.js → http-ZZHVL3NT.js} +2 -2
- package/dist/index.cjs +13 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -3
- package/dist/node.cjs +13 -1
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +3 -3
- package/dist/{replay-JRXWG3LL.js → replay-WC7H2E4J.js} +3 -3
- package/dist/replayCli.js +2 -2
- package/dist/seedCli.js +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-QUJBFRGL.js.map → chunk-WCM64ED6.js.map} +0 -0
- /package/dist/{chunk-K64TGFIC.js.map → chunk-YYSL4RYF.js.map} +0 -0
- /package/dist/{http-RRY6R2TH.js.map → http-VC2DY72V.js.map} +0 -0
- /package/dist/{http-U5ECMEG6.js.map → http-ZZHVL3NT.js.map} +0 -0
- /package/dist/{replay-JRXWG3LL.js.map → replay-WC7H2E4J.js.map} +0 -0
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.
|
|
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.
|
|
4001
|
+
declare const __version__ = "0.64.14";
|
|
4000
4002
|
|
|
4001
4003
|
/**
|
|
4002
4004
|
* Constants for the Bitfab SDK.
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
getCurrentTrace,
|
|
37
37
|
reseedFromRegistry,
|
|
38
38
|
seedFromRegistry
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-6XEU55WF.js";
|
|
40
40
|
import "./chunk-YWXQM6J3.js";
|
|
41
41
|
import {
|
|
42
42
|
BITFAB_PROGRESS_PREFIX,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
ReplayError,
|
|
46
46
|
reportReplayProgress,
|
|
47
47
|
serializeReplayResult
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-YYSL4RYF.js";
|
|
49
49
|
import {
|
|
50
50
|
BitfabError,
|
|
51
51
|
DEFAULT_SERVICE_URL,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
MixedTracingError,
|
|
54
54
|
__version__,
|
|
55
55
|
flushTraces
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-DLH4OESM.js";
|
|
57
57
|
import "./chunk-MT36GJMW.js";
|
|
58
58
|
export {
|
|
59
59
|
AssertionCategoriesClient,
|
package/dist/node.cjs
CHANGED
|
@@ -97,7 +97,7 @@ var __version__, __packageName__;
|
|
|
97
97
|
var init_version_generated = __esm({
|
|
98
98
|
"src/version.generated.ts"() {
|
|
99
99
|
"use strict";
|
|
100
|
-
__version__ = "0.64.
|
|
100
|
+
__version__ = "0.64.14";
|
|
101
101
|
__packageName__ = "bitfab";
|
|
102
102
|
}
|
|
103
103
|
});
|
|
@@ -2753,6 +2753,12 @@ var init_http = __esm({
|
|
|
2753
2753
|
const response = await this.get(endpoint);
|
|
2754
2754
|
return response.span;
|
|
2755
2755
|
}
|
|
2756
|
+
async getSpan(spanId) {
|
|
2757
|
+
const response = await this.get(
|
|
2758
|
+
`/api/sdk/spans/${encodeURIComponent(spanId)}`
|
|
2759
|
+
);
|
|
2760
|
+
return response.span;
|
|
2761
|
+
}
|
|
2756
2762
|
/**
|
|
2757
2763
|
* GET a JSON endpoint on the service with the client's API key. Throws a
|
|
2758
2764
|
* `BitfabError` carrying the status text for any non-2xx response.
|
|
@@ -11500,6 +11506,12 @@ var Bitfab = class {
|
|
|
11500
11506
|
}
|
|
11501
11507
|
return this.httpClient.getTraceSpan(traceId, lookup);
|
|
11502
11508
|
}
|
|
11509
|
+
async getSpan(spanId) {
|
|
11510
|
+
if (typeof spanId !== "string" || spanId.trim().length === 0) {
|
|
11511
|
+
throw new BitfabError("spanId must be a non-empty string");
|
|
11512
|
+
}
|
|
11513
|
+
return this.httpClient.getSpan(spanId);
|
|
11514
|
+
}
|
|
11503
11515
|
/**
|
|
11504
11516
|
* Get a function wrapper for a specific trace function key.
|
|
11505
11517
|
*
|