private void OnEvent(TraceEvent traceEvent) { // Suppress events from TplEventSource--they are mostly interesting for debugging task processing and interaction, // and not that useful for production tracing. However, TPL EventSource must be enabled to get hierarchical activity IDs. if (!TplActivities.TplEventSourceGuid.Equals(traceEvent.ProviderGuid)) { traceEvent.Track(this.client); } }