How to Trace Azure SDK Calls with OpenTelemetry in .NET C#
· 12 min read
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.
