@bitfab/sdk 0.64.13 → 0.64.15
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/cloudReplay.py +250 -55
- package/dist/{chunk-NEQA2IBO.js → chunk-2MHRNZH5.js} +10 -5
- package/dist/{chunk-NEQA2IBO.js.map → chunk-2MHRNZH5.js.map} +1 -1
- package/dist/{chunk-QCPTN2U6.js → chunk-7ZJ7KXEV.js} +2 -2
- package/dist/{chunk-JN3C4PIV.js → chunk-KVGRTCIE.js} +8 -2
- package/dist/{chunk-JN3C4PIV.js.map → chunk-KVGRTCIE.js.map} +1 -1
- package/dist/{chunk-42RXX24H.js → chunk-NYLVYTBO.js} +12 -6
- package/dist/{chunk-42RXX24H.js.map → chunk-NYLVYTBO.js.map} +1 -1
- package/dist/{chunk-YOM2DADY.js → chunk-Z4DIFZTO.js} +8 -2
- package/dist/{chunk-YOM2DADY.js.map → chunk-Z4DIFZTO.js.map} +1 -1
- package/dist/{http-4DPVYNI3.js → http-36VJ3FFM.js} +2 -2
- package/dist/{http-IFJ4TUVR.js → http-IQ2AC36B.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-TAZXZYWL.js → replay-2QFPGFS7.js} +3 -3
- package/dist/replayCli.js +13 -2
- package/dist/replayCli.js.map +1 -1
- package/dist/seedCli.js +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-QCPTN2U6.js.map → chunk-7ZJ7KXEV.js.map} +0 -0
- /package/dist/{http-4DPVYNI3.js.map → http-36VJ3FFM.js.map} +0 -0
- /package/dist/{http-IFJ4TUVR.js.map → http-IQ2AC36B.js.map} +0 -0
- /package/dist/{replay-TAZXZYWL.js.map → replay-2QFPGFS7.js.map} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
flushTraces,
|
|
8
8
|
parseRetryAfterMs,
|
|
9
9
|
serializePayloadBody
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KVGRTCIE.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-
|
|
21
|
+
//# sourceMappingURL=http-36VJ3FFM.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
flushTraces,
|
|
8
8
|
parseRetryAfterMs,
|
|
9
9
|
serializePayloadBody
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Z4DIFZTO.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-
|
|
22
|
+
//# sourceMappingURL=http-IQ2AC36B.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.
|
|
45
|
+
__version__ = "0.64.15";
|
|
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
|
*
|