<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="5.0.0-preview.8.20407.11" />

ActivityListener

public sealed class ActivityListener : IDisposable
public Action<Activity> ActivityStarted { get; set; }

public Action<Activity> ActivityStopped { get; set; }

public bool AutoGenerateRootContextTraceId { get; set; }

public GetRequestedData<string> GetRequestedDataUsingParentId { get; set; }

public Func<ActivitySource, bool> ShouldListenTo { get; set; }

public void Dispose()