public void ActivityScopeStarted(ActivitySource source, ref ActivityScope scope) { if (_sampleFunc(ref scope)) { scope.EnsureActivityCreated().ActivityTraceFlags = System.Diagnostics.ActivityTraceFlags.Recorded; } }
public void ActivityScopeStarted(ActivitySource source, ref ActivityScope scope) { if (ActivitySourceListenerCompat.s_azureClientListener.IsEnabled(_originalActivityName)) { Activity a = scope.EnsureActivityCreated(); ActivitySourceListenerCompat.s_azureClientListener.Write(_startEventName, a); } }