houston
Logs, traces, metrics and alerts for Cloudflare Workers
Send OpenTelemetry from your Workers. houston stores it as Iceberg tables on R2 in your own Cloudflare account, and gives you dashboards, notebooks that answer questions with charts, search, a trace waterfall, live tail and monitors, in a web app and a CLI your coding agent can use.
houston on GitHub Send data in 5 lines
Early, but usable end to end.
Houston, do we have a problem?
Home opens on one big question box. Type what worries you, and a notebook opens with your question already asked.
- Below it, one click to everything else: the Explorer, traces, services and live tail, the latest dashboards and notebooks, and the monitors firing.
- Every page has the same two-row header: project, time range and Refresh always sit in the same place, and the page’s own tools go underneath.
- The menu is grouped: Analysis (dashboards, notebooks), Observability (Explorer, traces, services, tail, monitors) and Settings.
Dashboards over logs, spans and metrics
Charts on a semantic layer over all three signals, built with drizzle-cube. Houston overview comes ready: requests, errors, latency, logs, SQL and gen AI across every project.
- A dashboard covers one project or every project. Yours are listed under Mine and the rest of the team’s under Others; everyone can open and edit them.
- Edit, then Add chart or Add text. The top bar’s time range drives every chart, and each chart picks its granularity from it.
- Results are cached in KV for a minute, so a dashboard the whole team has open costs one query per chart.
Ask a question, get the charts that answer it
In a notebook, an agent queries the same cubes the dashboards use, then writes up what it found, with tables and charts beside the text.
- Each step it takes, every query included, is listed beside the notebook. Ask a follow-up, or move and delete what it added.
- Save as Dashboard turns the notebook into a dashboard with the same scope.
- It runs on Workers AI in your own account.
houston notebook askdoes the same from a terminal.
Search logs and spans
Filter on any field, drag across the histogram to zoom, and switch to aggregates without leaving the page.
- Filters as chips:
=,!=, ranges, contains, prefix and exists, on columns or on any attribute. - Count, percentiles and error rate, grouped by up to three fields. A query is a link, so it can be shared or saved.
- The newest minute or two is still landing in storage. The histogram shades that band and points you at live tail.
Ask in plain words, get a query you can edit
Type what you want to see. Workers AI proposes a query as ordinary filters, an aggregate and a group by.
- The proposal is shown before it runs: apply it, change a chip, or discard it.
- It writes the same query you would have built by hand, so nothing is hidden behind the model.
- The same box is on the live tail page, and
houston askdoes it from a terminal.
A waterfall that shows where the time went
Each span is coloured by type: HTTP in, HTTP out, database, AI, queue and scheduled work.
- Self time is hatched, so a parent waiting on its children looks different from one doing the work.
- A per-type breakdown in the header: how much of the request was database, how much was a model call.
- The trace’s logs sit underneath, each linked to its span. SQL spans open with formatted SQL, AI spans with model and token counts.
Watch rows as they arrive
Live tail streams logs or spans the moment they are ingested, before they reach search.
- The same filters and the same ask box as the Explorer.
- Pause it, then open the same query in the Explorer once the rows have landed.
- From a terminal:
houston tail service=api, or NDJSON with--json.
Alerts on any aggregate, per group
A monitor is a query, a threshold and a window, checked every minute. Each group alerts on its own.
- Preview the value over the last hours against the threshold, and test it before you save.
- Alerts by email or to a Slack channel, with reminders while firing, a recovery threshold, history and mute.
- Each check covers a window that ends three minutes ago, so it only judges data that has landed.
Every service on one line
Spans, error rate, p50 and p95 latency, logs and error logs per service, for 15 minutes up to 7 days.
- Each row links to that service’s logs in the Explorer and its traces.
- Requests, errors and latency come from every span, not only the roots of traces.
Metrics from the spans you already send
houston-otel counts every request, SQL statement and gen AI call it traces, and sends the counts as OpenTelemetry metrics. They are on by default.
- Request, SQL and gen AI duration, by route, operation and model.
- Gen AI token usage, input and output, and the cost in US dollars by model, from list prices you can override.
- Houston overview charts all of them. Any other OTLP metrics land in the same Metrics cube.
Sign-in for your team, nobody else
Google sign-in limited to your domains, or a link by email. Invite only.
- Admins invite people, create projects, issue ingest keys and set up alert channels. Everyone signed in can search, tail, write monitors and build dashboards and notebooks.
- Projects are shared by everyone signed in: one team, one place to look.
- Email links are single use and expire after 15 minutes.
One Worker in, Iceberg on R2, everything reads from there
No servers to run and no database to size. Storage is open Parquet files in your own bucket.
- Ingest. Your Workers, or anything that speaks OTLP/HTTP (protobuf or JSON, gzip), post logs, traces and metrics to
/v1/*with a per-project key. The Worker validates every row before it is sent on. - Store. Three Basin streams (logs, spans, metrics) roll into Iceberg tables on R2 about once a minute, as compressed Parquet.
- Query. The same Worker reads the tables back with Basin SQL. Dashboards and notebooks go through a semantic layer (drizzle-cube) that writes the same bounded SQL, and their results are cached in KV for a minute. Search runs a minute or two behind ingest; live tail, on a Durable Object, has no lag.
- Use. The web app, the
houstonCLI and the coding agents that drive it all call one API. Monitors run on a cron every minute. Notebooks run on Workers AI. Users, projects, monitors, dashboards and notebooks live in D1.
Send data in 5 lines
@rocketflare/houston-otel is a Workers client with no runtime
dependencies. It speaks OTLP over fetch, keeps one trace per request and sends in
waitUntil after the response. Export never throws.
// wrangler.jsonc
"compatibility_flags": ["nodejs_compat"],
"vars": { "HOUSTON_OTLP_ENDPOINT": "https://houston.your-company.com", "HOUSTON_SERVICE_NAME": "shop-api" }
// then: wrangler secret put HOUSTON_API_KEY (an ingest key from houston) import { createHouston, houstonOptionsFromEnv } from '@rocketflare/houston-otel'
import { houstonMiddleware } from '@rocketflare/houston-otel/hono'
let houston: ReturnType<typeof createHouston> | undefined
const houstonFor = (env: Env) => (houston ??= createHouston(houstonOptionsFromEnv(env)))
app.use('*', houstonMiddleware((c) => houstonFor(c.env))) // a span per request, sent in waitUntil - Logs:
houston.log.*, or pino throughpinoTransmit, carry the active trace and span id. - SQL: wrap a Neon, node-postgres or postgres.js client before Drizzle gets it, and every statement is a span. Parameter values are never read.
- AI:
traceGenAirecords model, tokens and finish reasons asgen_aispans, without prompts or completions. - Metrics: request, SQL and gen AI duration, gen AI token usage and gen AI cost in US dollars by model, made from those spans and sent with them. On by default;
HOUSTON_METRICS=falseturns them off. - Also cron ticks, queue batches and Workflow steps, each in the trace that started it.
Everything the app does, from a terminal
@rocketflare/houston searches, aggregates, tails, prints
a trace as a text waterfall, asks questions, queries the cubes, reads and writes dashboards, asks a
notebook and manages monitors. --json gives scripts
and agents stable output; --url prints the link that opens the same query in the app.
- Sign in once:
loginprints a code you confirm in a browser. Nothing listens on your machine, so it works over SSH and in containers. houston cube queryruns a semantic-layer query across every project,houston dashboards get overviewprints Houston overview’s charts, andhouston notebook askstreams a notebook’s answer: its text, each query it runs and the charts it adds.houston skill installwrites a skill that teaches coding agents the filter syntax, narrow windows, the search lag and when to reach fortail. Your agent reads the logs of the bug it is fixing.
npm i -g @rocketflare/houstonhouston login --url https://houston.your-company.comhouston logs severity=ERROR --since 15mTIME SEVERITY SERVICE BODY2026-11-29 08:33:18.126 ERROR payments webhook signature mismatch2026-11-29 08:32:55.661 ERROR payments webhook signature mismatchhouston agg p95:duration_ns --signal spans --by service --since 1hSERVICE P95(duration_ns)recommender 2.01 semail-worker 351 mspayments 340 mshouston trace 3ec5b569746af55d9cd095dbfb660ebeT SPAN SERVICE DURATIONH POST /api/checkout api-gateway 235 ms→ POST api-gateway 186 msH POST /charges payments 185 msD SELECT charges payments 28.9 mshouston skill installWrote ~/.claude/skills/houston/SKILL.md. On your own Cloudflare account, at usage prices
houston is one Worker, a D1 database, an R2 bucket with Basin streams, and Resend for email. You deploy it on the Workers Paid plan, and your telemetry stays in your account.
- Monitors are the main cost at low volume: one Basin SQL query per check, about $1.10 a month for a monitor checked every minute.
- Searching is about $0.000025 a query. Ask is about $0.001 a question. Live tail costs nothing when nobody is watching.
- A notebook question is several Workers AI calls (one per turn, up to 8) plus the queries it runs. Dashboard charts are one query each, cached for a minute.
- Per GB ingested and kept, Basin and R2 come to about $0.10, against about $0.27 for the platform’s built-in Workers logs, which keep 7 days and take Cloudflare sources only.
- A setup script creates the bucket, the catalog with compaction, and the three streams. Re-running it skips what exists.
| App traffic | Basin ingest | R2 after a year | Per month |
|---|---|---|---|
| 10k requests a day | 2 GB, included | ~0.3 GB | ≈ $0 |
| 100k requests a day | 21 GB, included | ~28 GB | ≈ $0.50 |
| 1M requests a day | 210 GB, $16 | ~280 GB | ≈ $45 |
On top of the $5 Workers Paid plan, plus monitors. It assumes each request sends about 5 spans and 2 logs (about 7 KB) through houston-otel. At 1M requests a day, the ingest Worker’s requests ($15) and D1 writes ($10) are a large share; trimming noisy attributes sends less. Cloudflare’s published prices as of late 2026: check them before you rely on them.
MIT, on GitHub
Clone it, run it locally with npm run dev, and sign in with the link it prints. Then follow
the self-hosting guide to deploy it to your account.