One info record per HTTP request to an external host (fetch and node:http),
with method, host, a fixed endpoint label, status or error code, duration and
the caller's requestId. Internal hops are skipped. Labels keep only literal
segments, so no owner, repository, path or identifier is logged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An uncoded 4xx comes from something in front of the streamer (body-size
limit, ingress, wrong entrypoint), so it is now streamer_unexpected_response
(502, error) rather than an info-level file_not_found. The streamer's
catch-all route gets its own code so a misrouted call logs at warn.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The logger keeps errorCode only for allowlisted codes, and so does the
collector (sanitize.vrl). Both lists are maintained by hand, so codes
added since then were dropped and logged as a bare 400. Among them:
invalid_billing_expiration (billingError), invalid_auth_state
(appError), streamer_unreachable, github_unavailable, user_banned and
most billing and GitHub App codes, 41 in all.
scripts/generate-log-diagnostics.js now collects the codes passed to
AnonymousError, billingError and appError, plus codes assigned to an
errCode/code variable. It writes them to LOG_THROWN_ERROR_CODES, which
the logger accepts, and appends them to the collector's errorCode
allowlist. A test fails when a thrown code is missing from either list.
Regenerating also refreshes source function names that had gone stale
(jsDelivrFileUrl, ownerGitHubAccessRequired, ...), whose stack frames
the collector was dropping.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The anonymize page's "Your repositories" picker now pages and searches a
per-user list stored in MongoDB instead of calling GitHub on every page and
search. GitHub is read only when the list is empty, when the user presses
the new refresh button, or after an installation change marks it stale.
- One sync per list (Mongo lock with a renewed lease); full pagination in
the background after the first page is returned; rate limits pause syncs.
- GitHub App installation, installation_repositories and repository
webhooks update the stored lists idempotently. The App must subscribe to
the Repository event (documented in docs/github-app-setup.md).
- Legacy OAuth lists change only on refresh.
- Picker header shows "Updated 3 min ago" and a refresh button.
- dev-mock: stored list, simulated refresh and webhook endpoint.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Billing API calls and Stripe return pages were logged as route "other", so
the purchase funnel could only be read from Stripe. Give them fixed labels in
the app, Nginx and the collector allowlist, and record the ?billing= outcome
(success, cancelled, portal) on edge requests. Only fixed values are kept.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The subscriptions list shows one row per sale, grouped with the same
stages as the summary: a paper pack is one "Paper pack" row with its
parts on a second line. Filters, state tabs, sort and pagination count
sales. A new "Started" filter matches the summary periods.
- N days now draw N buckets ending today (12 months: 52 weeks), and the
tiles count from the same start.
- One family vocabulary: Subscriptions, Repository add-ons, Conferences in
the legend, the By-plan grouping and the list.
- Cancelling folds into "Renews / ends", revocation into "Status"; rows
have one height. Names and repository ids use proportional figures,
since Inter's tabular figures widen hyphens.
- New Amount column (cached Stripe list price, per period for
subscriptions, once per pack). Chart tooltips show count and revenue
per family and the total per currency.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>