mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 18:47:57 -05:00
fixed connection service tests
This commit is contained in:
@@ -358,20 +358,22 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send a telemetry notification for intellisense performance metrics
|
if (ServiceHost != null)
|
||||||
ServiceHost.SendEvent(TelemetryNotification.Type, new TelemetryParams()
|
|
||||||
{
|
{
|
||||||
Params = new TelemetryProperties
|
// Send a telemetry notification for intellisense performance metrics
|
||||||
|
ServiceHost.SendEvent(TelemetryNotification.Type, new TelemetryParams()
|
||||||
{
|
{
|
||||||
Properties = new Dictionary<string, string>
|
Params = new TelemetryProperties
|
||||||
|
{
|
||||||
|
Properties = new Dictionary<string, string>
|
||||||
{
|
{
|
||||||
{ "IsAzure", info.IsAzure ? "1" : "0" }
|
{ "IsAzure", info.IsAzure ? "1" : "0" }
|
||||||
},
|
},
|
||||||
EventName = TelemetryEventNames.IntellisenseQuantile,
|
EventName = TelemetryEventNames.IntellisenseQuantile,
|
||||||
Measures = info.IntellisenseMetrics.Quantile
|
Measures = info.IntellisenseMetrics.Quantile
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// Close the connection
|
// Close the connection
|
||||||
info.SqlConnection.Close();
|
info.SqlConnection.Close();
|
||||||
|
|||||||
Reference in New Issue
Block a user