fix(rivetkit): expose engine ray IDs on errors#5456
Conversation
Review(Re-checked against the current head, Overall this remains a clean, well-scoped change: Still open: the actor's own HTTP router never emits
Still open: the default sanitized-error branch also drops In New: wasm bridge (
Net effect: on the wasm runtime, ray IDs get dropped in both directions across the JS↔Rust bridge, even though the wire format and TS-side code are shared with NAPI. Given the repo's general NAPI/wasm parity expectations for this bridge, this looks like a gap worth closing in this PR or tracking as an explicit follow-up (the PR description doesn't mention it). Minor / non-blocking
No security or performance concerns — this is metadata plumbing over already-established boundaries (the |
|
🚅 Deployed to the rivet-pr-5456 environment in rivet-frontend
|
Summary
x-rivet-ray-idas the top-levelRivetError.rayIdfield without changing application error metadataNo Trace ID support or engine response contract changes are included.
Testing
pnpm exec vitest run tests/rivet-error.test.tspnpm run check-typesinrivetkit-typescript/packages/rivetkitgit diff --checkEnvironment limitations
@rivetkit/engine-cli-linux-x64-muslis unavailable.