Skip to content

Commit 608571e

Browse files
authored
feat: add general latency metrics (aws#913)
## Problem - Soooooooooo many teams have specific latency metric fields and many are asking to add them for re-invent ## Solution - De-dup a lot of them e.g. amazonqGenerateApproachLatency, amazonqGenerateCodeResponseLatency, amazonqEndOfTheConversationLatency, etc ## Other notes - amazonq_approachInvoke would then have perfServerLatency instead of an individual amazonqGenerateApproachLatency field - amazonq_codeGenerationInvoke would then have perfServerLatency instead of an individual amazonqGenerateCodeResponseLatency field - amazonq_endChat would then have perfE2ELatency instead of an individual amazonqEndOfTheConversationLatency field - In the future we can re-use the perfClientLatency metric for tracking the duration of different events that only happen in the client side (e.g. how long the client latency takes in the amazon q chat flow)
1 parent f851093 commit 608571e

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

telemetry/definitions/commonDefinitions.json

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@
11451145
"remoteDesktop",
11461146
"ssh",
11471147
"scp",
1148-
"ssm",
1148+
"ssm",
11491149
"remoteWorkspace"
11501150
],
11511151
"description": "Ways to connect to an EC2 Instance"
@@ -1488,6 +1488,21 @@
14881488
"type": "int",
14891489
"description": "Number of generation paths modified"
14901490
},
1491+
{
1492+
"name": "perfClientLatency",
1493+
"type": "double",
1494+
"description": "The time duration in milliseconds to process an action on the client side"
1495+
},
1496+
{
1497+
"name": "perfE2ELatency",
1498+
"type": "double",
1499+
"description": "The time duration in milliseconds to complete an end to end flow"
1500+
},
1501+
{
1502+
"name": "perfServerLatency",
1503+
"type": "double",
1504+
"description": "The time duration in milliseconds to finish a request to the server side"
1505+
},
14911506
{
14921507
"name": "platform",
14931508
"type": "string",
@@ -7069,4 +7084,4 @@
70697084
]
70707085
}
70717086
]
7072-
}
7087+
}

0 commit comments

Comments
 (0)