Esempio n. 1
0
 public override InProcEventListener CreateTelemetryListenerIfEnabled(string providerName, string enlistmentId, string mountId)
 {
     return(ETWTelemetryEventListener.CreateTelemetryListenerIfEnabled(
                this.GitInstallation.GetInstalledGitBinPath(),
                providerName,
                enlistmentId,
                mountId));
 }
        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);
            }
        }
Esempio n. 3
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;
            // }
        }