-
Notifications
You must be signed in to change notification settings - Fork 469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cwl): Emit telemetry when starting and stopping liveTail sessions #6047
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -350,6 +350,21 @@ | |
"name": "amazonqMessageDisplayedMs", | ||
"type": "int", | ||
"description": "Duration between the partner teams code receiving the message and when the message was finally displayed in ms" | ||
}, | ||
{ | ||
"name": "livetailSessionAlreadyStarted", | ||
"type": "boolean", | ||
"description": "Session already open" | ||
}, | ||
{ | ||
"name": "livetailHasLogEventFilterPattern", | ||
"type": "boolean", | ||
"description": "If LogEvent filter pattern is applied" | ||
}, | ||
{ | ||
"name": "livetailLogStreamFilterType", | ||
"type": "string", | ||
"description": "Type of LogStream filter applied to session" | ||
} | ||
], | ||
"metrics": [ | ||
|
@@ -1230,6 +1245,42 @@ | |
} | ||
], | ||
"passive": true | ||
}, | ||
{ | ||
"name": "cwlLiveTail_Start", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i'm still not sure why we can't just upstream these to commons There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was just following the documentation here: https://github.com/aws/aws-toolkit-vscode/blob/master/docs/telemetry.md. I did this in VSCode so my local builds would generate the telemetry objects and I could bundle adding the metrics as well as using them in the same PR. If I need to update commons instead I can send a change for that. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Opened PR to upstream to Commons. aws/aws-toolkit-common#916 |
||
"description": "When user starts a new LiveTail command", | ||
"metadata": [ | ||
{ | ||
"type": "source", | ||
"required": true | ||
}, | ||
{ | ||
"type": "livetailSessionAlreadyStarted", | ||
"required": true | ||
}, | ||
{ | ||
"type": "livetailHasLogEventFilterPattern", | ||
"required": false | ||
}, | ||
{ | ||
"type": "livetailLogStreamFilterType", | ||
"required": false | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "cwlLiveTail_Stop", | ||
"description": "When user stops a liveTailSession", | ||
"metadata": [ | ||
{ | ||
"type": "source", | ||
"required": true | ||
}, | ||
{ | ||
"type": "duration", | ||
"required": true | ||
} | ||
] | ||
} | ||
] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of prefixing these with the product name like we have in the past, you can probably drop the product name as the prefix so that we can make these more general