The local hub
One place for the traces, logs, and metrics of every service on your machine or team network, kept for 7 days.
On this page 7 sections
Start it
npx @wizeworks/lens-hub
# or
docker run -p 5960:5960 -v wizelens:/data ghcr.io/wizeworksllc/wizelens-hub
Open http://localhost:5960/_wizelens/.
Point your services at it
Set these where each service runs, then restart it:
WIZELENS_ENDPOINT=http://localhost:5960 # .NET and Node add-ons
WIZELENS_PROJECT=my-shop # optional: groups services by project
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:5960 # any other OpenTelemetry app: see Java, Python, and Go
Each service keeps its own dashboard too.
What you get
- Everything in one dashboard, kept for 7 days in one SQLite file, with the same pages as the in-app dashboard.
- Projects and environments. The top-bar menu filters by them.
- It knows your services. Which are online, idle, or offline, what they run on, and when they last sent data.
- Any language. OTLP over HTTP, JSON or protobuf: traces, logs, and metrics.
- One MCP endpoint for every service, with
--mcp. - Uptime checks that call your sites and APIs on a schedule from this machine. See Uptime checks.
- Saved views and dashboards: the star saves the page you are on; dashboards put metric charts of your choice on one page.
- SLOs and Apdex, like the cloud's: error budgets, burn rates, and a target time per service.
- Alerts, like the cloud's: to Slack, Teams, Discord, PagerDuty, or a webhook (no email). Webhooks may be plain http or on your own network.
- Problems, Security, and Tags, like the cloud's: what is above normal and why, risks from real traffic, known-vulnerable packages (OSV), and named searches under Settings → Tags. See Problems, Security, and Tags.
- Resolve and ignore errors; a resolved error that comes back shows as Regressed.
- Hosts and Kubernetes from the OpenTelemetry Collector. See Hosts and Kubernetes.
An OpenTelemetry app shows as "Idle" between sends. That is normal: it only sends when it has data.
Share it with your team
Run it with --host 0.0.0.0 --token <text>. Then:
- Add-ons send
WIZELENS_TOKEN=<text>. - OpenTelemetry apps send
OTEL_EXPORTER_OTLP_HEADERS=Authorization=Bearer <text>. - In a browser, open
/_wizelens/?token=<text>once.
Options
| Flag | Environment variable | Default |
|---|---|---|
--port <n> |
WIZELENS_ |
5960 |
--host <addr> |
WIZELENS_ |
127. (this machine only) |
--data <file> |
WIZELENS_ |
~/ (memory for none) |
--token <text> |
WIZELENS_ |
none |
--retention <time> |
WIZELENS_ |
7d |
--log-retention <time> |
WIZELENS_ |
same as --retention (see Logs) |
--max-traces <n> |
WIZELENS_ |
50000 |
--max-metric-points <n> |
WIZELENS_ |
2000000 raw points |
--slow-query-ms <n> |
WIZELENS_ |
100: a database call this slow is slow |
--n-plus-one <n> |
WIZELENS_ |
5 similar calls in a request make an N+1 |
--redact-keys <a,b> |
WIZELENS_ |
none: hide keys that contain these, on top of the built-in list |
--mcp |
WIZELENS_ |
off |
--no-uptime |
WIZELENS_ |
checks on |
--no-osv |
WIZELENS_ |
packages checked against OSV |
--import <file> |
Copy an add-on's . in at start |
|
--sourcemaps <dir> |
WIZELENS_ |
Read browser source maps from a build folder. |
wizelens-hub --help lists every option.
Project settings
Each project can set its own slow query and N+1 thresholds and more redacted keys in Settings → Thresholds and hidden keys, and a shorter retention in Settings → Data retention. Thresholds and keys apply to data that arrives after you save. A shorter retention deletes older data at the next cleanup, within minutes.
In code
import { createHub } from "@wizeworks/lens-hub";
const hub = createHub({ port: 5960, storagePath: "./hub.db" });
console.log(await hub.listen());