Skip to content
Permalink
Browse files

add event properties to telemetryService

  • Loading branch information...
vanesa committed Aug 15, 2019
1 parent 7ebb7cb commit ddb87425ab173b7123ebca0c8d7d4c30f8c6ab57
@@ -83,7 +83,7 @@ export class EventLogger implements TelemetryService {
*
* @param eventName The ID of the action executed.
*/
public async log(eventName: string): Promise<void> {
public async log(eventName: string, eventProperties?: any): Promise<void> {
switch (eventName) {
case 'goToDefinition':
case 'goToDefinition.preloaded':
@@ -26,9 +26,7 @@ export class ClientExtensions {
if (telemetryService) {
extensionRegistry.activeExtensions.subscribe(extensions => {
const activeExtensions = extensions.map(activeExtension => activeExtension.id)
for (const extension of activeExtensions) {
telemetryService.log(extension)
}
telemetryService.log('activeExtensions', { activeExtensions })
})
}

@@ -15,7 +15,7 @@ export interface TelemetryService {
/**
* Log an event (by sending it to the server).
*/
log(eventName: string): void
log(eventName: string, eventProperties?: any): void
}

/**

0 comments on commit ddb8742

Please sign in to comment.
You can’t perform that action at this time.