Elastiflix/dotnet-login-otel-manual/Telemetry.cs (5 lines of code) (raw):
using System.Diagnostics;
public static class Telemetry
{
//...
// Name it after the service name for your app.
// It can come from a config file, constants file, etc.
public static readonly ActivitySource LoginActivitySource = new("Login");
//...
}