Synthetic monitors
A synthetic monitor is a scripted visit to your app that runs on a schedule in a real headless browser (Playwright). It signs up, logs in or checks out like a user would, and tells you which step broke, before a real user finds out. Create monitors under Synthetic monitors. No SDK is needed.
1. Create a monitor
Monitor name and base URL— The address the journey starts from, for example https://app.example.com.Frequency— Every 5, 15 or 30 minutes, hourly, every 6 hours, daily, or manual only.Browser engine— Chromium, Firefox or WebKit (Safari).Viewport— Desktop (1280 × 720), Full HD, mobile (390 × 844) or tablet.Steps— The journey, in order. Each step that targets an element uses a CSS selector such as button[type=submit] or [data-testid=signup-btn].
Shortcut: open a funnel or a session replay and click Convert to Synthetic Monitor to start from its steps. Emails and passwords typed in the replay become placeholders.
2. Run it and read the result
Save the monitor and click Run Now to try it. Every run records pass or fail, how long each step took and which step failed, along with the browser console messages, the network requests the page made (with failures flagged) and a screenshot of the page at the moment of failure. Pause a monitor to stop its schedule without deleting it.
3. Keep logins secret
Store credentials as project secrets and write {{SYNTHETIC_EMAIL}} or {{SYNTHETIC_PASSWORD}} in a step instead of the real value. Secrets are encrypted at rest, filled in only while the run executes, and redacted from logs and error messages. Create one with a personal access token (Settings → Personal access tokens) that has the synthetic_monitors:write scope:
curl -X POST https://api.traceiq.run/v1/dashboard/synthetic-secrets \
-H "Authorization: Bearer tiq_pat_..." \
-H "content-type: application/json" \
-d '{ "projectId": "YOUR_PROJECT_ID", "name": "SYNTHETIC_PASSWORD", "value": "your-test-password" }'Use a dedicated test account, not a real customer's login.
4. Run monitors on pull requests
Run chosen monitors against a pull request's preview deployment instead of their base URL, and fail the check if a journey breaks. Your production schedule is not affected. Add this step to a GitHub Actions job that runs after your preview deploys, with a project write key or tiq_pat_ token saved as the TRACEIQ_API_KEY secret:
- name: Run TraceIQ synthetic monitors
env:
TRACEIQ_API_URL: https://api.traceiq.run
TRACEIQ_API_KEY: ${{ secrets.TRACEIQ_API_KEY }}
TRACEIQ_PROJECT_ID: YOUR_PROJECT_ID
PREVIEW_URL: ${{ steps.preview.outputs.url }} # your preview deployment's URL
MONITOR_IDS: '["sym_...", "sym_..."]' # IDs from each monitor's page URL
run: |
body=$(jq -n --arg p "$TRACEIQ_PROJECT_ID" --arg u "$PREVIEW_URL" --argjson m "$MONITOR_IDS" \
--arg k "$GITHUB_RUN_ID-$GITHUB_RUN_ATTEMPT" \
'{projectId: $p, monitorIds: $m, baseUrl: $u, environment: "preview", idempotencyKey: $k}')
group=$(curl -fsS -X POST "$TRACEIQ_API_URL/v1/synthetic/ci-runs" \
-H "x-traceiq-api-key: $TRACEIQ_API_KEY" -H "content-type: application/json" \
-d "$body" | jq -r .runGroupId)
for attempt in $(seq 1 120); do
status=$(curl -fsS "$TRACEIQ_API_URL/v1/synthetic/ci-runs/$group?projectId=$TRACEIQ_PROJECT_ID" \
-H "x-traceiq-api-key: $TRACEIQ_API_KEY" | jq -r .group.status)
echo "TraceIQ: $status"
case "$status" in passed) exit 0 ;; failed|timed_out) exit 1 ;; esac
sleep 5
done
exit 1The preview URL must be publicly reachable; private and internal addresses are rejected. Mark the job as a required status check in your branch protection rules to block merging when a journey fails.

