Release candidate

Your first trace in five minutes.

Add a package and two lines, run your app, and open /_wizelens on it. No account, no collector, and no agent to run. It is on while you build and quiet in production.

The WizeLens dashboard inside RocketEase on a laptop: Overview with 135 requests, 696 SQL queries, 37 insights, request activity, a timing breakdown, services, and recent requests. The top bar says In-app, rocketease-platform, kept 24 h.
RocketEase · on a laptop
the dashboard inside the app

This dashboard runs inside RocketEase itself, at /_wizelens. We did not sign in or start anything else to see it. Inside an app, WizeLens keeps the last 24 hours or 2,000 traces.

From nothing to a trace.

The quick start, for ASP.NET Core, Node, and React. Each part is a package and a line or two. Java, Python, and Go send through OpenTelemetry instead.

  1. Add it to your API

    One package and two lines in ASP.NET Core on .NET 8, 9, or 10. In Node, one middleware goes first and one error handler goes last.

    Program.cs
    // dotnet add package WizeLens.AspNetCore --prerelease
    using WizeLens;
    
    builder.Services.AddWizeLens();
    var app = builder.Build();
    app.UseWizeLens();
    
  2. Add your database

    One line per driver or ORM, and every query is traced with its parameters. EF Core, Dapper, pg, Prisma, and the rest are on the stack pages.

    server.ts
    import pg from "pg";
    import { createWizeLens, instrumentPg } from "@wizeworks/lens-node";
    
    const wizelens = createWizeLens({ serviceName: "orders-api" });
    instrumentPg(wizelens, pg);
    
  3. Add the browser

    Pages your .NET or Node app renders need nothing here. In development the add-on puts the browser script and the HUD on them by itself. A React app adds one import and one provider.

    main.tsx
    import "@wizeworks/lens-react/install";
    import { WizeLensProvider } from "@wizeworks/lens-react";
    
    <WizeLensProvider endpoint="/_wizelens" enabled={import.meta.env.DEV}>
      <App />
    </WizeLensProvider>
    
  4. Open the dashboard

    Run your app and browse to /_wizelens on any service. Each server trace now starts at the click that caused it.

    browser
    http://localhost:5000/_wizelens
    

Or change no code at all.

For a platform team, or an app you cannot edit. A variable, a startup hook, or a pod label turns WizeLens on.

terminal
# Node
NODE_OPTIONS="--import @wizeworks/lens-node/auto" node server.js

# .NET 10
DOTNET_STARTUP_HOOKS=/opt/wizelens/dotnet/WizeLens.AutoInstrumentation.dll dotnet MyApp.dll

# Kubernetes: label the pod
wizelens.dev/inject: node

Node

One environment variable imports WizeLens before your app starts. No change to the code.

.NET

On .NET 10, the startup hook does what AddWizeLens and UseWizeLens do, with no change to the app.

Kubernetes

Label the pod, and a webhook sets the variable for you. Platform teams can turn it on for every service.

Two lines in .NET. One in Node.

Add the package, add a line, run your app. The .NET and Node add-ons are on in development and off in production unless you turn them on. In the browser and in Java, Python, and Go, you choose with enabled or WIZELENS_ENABLED.

Two lines. Add WizeLens.EntityFrameworkCore and one call for EF Core queries.

Program.cs
using WizeLens;
using WizeLens.EntityFrameworkCore;

builder.Services.AddWizeLens();
builder.Services.AddDbContext<AppDb>(o =>
    o.UseSqlServer(cs).UseWizeLens());

var app = builder.Build();
app.UseWizeLens();

Safe to leave in.

You can commit it today. It helps you while you build, and stays quiet in production until you ask for it.

In development

The .NET and Node add-ons are on. You get the dashboard at /_wizelens and the HUD on the pages it serves.

In production

They do nothing until you turn them on. Then they only send, to the hub or the cloud, and serve no dashboard, so nobody can read traces from the app itself.

Browser, Java, Python, Go

They are on wherever they run, and they only send. WIZELENS_ENABLED=false turns off Java, Python, and Go, and enabled: false turns off the browser.

The Production page shows how to turn it on and what it sends.

More than one service?

Install WizeLens in each one, and they find each other through the trace headers. To see every service in one place, start the local hub. It keeps 7 days in one SQLite file, and any language can send OpenTelemetry to it.

npx @wizeworks/lens-hub

Then point each service at it with WIZELENS_HUB. See how the services join up.

Your first trace is five minutes away.

Free and open source under MIT. No account, no card, and nothing to run beside your app.