Skip to content

Commit

Permalink
Merge pull request #58038 from genlu/RemoteHostFramework
Browse files Browse the repository at this point in the history
Log runtime framework of remote host
  • Loading branch information
genlu authored Dec 1, 2021
2 parents 7577c07 + 233618d commit 18f3bc3
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.ErrorReporting;
using Microsoft.CodeAnalysis.Internal.Log;
using Microsoft.CodeAnalysis.Notification;
using Microsoft.CodeAnalysis.Remote.Diagnostics;
using Microsoft.CodeAnalysis.Telemetry;
using Microsoft.VisualStudio.LanguageServices.Telemetry;
using Microsoft.VisualStudio.Telemetry;
using Microsoft.CodeAnalysis.Notification;
using RoslynLogger = Microsoft.CodeAnalysis.Internal.Log.Logger;
using Roslyn.Utilities;
using Microsoft.CodeAnalysis.ErrorReporting;
using RoslynLogger = Microsoft.CodeAnalysis.Internal.Log.Logger;

namespace Microsoft.CodeAnalysis.Remote
{
Expand Down Expand Up @@ -60,7 +61,11 @@ public ValueTask InitializeTelemetrySessionAsync(int hostProcessId, string seria
WatsonReporter.InitializeFatalErrorHandlers();

// log telemetry that service hub started
RoslynLogger.Log(FunctionId.RemoteHost_Connect, KeyValueLogMessage.Create(m => m["Host"] = hostProcessId));
RoslynLogger.Log(FunctionId.RemoteHost_Connect, KeyValueLogMessage.Create(m =>
{
m["Host"] = hostProcessId;
m["Framework"] = RuntimeInformation.FrameworkDescription;
}));

#if DEBUG
// start performance reporter
Expand Down

0 comments on commit 18f3bc3

Please sign in to comment.