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
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
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();
Everything below lands in the same trace as the request that caused it.
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.
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.
Dapper or a provider WizeLens does not know? Wrap the connection and every command is captured.
new ProfiledDbConnection(new SqliteConnection(cs))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.1On .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.dllWizeLens 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.
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.