Skip to content

Commit

Permalink
refactor(amazonq): remove unused metric #933
Browse files Browse the repository at this point in the history
## Problem

`codeTransformStartSrcComponents` is not used anywhere, and `result` /
`reason` are a part of every metric by default, so they don't need to be
manually included.

## Solution

Remove them.
  • Loading branch information
dhasani23 authored Dec 5, 2024
1 parent 6576436 commit 86f3f40
Showing 1 changed file with 1 addition and 87 deletions.
88 changes: 1 addition & 87 deletions telemetry/definitions/commonDefinitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -440,16 +440,6 @@
"type": "string",
"description": "Represents the IDE session from which users start the transformation process"
},
{
"name": "codeTransformStartSrcComponents",
"type": "string",
"description": "Names of components that can start a transformation",
"allowedValues": [
"devToolsStartButton",
"bottomPanelSideNavButton",
"chatPrompt"
]
},
{
"name": "codeTransformStatus",
"type": "string",
Expand Down Expand Up @@ -3847,14 +3837,6 @@
{
"type": "codeTransformTotalByteSize",
"required": true
},
{
"type": "reason",
"required": false
},
{
"type": "result",
"required": true
}
]
},
Expand All @@ -3873,14 +3855,6 @@
{
"type": "codeTransformSessionId",
"required": true
},
{
"type": "reason",
"required": false
},
{
"type": "result",
"required": false
}
]
},
Expand All @@ -3895,14 +3869,6 @@
{
"type": "credentialSourceId",
"required": false
},
{
"type": "reason",
"required": false
},
{
"type": "result",
"required": true
}
]
},
Expand All @@ -3912,7 +3878,7 @@
"metadata": [
{
"type": "codeTransformCancelSrcComponents",
"required": true
"required": false
},
{
"type": "codeTransformRuntimeError",
Expand Down Expand Up @@ -4006,14 +3972,6 @@
"type": "credentialSourceId",
"required": false
},
{
"type": "reason",
"required": false
},
{
"type": "result",
"required": false
},
{
"type": "source",
"required": false
Expand Down Expand Up @@ -4054,14 +4012,6 @@
{
"type": "codeTransformSessionId",
"required": true
},
{
"type": "reason",
"required": false
},
{
"type": "result",
"required": true
}
]
},
Expand All @@ -4077,10 +4027,6 @@
{
"type": "codeTransformSessionId",
"required": true
},
{
"type": "reason",
"required": true
}
]
},
Expand All @@ -4104,14 +4050,6 @@
"type": "codeTransformSessionId",
"required": true
},
{
"type": "reason",
"required": false
},
{
"type": "result",
"required": true
},
{
"type": "source",
"required": false
Expand Down Expand Up @@ -4180,14 +4118,6 @@
{
"type": "codeTransformTotalByteSize",
"required": true
},
{
"type": "reason",
"required": false
},
{
"type": "result",
"required": true
}
]
},
Expand Down Expand Up @@ -4218,14 +4148,6 @@
{
"type": "codeTransformSessionId",
"required": true
},
{
"type": "reason",
"required": false
},
{
"type": "result",
"required": true
}
]
},
Expand Down Expand Up @@ -4253,14 +4175,6 @@
"type": "codeTransformVCSViewerSrcComponents",
"required": true
},
{
"type": "reason",
"required": false
},
{
"type": "result",
"required": true
},
{
"type": "userChoice",
"required": false
Expand Down

0 comments on commit 86f3f40

Please sign in to comment.