Tracewire

Replay production. Locally.

Tracewire records every API call in production and replays it on your machine, with the same headers, body and timing.

npm install -g tracewire
See how it works

POST /orders

recorded 14:02:11 · replay ready

  • db query38 ms
  • payments call212 ms
  • 500 response1,284 ms
Request  POST /orders · content-type: application/json · authorization: [redacted] · body: 412 bytes

Sample trace. Figures are illustrative.

The bug only happens in production. Your logs say nothing useful.

Tracewire keeps the real request, so you stop guessing and run it again.

$ replay

Pick a call. Run it again.

Pick any recorded request and replay it against localhost.

tracewire replay

fetched 1 recorded call (production)

replaying with original headers and body → localhost:3000

← 500 in 1,284 ms (recorded) / 61 ms (local)

Sample output.

Every call, on the record.

Method, path, status, duration and payload, kept for each request.

Recorded calls, sample data
methodroutestatusms
POST/orders5001,284
GET/users/4220096
POST/payments/charge5023,010
GET/products?page=2200143
PUT/cart20058
POST/orders5032,402
DELETE/sessions/9f220431
GET/invoices/118200210

Sample data.

Record in production.

Every API call is captured as it happens.

14:02:11 POST /orders 500 1284ms recorded

Replay on your laptop.

Same request, your debugger, your breakpoints.

$ tracewire replay 14:02:11 → 500 61ms local

Sample output. Figures are illustrative.

From install to replay in three commands.

  1. 1

    Install the CLI.

    npm install -g tracewire
  2. 2

    Record production traffic.

    tracewire record --env production
  3. 3

    Replay any call locally.

    tracewire replay <call-id>

Install it. Replay one bug.

npm install -g tracewire
Made with Instantly