Quick start

Install the package and mount the dashboard — two calls in Program.cs, nothing else to deploy.

bash
dotnet add package Nafas.Observability
csharp
var builder = WebApplication.CreateBuilder(args);

builder.Services.AddNafasServer(options =>
{
    // Every option below is optional -- these are the actual defaults.
    options.Provider = DatabaseProvider.Sqlite;
    options.RetentionDays = 30;
    // options.AlertWebhookUrl = "https://example.com/webhooks/nafas";
});

var app = builder.Build();

app.UseNafasDashboard("/nafas"); // -> https://your-app/nafas

app.Run();

That's it — no instrumentation code to add anywhere else.

What you get immediately

Every ILogger call, every Activity/span (including ASP.NET Core's own per-request span), and every Meter measurement (including ASP.NET Core 8+'s built-in request-duration metric) your app already produces is captured from this point on and shown on a real-time dashboard mounted directly inside your own app, in English or Persian, light or dark.

Next steps