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
package/dist/index.d.cts
CHANGED
|
@@ -2183,8 +2183,9 @@ declare class Bitfab {
|
|
|
2183
2183
|
* Decorate a class method as an automatically expanded trace root.
|
|
2184
2184
|
*
|
|
2185
2185
|
* Build instrumentation turns repository functions called beneath this
|
|
2186
|
-
* method into nested spans
|
|
2187
|
-
*
|
|
2186
|
+
* method into nested spans that capture inputs, outputs, and errors by
|
|
2187
|
+
* default. A confirmed capture policy can narrow rich capture to selected
|
|
2188
|
+
* function IDs.
|
|
2188
2189
|
* Without a compatible build transform, this still records the decorated
|
|
2189
2190
|
* method as a normal rich root span but cannot discover child calls.
|
|
2190
2191
|
*
|
|
@@ -2198,8 +2199,10 @@ declare class Bitfab {
|
|
|
2198
2199
|
*
|
|
2199
2200
|
* This is the function-oriented equivalent of {@link Bitfab.trace}. Build
|
|
2200
2201
|
* instrumentation turns repository functions called beneath the wrapped
|
|
2201
|
-
* function into nested spans
|
|
2202
|
-
*
|
|
2202
|
+
* function into nested spans that capture inputs, outputs, and errors by
|
|
2203
|
+
* default. A confirmed capture policy can narrow rich capture to selected
|
|
2204
|
+
* function IDs. Without a compatible transform, this still records one
|
|
2205
|
+
* normal rich root span and runs the function unchanged.
|
|
2203
2206
|
*
|
|
2204
2207
|
* @param traceFunctionKey - Groups traces and their capture policy.
|
|
2205
2208
|
* @param optionsOrFn - Options or the workflow entrypoint to wrap.
|
|
@@ -2786,7 +2789,7 @@ declare class BitfabFunction {
|
|
|
2786
2789
|
/**
|
|
2787
2790
|
* SDK version from package.json (injected at build time)
|
|
2788
2791
|
*/
|
|
2789
|
-
declare const __version__ = "0.38.
|
|
2792
|
+
declare const __version__ = "0.38.6";
|
|
2790
2793
|
|
|
2791
2794
|
/**
|
|
2792
2795
|
* Constants for the Bitfab SDK.
|
package/dist/index.d.ts
CHANGED
|
@@ -2183,8 +2183,9 @@ declare class Bitfab {
|
|
|
2183
2183
|
* Decorate a class method as an automatically expanded trace root.
|
|
2184
2184
|
*
|
|
2185
2185
|
* Build instrumentation turns repository functions called beneath this
|
|
2186
|
-
* method into nested spans
|
|
2187
|
-
*
|
|
2186
|
+
* method into nested spans that capture inputs, outputs, and errors by
|
|
2187
|
+
* default. A confirmed capture policy can narrow rich capture to selected
|
|
2188
|
+
* function IDs.
|
|
2188
2189
|
* Without a compatible build transform, this still records the decorated
|
|
2189
2190
|
* method as a normal rich root span but cannot discover child calls.
|
|
2190
2191
|
*
|
|
@@ -2198,8 +2199,10 @@ declare class Bitfab {
|
|
|
2198
2199
|
*
|
|
2199
2200
|
* This is the function-oriented equivalent of {@link Bitfab.trace}. Build
|
|
2200
2201
|
* instrumentation turns repository functions called beneath the wrapped
|
|
2201
|
-
* function into nested spans
|
|
2202
|
-
*
|
|
2202
|
+
* function into nested spans that capture inputs, outputs, and errors by
|
|
2203
|
+
* default. A confirmed capture policy can narrow rich capture to selected
|
|
2204
|
+
* function IDs. Without a compatible transform, this still records one
|
|
2205
|
+
* normal rich root span and runs the function unchanged.
|
|
2203
2206
|
*
|
|
2204
2207
|
* @param traceFunctionKey - Groups traces and their capture policy.
|
|
2205
2208
|
* @param optionsOrFn - Options or the workflow entrypoint to wrap.
|
|
@@ -2786,7 +2789,7 @@ declare class BitfabFunction {
|
|
|
2786
2789
|
/**
|
|
2787
2790
|
* SDK version from package.json (injected at build time)
|
|
2788
2791
|
*/
|
|
2789
|
-
declare const __version__ = "0.38.
|
|
2792
|
+
declare const __version__ = "0.38.6";
|
|
2790
2793
|
|
|
2791
2794
|
/**
|
|
2792
2795
|
* Constants for the Bitfab SDK.
|
package/dist/index.js
CHANGED
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
getCurrentReplayBranch,
|
|
22
22
|
getCurrentSpan,
|
|
23
23
|
getCurrentTrace
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-YCTQONNS.js";
|
|
25
|
+
import "./chunk-ZUD7OFYB.js";
|
|
26
26
|
import {
|
|
27
27
|
BITFAB_PROGRESS_PREFIX,
|
|
28
28
|
BitfabError,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
flushTraces,
|
|
36
36
|
reportReplayProgress,
|
|
37
37
|
serializeReplayResult
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-O75EYGVO.js";
|
|
39
39
|
import "./chunk-H6LZRFMN.js";
|
|
40
40
|
export {
|
|
41
41
|
BITFAB_PROGRESS_PREFIX,
|
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.38.
|
|
100
|
+
__version__ = "0.38.6";
|
|
101
101
|
__packageName__ = "bitfab";
|
|
102
102
|
}
|
|
103
103
|
});
|
|
@@ -3903,11 +3903,18 @@ function currentAutoTraceScope() {
|
|
|
3903
3903
|
}
|
|
3904
3904
|
function __setBitfabAutoTraceCapturePolicy(client, traceFunctionKey, functionIds) {
|
|
3905
3905
|
const policies = autoTraceState.capturePolicies.get(client) ?? /* @__PURE__ */ new Map();
|
|
3906
|
+
if (functionIds === void 0) {
|
|
3907
|
+
policies.delete(traceFunctionKey);
|
|
3908
|
+
if (policies.size === 0) {
|
|
3909
|
+
autoTraceState.capturePolicies.delete(client);
|
|
3910
|
+
}
|
|
3911
|
+
return;
|
|
3912
|
+
}
|
|
3906
3913
|
policies.set(traceFunctionKey, new Set(functionIds));
|
|
3907
3914
|
autoTraceState.capturePolicies.set(client, policies);
|
|
3908
3915
|
}
|
|
3909
3916
|
function getAutoTraceCapturePolicy(client, traceFunctionKey) {
|
|
3910
|
-
return autoTraceState.capturePolicies.get(client)?.get(traceFunctionKey)
|
|
3917
|
+
return autoTraceState.capturePolicies.get(client)?.get(traceFunctionKey);
|
|
3911
3918
|
}
|
|
3912
3919
|
|
|
3913
3920
|
// src/optionalPeer.ts
|
|
@@ -5696,8 +5703,9 @@ var Bitfab = class {
|
|
|
5696
5703
|
* Decorate a class method as an automatically expanded trace root.
|
|
5697
5704
|
*
|
|
5698
5705
|
* Build instrumentation turns repository functions called beneath this
|
|
5699
|
-
* method into nested spans
|
|
5700
|
-
*
|
|
5706
|
+
* method into nested spans that capture inputs, outputs, and errors by
|
|
5707
|
+
* default. A confirmed capture policy can narrow rich capture to selected
|
|
5708
|
+
* function IDs.
|
|
5701
5709
|
* Without a compatible build transform, this still records the decorated
|
|
5702
5710
|
* method as a normal rich root span but cannot discover child calls.
|
|
5703
5711
|
*
|
|
@@ -5907,7 +5915,7 @@ var Bitfab = class {
|
|
|
5907
5915
|
type: nodeConfiguration?.type ?? "function",
|
|
5908
5916
|
captureWhen: "nested",
|
|
5909
5917
|
functionId: definition.id,
|
|
5910
|
-
captureContent: nodeConfiguration !== void 0 || capturePolicy.has(definition.id),
|
|
5918
|
+
captureContent: nodeConfiguration !== void 0 || capturePolicy === void 0 || capturePolicy.has(definition.id),
|
|
5911
5919
|
autoTraceDefinition: definition,
|
|
5912
5920
|
...nodeConfiguration?.testRunId !== void 0 && {
|
|
5913
5921
|
testRunId: nodeConfiguration.testRunId
|
|
@@ -5972,7 +5980,11 @@ var Bitfab = class {
|
|
|
5972
5980
|
const functionIds = Array.isArray(policy.functionIds) ? policy.functionIds.filter(
|
|
5973
5981
|
(id) => typeof id === "string" && id.startsWith(`${AUTO_TRACE_PROTOCOL}:`)
|
|
5974
5982
|
).slice(0, DEFAULT_AUTO_TRACE_MAX_SPANS) : [];
|
|
5975
|
-
__setBitfabAutoTraceCapturePolicy(
|
|
5983
|
+
__setBitfabAutoTraceCapturePolicy(
|
|
5984
|
+
this,
|
|
5985
|
+
traceFunctionKey,
|
|
5986
|
+
policy.revision === null ? void 0 : functionIds
|
|
5987
|
+
);
|
|
5976
5988
|
state.refreshAfter = Date.now() + AUTO_TRACE_POLICY_REFRESH_MS;
|
|
5977
5989
|
}).catch(() => {
|
|
5978
5990
|
state.refreshAfter = Date.now() + AUTO_TRACE_POLICY_RETRY_MS;
|