@rasputin-ai/node 0.11.4 → 0.12.1
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/execution-recorder/adaptive-recording-options.d.ts +2 -2
- package/dist/execution-recorder/adaptive-recording-options.d.ts.map +1 -1
- package/dist/execution-recorder/bind-adaptive-recorder.d.ts.map +1 -1
- package/dist/execution-recorder/dynamic-duration-sampling.d.ts +16 -0
- package/dist/execution-recorder/dynamic-duration-sampling.d.ts.map +1 -0
- package/dist/execution-recorder/execution-journal.d.ts +7 -4
- package/dist/execution-recorder/execution-journal.d.ts.map +1 -1
- package/dist/execution-recorder/execution-recorder-types.d.ts +19 -9
- package/dist/execution-recorder/execution-recorder-types.d.ts.map +1 -1
- package/dist/execution-recorder/execution-recorder.d.ts.map +1 -1
- package/dist/execution-recorder/publish-runtime-state.d.ts +8 -0
- package/dist/execution-recorder/publish-runtime-state.d.ts.map +1 -0
- package/dist/execution-recorder/runtime-state-size-budget.d.ts.map +1 -1
- package/dist/index.js +349 -111
- package/dist/instrument/bun.js +1 -1
- package/dist/instrument/node.js +1 -1
- package/dist/internal.js +347 -110
- package/dist/rasputin-init.d.ts.map +1 -1
- package/dist/sdk-meta.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type ExecutionRecorderMode = 'full' | 'adaptive';
|
|
2
|
-
export declare const sanitizeRecorderMode: (mode: unknown) => ExecutionRecorderMode;
|
|
3
1
|
export declare const sanitizeFullCaptureDurationMs: (value: unknown) => number;
|
|
2
|
+
/** Only literal `true` enables progressive duration sampling. */
|
|
3
|
+
export declare const sanitizeDynamicDurationSampling: (value: unknown) => boolean;
|
|
4
4
|
//# sourceMappingURL=adaptive-recording-options.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adaptive-recording-options.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/adaptive-recording-options.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"adaptive-recording-options.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/adaptive-recording-options.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,6BAA6B,GAAI,OAAO,OAAO,KAAG,MAS9D,CAAC;AAEF,iEAAiE;AACjE,eAAO,MAAM,+BAA+B,GAAI,OAAO,OAAO,KAAG,OAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bind-adaptive-recorder.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/bind-adaptive-recorder.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,cAAc,EACnB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"bind-adaptive-recorder.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/bind-adaptive-recorder.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,cAAc,EACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAG7F,eAAO,MAAM,oBAAoB,GAAI,OAAO;IAC3C,iBAAiB,CAAC,EAAE,wBAAwB,CAAC;IAC7C,eAAe,EAAE,OAAO,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,KAAG;IAAE,OAAO,EAAE,gBAAgB,CAAC;IAAC,MAAM,CAAC,EAAE,uBAAuB,CAAA;CA8ChE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const DYNAMIC_DURATION_SAMPLE_TAIL_AFTER = 5000;
|
|
2
|
+
export declare const DYNAMIC_DURATION_SAMPLE_TAIL_DIVISOR = 100;
|
|
3
|
+
export declare const DYNAMIC_DURATION_SAMPLE_RESET_MS: number;
|
|
4
|
+
export declare const dynamicDurationSampleDivisor: (index: number) => number;
|
|
5
|
+
export declare const shouldSampleDynamicDuration: (index: number) => boolean;
|
|
6
|
+
/** Stay in the tail stage so `% 100` remains exact after MAX_SAFE_INTEGER. */
|
|
7
|
+
export declare const nextDurationSampleIndex: (index: number) => number;
|
|
8
|
+
export declare const createDynamicDurationSampleBuckets: (options: {
|
|
9
|
+
nowMs: () => number;
|
|
10
|
+
maxBuckets?: number;
|
|
11
|
+
resetMs?: number;
|
|
12
|
+
}) => {
|
|
13
|
+
take: (executionType: string, callerFunctionId: string, functionId: string) => boolean;
|
|
14
|
+
stop: () => void;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=dynamic-duration-sampling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dynamic-duration-sampling.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/dynamic-duration-sampling.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,kCAAkC,OAAO,CAAC;AACvD,eAAO,MAAM,oCAAoC,MAAM,CAAC;AACxD,eAAO,MAAM,gCAAgC,QAAiB,CAAC;AAG/D,eAAO,MAAM,4BAA4B,GAAI,OAAO,MAAM,KAAG,MAK5D,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,OAAO,MAAM,KAAG,OAE3D,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,uBAAuB,GAAI,OAAO,MAAM,KAAG,MAOvD,CAAC;AAEF,eAAO,MAAM,kCAAkC,GAAI,SAAS;IAC3D,KAAK,EAAE,MAAM,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB,KAAG;IACH,IAAI,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;IACvF,IAAI,EAAE,MAAM,IAAI,CAAC;CA4CjB,CAAC"}
|
|
@@ -3,18 +3,21 @@
|
|
|
3
3
|
* journal keeps fixed fields in typed arrays and materializes public events only when error state is
|
|
4
4
|
* requested. Pooled storage is bounded and drops every application-value reference before reuse.
|
|
5
5
|
*/
|
|
6
|
-
import type { RuntimeFunctionDefinition } from '@rasputin-ai/core';
|
|
7
|
-
import type { ExecutionEvent } from './execution-recorder-types';
|
|
6
|
+
import type { RuntimeExecutionEvent, RuntimeFunctionDefinition } from '@rasputin-ai/core';
|
|
8
7
|
import type { PreparedFunctionPlan } from './function-plan';
|
|
9
8
|
export declare const KIND_EXIT = 2;
|
|
10
9
|
export declare const KIND_THROW = 3;
|
|
11
10
|
/** Journal payload meaning arguments or a return value were not captured. */
|
|
12
11
|
export declare const ARGS_OMITTED: unique symbol;
|
|
12
|
+
export declare const TIMING_UNAVAILABLE = -1n;
|
|
13
13
|
export type CompactSuppression = {
|
|
14
14
|
count: number;
|
|
15
15
|
firstTimestampNs: bigint;
|
|
16
16
|
lastTimestampNs: bigint;
|
|
17
|
-
|
|
17
|
+
sampledDurationNs: bigint;
|
|
18
|
+
sampledDurationCount: number;
|
|
19
|
+
firstTimed: boolean;
|
|
20
|
+
lastTimed: boolean;
|
|
18
21
|
functionId: string;
|
|
19
22
|
runtimePlanId: number;
|
|
20
23
|
parentCallId?: number;
|
|
@@ -22,7 +25,7 @@ export type CompactSuppression = {
|
|
|
22
25
|
retainedIndex: number;
|
|
23
26
|
};
|
|
24
27
|
type MaterializedJournal = {
|
|
25
|
-
events:
|
|
28
|
+
events: RuntimeExecutionEvent[];
|
|
26
29
|
functions: RuntimeFunctionDefinition[];
|
|
27
30
|
};
|
|
28
31
|
export declare const sanitizeJournalCapacity: (value: number | undefined) => number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-journal.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/execution-journal.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"execution-journal.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/execution-journal.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC1F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAG5D,eAAO,MAAM,SAAS,IAAI,CAAC;AAC3B,eAAO,MAAM,UAAU,IAAI,CAAC;AAG5B,6EAA6E;AAC7E,eAAO,MAAM,YAAY,eAAiC,CAAC;AAI3D,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAatC,MAAM,MAAM,kBAAkB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,KAAK,mBAAmB,GAAG;IAC1B,MAAM,EAAE,qBAAqB,EAAE,CAAC;IAChC,SAAS,EAAE,yBAAyB,EAAE,CAAC;CACvC,CAAC;AAaF,eAAO,MAAM,uBAAuB,GAAI,OAAO,MAAM,GAAG,SAAS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AkB,GAAG,OAAO;IA2BpD,kBAAkB,CACjB,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,gBAAgB,EAAE,MAAM,EACxB,IAAI,EAAE,OAAO,EACb,YAAY,EAAE,OAAO,SAAS,GAAG,OAAO,UAAU,EAClD,mBAAmB,EAAE,MAAM,EAC3B,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,OAAO,GACd,OAAO;IAoCV,WAAW,CACV,gBAAgB,EAAE,KAAK,CAAC,oBAAoB,GAAG,SAAS,CAAC,EACzD,oBAAoB,EAAE,MAAM,GAC1B,mBAAmB;IA0BtB,KAAK;IAgBL,OAAO,CAAC,OAAO;IAwEf,OAAO,CAAC,KAAK;IAwBb,OAAO,CAAC,cAAc;IAkBtB,OAAO,CAAC,UAAU;IA2BlB,OAAO,CAAC,2BAA2B;IA4CnC,OAAO,CAAC,QAAQ;CAqBhB;AAED,qBAAa,oBAAoB;IAM/B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAN3B,IAAI,SAAK;IACT,MAAM,SAAK;IACX,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA0B;gBAGlC,QAAQ,EAAE,MAAM,EAChB,SAAS,SAAsB;IAGjD,OAAO,IAAI,gBAAgB;IAU3B,OAAO,CAAC,OAAO,EAAE,gBAAgB;IAYjC,KAAK;;;;;;CAQL"}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { ErrorObservation, RuntimeExecutionEvent, RuntimeExecutionKind, RuntimeExecutionMetadata, RuntimeExecutionState, RuntimeFunctionDefinition, SourcePosition } from '@rasputin-ai/core';
|
|
7
7
|
import type { EncodedFunctionPlan } from '@rasputin-ai/recorder';
|
|
8
|
-
import type { ExecutionRecorderMode } from './adaptive-recording-options';
|
|
9
8
|
import type { PreparedFunctionPlan } from './function-plan';
|
|
10
9
|
/** A file glob (`src/logger/**`) or a regular expression matched against a function id. */
|
|
11
10
|
export type ExecutionSourceExclusion = string | RegExp;
|
|
@@ -16,24 +15,33 @@ export type ExecutionSourceExclusion = string | RegExp;
|
|
|
16
15
|
export type ExecutionRecorderOptions = {
|
|
17
16
|
/** Turn runtime recording off. RasputinInit leaves this on unless you set `false`. */
|
|
18
17
|
enabled?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* `full` captures arguments and return values (the default).
|
|
21
|
-
* `adaptive` records calls and timings without values until a qualifying
|
|
22
|
-
* error activates full capture for matching executions.
|
|
23
|
-
*/
|
|
24
|
-
mode?: ExecutionRecorderMode;
|
|
25
18
|
adaptive?: {
|
|
19
|
+
/**
|
|
20
|
+
* Record calls and timings without values until a qualifying error
|
|
21
|
+
* activates full capture for matching executions. Default: false,
|
|
22
|
+
* which captures arguments and returns from the start.
|
|
23
|
+
*/
|
|
24
|
+
enabled?: boolean;
|
|
26
25
|
/**
|
|
27
26
|
* How long matching executions keep capturing values after the first
|
|
28
27
|
* qualifying error. Default: 24 hours. Clamped to 1 second–7 days.
|
|
29
28
|
*/
|
|
30
29
|
fullCaptureDurationMs?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Inactive adaptive only. Default false: every eligible invocation is
|
|
32
|
+
* timed. True turns on progressive duration sampling per function,
|
|
33
|
+
* direct caller, and execution type, with counters reset each hour.
|
|
34
|
+
* Invalid values are treated as false. Full capture and selected
|
|
35
|
+
* sessions or activations ignore this and stay fully timed. Sampling
|
|
36
|
+
* never drops calls, exceptions, or retained history.
|
|
37
|
+
*/
|
|
38
|
+
dynamicDurationSampling?: boolean;
|
|
31
39
|
};
|
|
32
|
-
/** How many call events one request or job may keep. Older events are dropped first. Default:
|
|
40
|
+
/** How many call events one request or job may keep. Older events are dropped first. Default: 1500. */
|
|
33
41
|
maxEventsPerExecution?: number;
|
|
34
42
|
/**
|
|
35
43
|
* How many successful calls of the same function (under the same parent) to keep in full.
|
|
36
|
-
* Further successes are counted in a summary instead of storing every argument list. Default:
|
|
44
|
+
* Further successes are counted in a summary instead of storing every argument list. Default: 1.
|
|
37
45
|
*/
|
|
38
46
|
maxCapturedCallsPerFunction?: number;
|
|
39
47
|
/**
|
|
@@ -87,6 +95,7 @@ export type ExecutionEvent = RuntimeExecutionEvent;
|
|
|
87
95
|
/**
|
|
88
96
|
* Snapshot of the request or job that failed: which functions ran, with what
|
|
89
97
|
* arguments and return values. Attached to the error automatically.
|
|
98
|
+
* Version 4 may omit timings for inactive-adaptive calls that were not sampled.
|
|
90
99
|
*/
|
|
91
100
|
export type ExecutionState = RuntimeExecutionState;
|
|
92
101
|
/** Name and optional source location used when you wrap a function with `execution.trace()`. */
|
|
@@ -228,5 +237,6 @@ export type ExecutionRuntime = {
|
|
|
228
237
|
prepareFunctionPlans: (plans: readonly EncodedFunctionPlan[]) => PreparedFunctionPlan[];
|
|
229
238
|
runPreparedFunction: <T>(plan: PreparedFunctionPlan, args: ArrayLike<unknown>, callback: () => T, omitValues?: boolean) => T;
|
|
230
239
|
enterPreparedFunction: (plan: PreparedFunctionPlan, args: ArrayLike<unknown>, omitValues?: boolean) => PreparedCallHandle;
|
|
240
|
+
close: () => void;
|
|
231
241
|
};
|
|
232
242
|
//# sourceMappingURL=execution-recorder-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-recorder-types.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/execution-recorder-types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EACX,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,qBAAqB,EACrB,yBAAyB,EACzB,cAAc,EACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"execution-recorder-types.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/execution-recorder-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@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-recorder.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/execution-recorder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"execution-recorder.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/execution-recorder.ts"],"names":[],"mappings":"AA6CA,OAAO,KAAK,EAAE,sBAAsB,EAAsB,MAAM,4BAA4B,CAAC;AAC7F,OAAO,KAAK,EAEX,wBAAwB,EACxB,gBAAgB,EAGhB,MAAM,4BAA4B,CAAC;AAmRpC,wEAAwE;AACxE,eAAO,MAAM,uBAAuB,GACnC,SAAS,wBAAwB,GAAG,SAAS,EAC7C,QAAO,sBAA2B,KAChC,gBA05DF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RuntimeCaptureCoverage, RuntimeExecutionEvent } from '@rasputin-ai/core';
|
|
2
|
+
/** True when every retained call has the timings a fully timed snapshot publishes. */
|
|
3
|
+
export declare const eventsAreFullyTimed: (events: RuntimeExecutionEvent[]) => boolean;
|
|
4
|
+
/** Coverage of the timings actually retained, ignoring events that were never stored. */
|
|
5
|
+
export declare const retainedTimingsCoverage: (events: RuntimeExecutionEvent[]) => RuntimeCaptureCoverage;
|
|
6
|
+
/** Fully timed groups keep totalDurationMs and do not repeat it as a sampled sum. */
|
|
7
|
+
export declare const asFullyTimedEvents: (events: RuntimeExecutionEvent[]) => RuntimeExecutionEvent[];
|
|
8
|
+
//# sourceMappingURL=publish-runtime-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish-runtime-state.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/publish-runtime-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAIvF,sFAAsF;AACtF,eAAO,MAAM,mBAAmB,GAAI,QAAQ,qBAAqB,EAAE,KAAG,OA0BrE,CAAC;AAEF,yFAAyF;AACzF,eAAO,MAAM,uBAAuB,GACnC,QAAQ,qBAAqB,EAAE,KAC7B,sBAoCF,CAAC;AAEF,qFAAqF;AACrF,eAAO,MAAM,kBAAkB,GAAI,QAAQ,qBAAqB,EAAE,KAAG,qBAAqB,EAYvF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-state-size-budget.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/runtime-state-size-budget.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"runtime-state-size-budget.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/runtime-state-size-budget.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,qBAAqB,EAG1B,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,uBAAuB,QAAa,CAAC;AAqIlD;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,GACzC,OAAO,qBAAqB,KAC1B,qBAqEF,CAAC;AAEF,eAAO,MAAM,wBAAwB,UA9MR,qBAAqB,WA8ME,CAAC"}
|