Skip to content

Commit bbc4e51

Browse files
authored
add auth_ssoTokenOperation metric (#1105)
- need metric for createToken call https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sso-oidc/command/CreateTokenCommand/ <!--- REMINDER: - Read CONTRIBUTING.md first. - Add test coverage for your changes. - Link to related issues/commits. - Testing: how did you test your changes? - Screenshots if applicable --> ## License By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent f810484 commit bbc4e51

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

telemetry/definitions/commonDefinitions.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1605,6 +1605,11 @@
16051605
],
16061606
"description": "Type of generation failure"
16071607
},
1608+
{
1609+
"name": "grantType",
1610+
"type": "string",
1611+
"description": "OAuth 2.0 grant type for SSO token operations"
1612+
},
16081613
{
16091614
"name": "hasChatAuth",
16101615
"type": "boolean",
@@ -4005,6 +4010,36 @@
40054010
"metadata": [],
40064011
"passive": true
40074012
},
4013+
{
4014+
"name": "auth_ssoTokenOperation",
4015+
"description": "Tracks SSO token operations (refresh, new login)",
4016+
"metadata": [
4017+
{
4018+
"type": "duration",
4019+
"required": false
4020+
},
4021+
{
4022+
"type": "grantType",
4023+
"required": true
4024+
},
4025+
{
4026+
"type": "reason",
4027+
"required": false
4028+
},
4029+
{
4030+
"type": "reasonDesc",
4031+
"required": false
4032+
},
4033+
{
4034+
"type": "requestId",
4035+
"required": false
4036+
},
4037+
{
4038+
"type": "result",
4039+
"required": true
4040+
}
4041+
]
4042+
},
40084043
{
40094044
"name": "auth_switchRoles",
40104045
"description": "Called when user clicks yes or no to switch role upon adding new connection",

0 commit comments

Comments
 (0)