bitfab 0.38.5 → 0.38.6
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/autoTrace.cjs +8 -1
- package/dist/autoTrace.cjs.map +1 -1
- package/dist/autoTrace.d.cts +2 -2
- package/dist/autoTrace.d.ts +2 -2
- package/dist/autoTrace.js +1 -1
- package/dist/{chunk-ZXJ3VQLF.js → chunk-O75EYGVO.js} +2 -2
- package/dist/{chunk-ZXJ3VQLF.js.map → chunk-O75EYGVO.js.map} +1 -1
- package/dist/{chunk-LQDCJPVV.js → chunk-YCTQONNS.js} +13 -8
- package/dist/chunk-YCTQONNS.js.map +1 -0
- package/dist/{chunk-J47KPS77.js → chunk-ZUD7OFYB.js} +9 -2
- package/dist/{chunk-J47KPS77.js.map → chunk-ZUD7OFYB.js.map} +1 -1
- package/dist/index.cjs +18 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -5
- package/dist/index.d.ts +8 -5
- package/dist/index.js +3 -3
- package/dist/node.cjs +18 -6
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +3 -3
- package/dist/{replay-HTVEYGC5.js → replay-K3UMQAKO.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-LQDCJPVV.js.map +0 -1
- /package/dist/{replay-HTVEYGC5.js.map → replay-K3UMQAKO.js.map} +0 -0
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
runWithAutoTraceContext,
|
|
6
6
|
runWithAutoTraceNodeConfiguration,
|
|
7
7
|
runWithAutoTraceRootContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZUD7OFYB.js";
|
|
9
9
|
import {
|
|
10
10
|
BitfabError,
|
|
11
11
|
DEFAULT_SERVICE_URL,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
toJsonSafe,
|
|
20
20
|
toJsonSafeReport,
|
|
21
21
|
warnOnce
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-O75EYGVO.js";
|
|
23
23
|
import {
|
|
24
24
|
__privateAdd,
|
|
25
25
|
__privateGet,
|
|
@@ -2393,8 +2393,9 @@ var Bitfab = class {
|
|
|
2393
2393
|
* Decorate a class method as an automatically expanded trace root.
|
|
2394
2394
|
*
|
|
2395
2395
|
* Build instrumentation turns repository functions called beneath this
|
|
2396
|
-
* method into nested spans
|
|
2397
|
-
*
|
|
2396
|
+
* method into nested spans that capture inputs, outputs, and errors by
|
|
2397
|
+
* default. A confirmed capture policy can narrow rich capture to selected
|
|
2398
|
+
* function IDs.
|
|
2398
2399
|
* Without a compatible build transform, this still records the decorated
|
|
2399
2400
|
* method as a normal rich root span but cannot discover child calls.
|
|
2400
2401
|
*
|
|
@@ -2604,7 +2605,7 @@ var Bitfab = class {
|
|
|
2604
2605
|
type: nodeConfiguration?.type ?? "function",
|
|
2605
2606
|
captureWhen: "nested",
|
|
2606
2607
|
functionId: definition.id,
|
|
2607
|
-
captureContent: nodeConfiguration !== void 0 || capturePolicy.has(definition.id),
|
|
2608
|
+
captureContent: nodeConfiguration !== void 0 || capturePolicy === void 0 || capturePolicy.has(definition.id),
|
|
2608
2609
|
autoTraceDefinition: definition,
|
|
2609
2610
|
...nodeConfiguration?.testRunId !== void 0 && {
|
|
2610
2611
|
testRunId: nodeConfiguration.testRunId
|
|
@@ -2669,7 +2670,11 @@ var Bitfab = class {
|
|
|
2669
2670
|
const functionIds = Array.isArray(policy.functionIds) ? policy.functionIds.filter(
|
|
2670
2671
|
(id) => typeof id === "string" && id.startsWith(`${AUTO_TRACE_PROTOCOL}:`)
|
|
2671
2672
|
).slice(0, DEFAULT_AUTO_TRACE_MAX_SPANS) : [];
|
|
2672
|
-
__setBitfabAutoTraceCapturePolicy(
|
|
2673
|
+
__setBitfabAutoTraceCapturePolicy(
|
|
2674
|
+
this,
|
|
2675
|
+
traceFunctionKey,
|
|
2676
|
+
policy.revision === null ? void 0 : functionIds
|
|
2677
|
+
);
|
|
2673
2678
|
state.refreshAfter = Date.now() + AUTO_TRACE_POLICY_REFRESH_MS;
|
|
2674
2679
|
}).catch(() => {
|
|
2675
2680
|
state.refreshAfter = Date.now() + AUTO_TRACE_POLICY_RETRY_MS;
|
|
@@ -3806,7 +3811,7 @@ var Bitfab = class {
|
|
|
3806
3811
|
`Function is wrapped with trace function key '${wrappedKey}' but replay was called with '${traceFunctionKey}'. Pass matching keys, or pass the unwrapped function to replay it under the explicit key.`
|
|
3807
3812
|
);
|
|
3808
3813
|
}
|
|
3809
|
-
const { replay: doReplay } = await import("./replay-
|
|
3814
|
+
const { replay: doReplay } = await import("./replay-K3UMQAKO.js");
|
|
3810
3815
|
return doReplay(
|
|
3811
3816
|
this.httpClient,
|
|
3812
3817
|
this.serviceUrl,
|
|
@@ -4050,4 +4055,4 @@ export {
|
|
|
4050
4055
|
finalizers,
|
|
4051
4056
|
defineReplayRegistry
|
|
4052
4057
|
};
|
|
4053
|
-
//# sourceMappingURL=chunk-
|
|
4058
|
+
//# sourceMappingURL=chunk-YCTQONNS.js.map
|