From f9653807a07b586b0083d0546d617fb60566b62b Mon Sep 17 00:00:00 2001 From: Keegan Irby Date: Tue, 19 Nov 2024 10:27:56 -0800 Subject: [PATCH] Rename metric properties --- .../cloudWatchLogs/commands/tailLogGroup.ts | 8 ++++---- .../core/src/shared/telemetry/vscodeTelemetry.json | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/core/src/awsService/cloudWatchLogs/commands/tailLogGroup.ts b/packages/core/src/awsService/cloudWatchLogs/commands/tailLogGroup.ts index 87d959b9ef0..948eeb18986 100644 --- a/packages/core/src/awsService/cloudWatchLogs/commands/tailLogGroup.ts +++ b/packages/core/src/awsService/cloudWatchLogs/commands/tailLogGroup.ts @@ -43,16 +43,16 @@ export async function tailLogGroup( if (registry.has(uriToKey(session.uri))) { await prepareDocument(session) span.record({ - livetailSessionAlreadyStarted: true, + sessionAlreadyStarted: true, source: source, }) return } span.record({ source: source, - livetailSessionAlreadyStarted: false, - livetailHasLogEventFilterPattern: Boolean(wizardResponse.filterPattern), - livetailLogStreamFilterType: wizardResponse.logStreamFilter.type, + sessionAlreadyStarted: false, + hasLogEventFilterPattern: Boolean(wizardResponse.filterPattern), + logStreamFilterType: wizardResponse.logStreamFilter.type, }) registry.set(uriToKey(session.uri), session) diff --git a/packages/core/src/shared/telemetry/vscodeTelemetry.json b/packages/core/src/shared/telemetry/vscodeTelemetry.json index c7e6d7afa00..fadeda786da 100644 --- a/packages/core/src/shared/telemetry/vscodeTelemetry.json +++ b/packages/core/src/shared/telemetry/vscodeTelemetry.json @@ -352,17 +352,17 @@ "description": "Duration between the partner teams code receiving the message and when the message was finally displayed in ms" }, { - "name": "livetailSessionAlreadyStarted", + "name": "sessionAlreadyStarted", "type": "boolean", "description": "Session already open" }, { - "name": "livetailHasLogEventFilterPattern", + "name": "hasLogEventFilterPattern", "type": "boolean", "description": "If LogEvent filter pattern is applied" }, { - "name": "livetailLogStreamFilterType", + "name": "logStreamFilterType", "type": "string", "description": "Type of LogStream filter applied to session" } @@ -1255,15 +1255,15 @@ "required": true }, { - "type": "livetailSessionAlreadyStarted", + "type": "sessionAlreadyStarted", "required": true }, { - "type": "livetailHasLogEventFilterPattern", + "type": "hasLogEventFilterPattern", "required": false }, { - "type": "livetailLogStreamFilterType", + "type": "logStreamFilterType", "required": false } ]