The only tool you need to know what is happening and how to fix it.
Go alertingexception-trackerissue-trackinglogsmetricsmonitoringobservability-platformopen-telemetryotelsession-replaytelemetrytraces
seed.mjs — demo account entity seeding
Creates the platform entities for the Shoply demo on a Traceway instance:
- Monitors (synthetic checks) on the backend project:
Traceway API,Marketing Site,Edge TLS(tcp), and the intentionally failingPayments Provider(asserts a body string/api/healthnever returns → goes down after 2 cycles → incident + page). - On-call: team
Shoply Engineering(owns both projects), weekly scheduleShoply Primary On-Call, escalation policyShoply Critical. - Notification channels (email + escalation) and rules:
check_down→ escalation,new_error,endpoint_p95_thresholdonGET /api/products,error_rate_threshold;new_erroron the react project. - Status page
Shoply Status(public, slugshoply-status) with a backdated resolved incident (Elevated checkout error rate) and a full timeline. - Post-mortem linked to that incident.
- Dashboards: populate-defaults (OTelemetry Server Agent),
golangtemplate, and a hand-craftedShoply Businessdashboard (shop.*metrics emitted by the backend). - Optionally mints the react project's source map upload token and writes
frontend/.env.
Auth (first match wins)
TRACEWAY_DEMO_PAT— atwp_personal access tokenTRACEWAY_DEMO_EMAIL+TRACEWAY_DEMO_PASSWORD- The traceway CLI's stored
demoprofile (traceway login --profile demo); the script immediately trades the 15-minute device JWT for ademo-seedPAT.
Usage
node seed.mjs # seed everything except the sourcemap token
MINT_SOURCEMAP_TOKEN=1 node seed.mjs # also mint + write frontend/.env (rotates the old token!)
Other env: TRACEWAY_BASE_URL (default https://cloud.tracewayapp.com),
SHOPLY_REACT_TOKEN / SHOPLY_OTEL_TOKEN (the two projects' ingest tokens, used to find
the project ids), TRACEWAY_CLI_PROFILE (default demo).
Re-runnable: every create is list-guarded by name/slug; 422 "already exists" responses are treated as success. The failing monitor only pages on an up→down transition, so re-runs do not duplicate pages.