<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="7.0.0-preview.3.22175.4" />

DiagnosticSource

public abstract class DiagnosticSource
protected DiagnosticSource()

public abstract bool IsEnabled(string name)

public virtual bool IsEnabled(string name, object arg1, object arg2 = null)

public virtual void OnActivityExport(Activity activity, object payload)

public virtual void OnActivityImport(Activity activity, object payload)

public Activity StartActivity(Activity activity, object args)

public void StopActivity(Activity activity, object args)

public abstract void Write(string name, object value)