Language

TracingRule(String, String, String, ActivitySourceScopes, Boolean) Constructor

Definition

Initializes a new instance of the TracingRule class.

public:
 TracingRule(System::String ^ sourceName, System::String ^ operationName, System::String ^ listenerName, Microsoft::Extensions::Diagnostics::Tracing::ActivitySourceScopes scopes, bool enable);
public TracingRule(string? sourceName, string? operationName, string? listenerName, Microsoft.Extensions.Diagnostics.Tracing.ActivitySourceScopes scopes, bool enable);
new Microsoft.Extensions.Diagnostics.Tracing.TracingRule : string * string * string * Microsoft.Extensions.Diagnostics.Tracing.ActivitySourceScopes * bool -> Microsoft.Extensions.Diagnostics.Tracing.TracingRule
Public Sub New (sourceName As String, operationName As String, listenerName As String, scopes As ActivitySourceScopes, enable As Boolean)

Parameters

sourceName
String

The Name, prefix, or pattern with a single * wildcard. A null or empty value matches all activity sources.

operationName
String

The OperationName, exact match. A null or empty value matches all activities within the matching sources.

listenerName
String

The Name. A null or empty value matches all listeners.

scopes
ActivitySourceScopes

A bitwise combination of the enumeration values that specifies the scopes to consider.

enable
Boolean

true to enable matched activities for this listener; otherwise, false.

Exceptions

sourceName contains more than one * wildcard.

Applies to