<PackageReference Include="Microsoft.Extensions.Diagnostics.Abstractions" Version="11.0.0-rc.3.26522.148" />

Microsoft.Extensions.Diagnostics.Tracing.TracingRule

public class TracingRule
Contains a set of parameters used to determine which activities are enabled for which listeners. An unspecified SourceName matches all activity sources, an unspecified OperationName matches all activities within the matching sources, and an unspecified ListenerName matches all listeners.
namespace Microsoft.Extensions.Diagnostics.Tracing { public class TracingRule { public string SourceName { get; } public string OperationName { get; } public string ListenerName { get; } public ActivitySourceScopes Scopes { get; } public bool Enable { get; } public TracingRule(string sourceName, string operationName, string listenerName, ActivitySourceScopes scopes, bool enable); } }