Skip to content

Conversation

@laileni-aws
Copy link
Contributor

@laileni-aws laileni-aws commented Feb 22, 2025

Problem

  • No metrics for unit test generation build and execute

Solution

  • Adding telemetry for UTG build and execute with existing telemetry fields
{
            "name": "amazonq_unitTestGeneration",
            "description": "Client side invocation of the Amazon Q Unit Test Generation with build and execute loop",
            "metadata": [
                {
                    "type": "acceptedCharactersCount",
                    "required": false
                },
                {
                    "type": "acceptedCount",
                    "required": false
                },
                {
                    "type": "acceptedLinesCount",
                    "required": false
                },
                {
                    "type": "artifactsUploadDuration",
                    "required": false
                },
                {
                    "type": "buildZipFileBytes",
                    "required": false
                },
                {
                    "type": "count",
                    "required": false
                },
                {
                    "type": "credentialStartUrl",
                    "required": false
                },
                {
                    "type": "cwsprChatProgrammingLanguage"
                },
                {
                    "type": "generatedCharactersCount",
                    "required": false
                },
                {
                    "type": "generatedCount",
                    "required": false
                },
                {
                    "type": "generatedLinesCount",
                    "required": false
                },
                {
                    "type": "hasUserPromptSupplied"
                },
                {
                    "type": "isCodeBlockSelected",
                    "required": false
                },
                {
                    "type": "isSupportedLanguage"
                },
                {
                    "type": "jobGroup",
                    "required": false
                },
                {
                    "type": "jobId",
                    "required": false
                },
                {
                    "type": "perfClientLatency",
                    "required": false
                },
                {
                    "type": "reason",
                    "required": false
                },
                {
                    "type": "reasonDesc",
                    "required": false
                },
                {
                    "type": "result"
                },
                {
                    "type": "update",
                    "required": false
                }
            ]
        },

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@laileni-aws laileni-aws requested a review from a team as a code owner February 22, 2025 00:17
@samgst-amazon samgst-amazon merged commit 8046986 into aws:main Feb 22, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants