Skip to main content

6 posts tagged with "Aspire"

Aspire and Its Dashboard, a Local Viewer for OpenTelemetry Logs, Traces and Metrics

View All Tags

How to See a Microsoft Agent Framework Agent's Token Usage in the Aspire Dashboard

· 12 min read
Jagdish Kumawat
Founder @ Dewiride

An agent wrapped with UseOpenTelemetry records how many tokens its model calls use, as the metric gen_ai.client.token.usage, and the Aspire Dashboard charts it. Here three runs of a small agent show up there, with numbers that look wrong at first: 64 and 256, when the runs used 31 and 118 to 150 tokens. They're not wrong, though. They're bucket boundaries.

Fixed: "Endpoint is unsecured. Untrusted apps can send telemetry to the dashboard." in the Aspire Dashboard

· 16 min read
Jagdish Kumawat
Founder @ Dewiride

I started the Aspire Dashboard with the Aspire CLI to watch an ASP.NET Core API's telemetry, and a red banner sat on top of the page: Endpoint is unsecured. Untrusted apps can send telemetry to the dashboard. The dashboard's telemetry endpoint accepts data from any app until you give it an API key. A key removed the banner, and from then on the API had to send the same key, or its telemetry was turned away without a single error in the API.

How to Send ASP.NET Core Logs, Traces and Metrics to the Aspire Dashboard with OpenTelemetry

· 13 min read
Jagdish Kumawat
Founder @ Dewiride

Four OpenTelemetry packages and one UseOtlpExporter() call send an ASP.NET Core app's logs, traces and metrics to the Aspire Dashboard. This guide adds them to a small .NET 10 app, sends it requests, and reads the result on the dashboard's Structured logs, Traces and Metrics pages.