Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / EVENT_SEGMENT_STRIDE

Variable: EVENT_SEGMENT_STRIDE

ts
const EVENT_SEGMENT_STRIDE: number;

Defined in: packages/core/src/engine/events.ts:24

The distance between the telemetry counter bases of two consecutive execution segments of one run: segment k of a run starts its event seq and span counter at k * EVENT_SEGMENT_STRIDE. A single segment would need over four billion events to reach the next base, so seq stays strictly increasing and spanId unique across suspend/resume and process recreation while remaining an ordinary safe-integer number (v1.22.0 review P1-2). Informational for consumers: treat seq as ordered and spanId as opaque, never parse segment structure out of either.