Skip to main content

14 posts tagged with "Observability"

Seeing What an App Does in Production, with Logs, Traces, Metrics and Audit Trails

View All Tags

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.

How to Trace Azure Cosmos DB Calls with OpenTelemetry in .NET C#

· 15 min read
Jagdish Kumawat
Founder @ Dewiride

The Azure Cosmos DB SDK for .NET can create an OpenTelemetry span for every read and write, but its stable releases leave that off. Turning it on takes three things: DisableDistributedTracing = false, the Azure.Cosmos.Operation source and the Azure.Experimental.EnableActivitySource switch. Without the switch, SDK 3.64.0 sent nothing at all.

How to Trace Azure SDK Calls with OpenTelemetry in .NET C#

· 12 min read
Jagdish Kumawat
Founder @ Dewiride

Azure SDK libraries for .NET create OpenTelemetry spans for their own calls, and one line, AddSource("Azure.*"), collects them all. Here a small console app asks AzureCliCredential for two tokens, and both calls show up in the Aspire Dashboard with how long they took. The Azure.Experimental.EnableActivitySource switch wasn't needed.