FollowActivity(string, IDiagnosticSourceActivityFilter)
Follows a specific activity.
Declaration
public void FollowActivity(string activityName, IDiagnosticSourceActivityFilter filter = null)
Parameters
Type | Name | Description |
---|---|---|
string | activityName | Name of the activity to follow. |
IDiagnosticSourceActivityFilter | filter | Determines how a DiagnosticListener activity must be translated into a PostSharp Logging activity. This parameter is mandatory under .NET Framework because there is no way to automatically implement the TryGetCorrelationKey(object, out object) method. It is optional under .NET Core. |