Release candidate

Every ASP.NET Core request, opened up.

Two lines in Program.cs. Then every request shows its routing, handler, EF Core and ADO.NET queries, HttpClient and gRPC calls, messages, logs, and exceptions, on one timeline at /_wizelens. Runs on .NET 8, 9 and 10.

Latest release: 1.0.0-rc.2

2 lines
in Program.cs
0 code
for Npgsql, SqlClient, and MySqlConnector
.NET 8–10
LTS and current
Program.cs
builder.Services.AddWizeLens();
builder.Services.AddDbContext<ShopDb>(o =>
    o.UseNpgsql(cs).UseWizeLens());
builder.Services.AddHttpClient<OrdersClient>();
builder.Host.UseSerilog((ctx, log) => log.WriteTo.WizeLens());

var app = builder.Build();
app.UseWizeLens();
GET /api/customers · 263 ms
GET /api/customers263 ms
Routing0.03 ms
Handler CustomersController.Get248 ms
SELECT "c"."Id", "c"."Name" FROM "Customers"2.1 ms
GET orders-api/orders?customerId=…45 ms
SELECT "o"."Total" FROM "Orders"1.4 ms
info Loaded 8 customers

What gets captured.

Everything below lands in the same trace as the request that caused it.

Requests

  • ASP.NET Core hosting
  • Routing and handler time
  • Request and response headers
  • Response bodies (opt‑in)
  • The HUD on Razor Pages and MVC views

Databases

  • EF Core
  • Dapper
  • Any ADO.NET provider
  • Npgsql, SqlClient, MySqlConnector with no code
  • Redis, MongoDB, Elasticsearch (WizeLens.Redis, .MongoDB, .Elasticsearch)

Calls out

  • HttpClient
  • Grpc.Net.Client
  • Grpc.AspNetCore

Messages

  • RabbitMQ.Client 7+
  • Azure Service Bus
  • MassTransit
  • Kafka (WizeLens.Kafka)

Logs

  • ILogger
  • Serilog (WizeLens.Serilog)
  • NLog (WizeLens.NLog)
  • Browser console lines
  • Lines outside a request, by level and rate

Metrics

  • Every Meter, no code
  • .NET runtime: CPU, memory, GC, thread pool
  • ASP.NET Core and Kestrel
  • Your own meters

Users and tags

  • The user from HttpContext.User
  • WizeLensRequest.Tag(key, value)
  • WizeLensRequest.Expected() for a 5xx you meant
  • Or the X‑WizeLens‑Expected header

Security

  • Risks found in real traffic
  • Mapped to the OWASP Top 10
  • The same rules as the Node add‑on

Packages

  • Every NuGet package the app runs
  • Checked against OSV on the hub and cloud
  • Off with WIZELENS_PACKAGES=false

Made for the way .NET apps run.

If you used Glimpse, you know this.

Open the hood on one request and see what it really did. WizeLens brings that back for ASP.NET Core and follows the request into every service after it. In development, the HUD sits on every page your app renders, with no code.

Survives dotnet watch.

Traces live in a small SQLite file next to your app, so a restart does not wipe them. If the file cannot be written, WizeLens keeps working in memory.

Wrap any connection.

Dapper or a provider WizeLens does not know? Wrap the connection and every command is captured.

new ProfiledDbConnection(new SqliteConnection(cs))

Errors and slow traces stay.

Sample with WIZELENS_SAMPLE_RATE and WizeLens still keeps every trace with an error or a span of 1 second or more.

o.Sampling.Rate = 0.1

No code at all? One variable.

On .NET 10, the startup hook does what AddWizeLens and UseWizeLens do, with no change to the app. A Kubernetes webhook can set it for you.

DOTNET_STARTUP_HOOKS=…/WizeLens.AutoInstrumentation.dll

Never in production by accident.

WizeLens is on in Development only. Turn it on anywhere else with WIZELENS_ENABLED=true: it sends to your cloud and serves nothing anyone can read.

Mixing stacks? One trace across all of them.

A Vue front end, a .NET gateway, a Node service, and a Python worker join the same trace, and the same insights run on all of it.