RuntimeLens.Dashboard 1.0.1

Prefix Reserved
dotnet add package RuntimeLens.Dashboard --version 1.0.1
                    
NuGet\Install-Package RuntimeLens.Dashboard -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RuntimeLens.Dashboard" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RuntimeLens.Dashboard" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="RuntimeLens.Dashboard" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add RuntimeLens.Dashboard --version 1.0.1
                    
#r "nuget: RuntimeLens.Dashboard, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package RuntimeLens.Dashboard@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=RuntimeLens.Dashboard&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=RuntimeLens.Dashboard&version=1.0.1
                    
Install as a Cake Tool

RuntimeLens.Dashboard

NuGet Version License

Embedded single-page Web UI dashboard and REST API suite for visualizing application trace hierarchies, Flame Graphs, system metrics, and diagnostic alerts in real time. Zero external CDN dependencies.


Target Frameworks

  • .NET 8.0 | .NET 9.0 | .NET 10.0

Configuration Reference (DashboardOptions)

Configured via builder.Services.AddRuntimeLensDashboard(options => ...):

Property Type Default Description
RoutePrefix string "/runtimelens" URL path prefix serving UI dashboard and REST APIs.
DefaultLanguage string "en" Server-driven default UI language ("en" default. Supported: "en", "tr").
DefaultTheme string "dark" Server-driven initial theme ("dark" or "light").
UseUtcTimestamp bool true If true, displays timestamps in UTC; if false, uses local browser time.
Authentication.Enabled bool false Enables HTTP Basic Auth protection exclusively for dashboard routes.
Authentication.Username string "admin" Required username for Basic Auth prompt.
Authentication.Password string "password" Required password for Basic Auth prompt.

🔒 Scoped Protection Note: Basic Authentication applies exclusively to routes matching RoutePrefix (e.g. /runtimelens/*) and does not affect application API controllers.


REST API Endpoints Reference

Endpoint HTTP Method Query Parameters Description
/{prefix}/api/overview GET None Returns summary stats (total traces, avg latency, active alerts, memory).
/{prefix}/api/traces GET query, page, pageSize, onlySlow, sortBy Returns paginated trace list matching query filters.
/{prefix}/api/alerts GET None Returns active diagnostic alerts and correlation IDs.
/{prefix}/api/export/json GET None Downloads all captured trace snapshots as JSON file attachment.
/{prefix}/api/export/csv GET None Downloads all captured trace snapshots as 14-column CSV file attachment.

Trace Query Parameters (GET /{prefix}/api/traces)

  • query (string): Search term matching operation name, trace ID, category, tags, or exceptions.
  • page (int, default 1): Target page index.
  • pageSize (int, default 25): Items per page (bounded between 5 and 100).
  • onlySlow (bool, default false): Filter only operations exceeding SlowRequestThresholdMs.
  • sortBy (string, default "Date"): Sorting field ("Date", "Duration", "Memory").

Code Examples

1. Dashboard Registration with Basic Auth (Program.cs)

using RuntimeLens.AspNetCore.Extensions;
using RuntimeLens.Dashboard.Extensions;

var builder = WebApplication.CreateBuilder(args);

// 1. Add Core Telemetry Engine Services
builder.Services.AddRuntimeLens(options =>
{
    options.EnableDashboard = true; // Enable telemetry retention for dashboard
});

// 2. Add Dashboard Services & Options
builder.Services.AddRuntimeLensDashboard(options =>
{
    options.RoutePrefix = "/runtimelens";   // Dashboard URL path prefix (http://localhost:5000/runtimelens)
    options.DefaultLanguage = "en";         // Default UI language: "en". Supported languages: "en", "tr"
    options.DefaultTheme = "dark";          // Initial theme: "dark" or "light"
    options.UseUtcTimestamp = true;         // Display timestamps in UTC time

    // Enable Basic Auth protection for dashboard endpoints
    options.Authentication.Enabled = true;
    options.Authentication.Username = "admin";
    options.Authentication.Password = "SecretPassword123!";
});

var app = builder.Build();

app.UseRouting();
app.UseRuntimeLens();          // Telemetry middleware

// 3. Register Dashboard Middleware & UI Endpoints
app.UseRuntimeLensDashboard();

app.Run();

2. Binding Options via appsettings.json

{
  "RuntimeLens": {
    "Dashboard": {
      "RoutePrefix": "/runtimelens",
      "DefaultLanguage": "en",
      "DefaultTheme": "dark",
      "UseUtcTimestamp": true,
      "Authentication": {
        "Enabled": true,
        "Username": "admin",
        "Password": "SecretPassword123!"
      }
    }
  }
}
var builder = WebApplication.CreateBuilder(args);

// Bind DashboardOptions directly from configuration section
builder.Services.AddRuntimeLensDashboard(options =>
{
    builder.Configuration.GetSection("RuntimeLens:Dashboard").Bind(options);
});

var app = builder.Build();

app.UseRouting();
app.UseRuntimeLens();
app.UseRuntimeLensDashboard(); // Serve dashboard UI & REST APIs

app.Run();

Learn More

👉 RuntimeLens GitHub Repository

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 98 7/20/2026
1.0.0 95 7/20/2026