mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-20 09:35:38 -05:00
Merge from vscode e3c4990c67c40213af168300d1cfeb71d680f877 (#16569)
This commit is contained in:
@@ -7,7 +7,6 @@ import * as azdata from 'azdata';
|
||||
import { IAdsTelemetryService, ITelemetryInfo, ITelemetryEvent, ITelemetryEventMeasures, ITelemetryEventProperties } from 'sql/platform/telemetry/common/telemetry';
|
||||
import { ILogService } from 'vs/platform/log/common/log';
|
||||
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
|
||||
import { assign } from 'vs/base/common/objects';
|
||||
import { EventName } from 'sql/platform/telemetry/common/telemetryKeys';
|
||||
|
||||
|
||||
@@ -36,17 +35,17 @@ class TelemetryEventImpl implements ITelemetryEvent {
|
||||
}
|
||||
|
||||
public withAdditionalProperties(additionalProperties: ITelemetryEventProperties): ITelemetryEvent {
|
||||
assign(this._properties, additionalProperties);
|
||||
Object.assign(this._properties, additionalProperties);
|
||||
return this;
|
||||
}
|
||||
|
||||
public withAdditionalMeasurements(additionalMeasurements: ITelemetryEventMeasures): ITelemetryEvent {
|
||||
assign(this._measurements, additionalMeasurements);
|
||||
Object.assign(this._measurements, additionalMeasurements);
|
||||
return this;
|
||||
}
|
||||
|
||||
public withConnectionInfo(connectionInfo?: azdata.IConnectionProfile): ITelemetryEvent {
|
||||
assign(this._properties,
|
||||
Object.assign(this._properties,
|
||||
{
|
||||
authenticationType: connectionInfo?.authenticationType,
|
||||
provider: connectionInfo?.providerName
|
||||
@@ -55,7 +54,7 @@ class TelemetryEventImpl implements ITelemetryEvent {
|
||||
}
|
||||
|
||||
public withServerInfo(serverInfo?: azdata.ServerInfo): ITelemetryEvent {
|
||||
assign(this._properties,
|
||||
Object.assign(this._properties,
|
||||
{
|
||||
connectionType: serverInfo?.isCloud !== undefined ? (serverInfo.isCloud ? 'Azure' : 'Standalone') : '',
|
||||
serverVersion: serverInfo?.serverVersion ?? '',
|
||||
|
||||
Reference in New Issue
Block a user