Update connection event properties (#14608)

This commit is contained in:
Charles Gagnon
2021-03-09 08:39:14 -08:00
committed by GitHub
parent e2a5859155
commit b5e66a715f
3 changed files with 38 additions and 36 deletions

View File

@@ -3,6 +3,7 @@
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as azdata from 'azdata';
import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
export const IAdsTelemetryService = createDecorator<IAdsTelemetryService>('adsTelemetryService');
@@ -21,16 +22,6 @@ export interface ITelemetryEventMeasures {
[key: string]: number;
}
/**
* Connection info properties to add into an event.
*/
export interface ITelemetryConnectionInfo {
authenticationType?: string;
providerName?: string;
serverType?: string;
engineType?: string;
}
export interface ITelemetryEvent {
/**
* Sends the event
@@ -51,9 +42,15 @@ export interface ITelemetryEvent {
/**
* Adds additional connection-related information to this event.
* @param connectionInfo The connection info to add. Only the fields in TelemetryConnectionInfo are included, all others are ignored.
* @param connectionInfo The connection info to add.
*/
withConnectionInfo(connectionInfo: ITelemetryConnectionInfo): ITelemetryEvent;
withConnectionInfo(connectionInfo?: azdata.IConnectionProfile): ITelemetryEvent;
/**
* Adds additional server-related information to this event.
* @param serverInfo The server info to add.
*/
withServerInfo(serverInfo?: azdata.ServerInfo): ITelemetryEvent;
}
export interface ITelemetryInfo {