Skip to content

Commit 16a1e0c

Browse files
authored
telemetry: ide_editCodeFile (#793)
Problem: Some products want to know the top X code files that are opened. Solution: Emit a deduplicated metric which tracks file extensions.
1 parent e8c49d7 commit 16a1e0c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

telemetry/definitions/commonDefinitions.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5603,7 +5603,7 @@
56035603
},
56045604
{
56055605
"name": "file_editAwsFile",
5606-
"description": "Use authoring features such as autocompletion, syntax checking, and highlighting, for AWS filetypes (CFN, SAM, etc.). Emit this _once_ per file-editing session for a given file. Ideally this is emitted only if authoring features are used, rather than merely opening or touching a file.",
5606+
"description": "Use authoring features such as autocompletion, syntax checking, and highlighting, for AWS filetypes (CFN, SAM, etc.). Emit this _once_ per file-editing session for a given file. For generic code files see `ide_editCodeFile`.",
56075607
"metadata": [
56085608
{
56095609
"type": "awsFiletype",
@@ -5711,6 +5711,17 @@
57115711
}
57125712
]
57135713
},
5714+
{
5715+
"name": "ide_editCodeFile",
5716+
"description": "User opened a code file with the given file extension. Client should DEDUPLICATE this metric (ideally hourly/daily). AWS-specific files should (also) emit `file_editAwsFile`.",
5717+
"passive": true,
5718+
"metadata": [
5719+
{
5720+
"type": "filenameExt",
5721+
"required": false
5722+
}
5723+
]
5724+
},
57145725
{
57155726
"name": "lambda_configure",
57165727
"description": "Called when opening the local configuration of a Lambda to edit",

0 commit comments

Comments
 (0)