You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cwl): Add metric definitions for LiveTail (#916)
## Problem
Cloudwatch wants to monitor usage metrics of the LiveTail integration
## Solution
When starting a session emit telemetry for:
* Session already started (this case happens when session is already
running, and customer sends a new command that matches the already
running session)
* Has LogEventFilter
* LogStream filter type
* Source of the command (command palette, explorer)
When closing a session:
* Session duration
* source of cancellation (ex: CodeLens, ClosingEditors)
---
<!--- REMINDER: Ensure that your PR meets the guidelines in
CONTRIBUTING.md -->
License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
---------
Co-authored-by: Keegan Irby <[email protected]>
"description": "Type of LogStream filter applied to session"
1450
+
},
1441
1451
{
1442
1452
"name": "metricId",
1443
1453
"type": "string",
@@ -1647,6 +1657,11 @@
1647
1657
"type": "string",
1648
1658
"description": "The name of the AWS service acted on. These values come from the AWS SDK. To find them in the JAVA SDK search for SERVICE_NAME in each service client, or look for serviceId in metadata in the service2.json"
1649
1659
},
1660
+
{
1661
+
"name": "sessionAlreadyStarted",
1662
+
"type": "boolean",
1663
+
"description": "Session already open that matches new request"
1664
+
},
1650
1665
{
1651
1666
"name": "sessionDuration",
1652
1667
"type": "int",
@@ -4995,6 +5010,48 @@
4995
5010
}
4996
5011
]
4997
5012
},
5013
+
{
5014
+
"name": "cwlLiveTail_Start",
5015
+
"description": "When user starts a new LiveTail command",
5016
+
"metadata": [
5017
+
{
5018
+
"type": "hasLogEventFilterPattern",
5019
+
"required": false
5020
+
},
5021
+
{
5022
+
"type": "logStreamFilterType",
5023
+
"required": false
5024
+
},
5025
+
{
5026
+
"type": "result"
5027
+
},
5028
+
{
5029
+
"type": "sessionAlreadyStarted",
5030
+
"required": true
5031
+
},
5032
+
{
5033
+
"type": "source",
5034
+
"required": true
5035
+
}
5036
+
]
5037
+
},
5038
+
{
5039
+
"name": "cwlLiveTail_Stop",
5040
+
"description": "When user stops a liveTailSession",
5041
+
"metadata": [
5042
+
{
5043
+
"type": "duration",
5044
+
"required": true
5045
+
},
5046
+
{
5047
+
"type": "result"
5048
+
},
5049
+
{
5050
+
"type": "source",
5051
+
"required": true
5052
+
}
5053
+
]
5054
+
},
4998
5055
{
4999
5056
"name": "deeplink_open",
5000
5057
"description": "User requested that a resource be opened in the browser using the deeplink service",
0 commit comments