Urgent.News

What's breaking now, across thousands of outlets.

Tech

Why I built a live request-flow visualizer for ASP.NET Core (and what v0.4.0 adds)

markdown Every time a request misbehaves somewhere deep inside a layered ASP.NET Core API, I hit the same wall. I know *something* went wrong between the controller and the database, but I don't know *where*, not without attaching a debugger or stitching it together from logs after the fact. That's the gap NetApiFlow is trying to close. It's an open source NuGet package that shows, live, the…

In his latest article, the reporter delves into the creation of a live request-flow visualizer for ASP.NET Core, a project called NetApiFlow. This open-source NuGet package allows developers to see the exact path an HTTP request takes through their code, from controller to database, in real-time. The tool eliminates the need for debuggers or post-mortem log analysis, providing instant insights into where a request misbehaves.

The installation process is straightforward, requiring just two lines of code to add the package and dashboard to the API process. Once installed, a URL can be accessed to view the live graph, which highlights each step as it runs, flags slow steps, and shows unexecuted branches. Every state is color-coded for clarity, with icons and text providing additional context.

Beyond the live graph, NetApiFlow stores every execution, allowing users to step through past traces at their own pace. It automatically identifies N+1 problems in SQL queries and can generate static architecture maps of common endpoint behaviors. The core of the tool listens to existing ActivitySource emissions from HttpClient and Npgsql, enabling free OpenTelemetry interop without additional SDKs.

v0.4.0 introduces authentication capabilities to the test panel, reading security schemes from the OpenAPI document to automatically add authorization headers for protected routes. This feature eliminates the need for manual header insertion and works seamlessly with any API that emits metadata. The entire project is MIT licensed, with the inspiration drawn from a similar tool for Spring Boot, emphasizing a clean, unencumbered implementation.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

How I stopped getting paged at 3am for raw SSH logs (and built a host agent for Linux)

If you run your own Linux boxes, you already know what /var/log/auth.log looks like five minutes after spinning up a fresh VPS. Nobody knows the IP. You haven't pointed a domain at it yet.

  • Vigilhold monitors Linux servers for security events without opening inbound ports.
  • Agent records and blocks malicious activities while maintaining tamper-evident audit logs.

More from Monday 16 November →