14 lines
361 B
C#
14 lines
361 B
C#
using System.Diagnostics;
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace NejCommon.Utils;
|
|
|
|
public static class Telemetry
|
|
{
|
|
public const string SourceName = "Api";
|
|
|
|
public static readonly ActivitySource Source = new(SourceName);
|
|
|
|
public static Activity? Start([CallerMemberName] string operation = "")
|
|
=> Source.StartActivity(operation);
|
|
} |