public override IEnumerable <EventListener> CreateTelemetryListeners(string providerName, string enlistmentId, string mountId)
        {
            string gitBinRoot = this.GitInstallation.GetInstalledGitBinPath();

            var etwListener = ETWTelemetryEventListener.CreateIfEnabled(gitBinRoot, providerName, enlistmentId, mountId);

            if (etwListener != null)
            {
                yield return(etwListener);
            }

            var daemonListener = TelemetryDaemonEventListener.CreateIfEnabled(gitBinRoot, providerName, enlistmentId, mountId, pipeName: "vfs");

            if (daemonListener != null)
            {
                yield return(daemonListener);
            }
        }
예제 #2
0
        public override IEnumerable <EventListener> CreateTelemetryListeners(string providerName, string enlistmentId, string mountId)
        {
            string gitBinRoot = this.GitInstallation.GetInstalledGitBinPath();

            ETWTelemetryEventListener etwListener = ETWTelemetryEventListener.CreateIfEnabled(gitBinRoot, providerName, enlistmentId, mountId);

            if (etwListener != null)
            {
                yield return(etwListener);
            }

            // TODO: enable the daemon-based telemetry listener once we're happy.
            // See GitHub issue: https://github.com/Microsoft/VFSForGit/issues/739
            //
            // TelemetryDaemonEventListener daemonListener = TelemetryDaemonEventListener.CreateIfEnabled(gitBinRoot, providerName, enlistmentId, mountId, pipeName: "vfs");
            // if (daemonListener != null)
            // {
            //     yield return daemonListener;
            // }
        }