Skip to content

Commit 595b6d5

Browse files
committed
feat: add more decorators to track
1 parent 829166b commit 595b6d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/core/src/auth/auth.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ export class Auth implements AuthService, ConnectionManager {
417417
await setContext('aws.isInternalUser', false)
418418
}
419419

420+
@withTelemetryContext({ name: 'getConnection', class: authClassName })
420421
public async getConnection(connection: Pick<Connection, 'id'>): Promise<Connection | undefined> {
421422
const connections = await this.listConnections()
422423

@@ -524,6 +525,7 @@ export class Auth implements AuthService, ConnectionManager {
524525
await this.thrownOnConn(id, 'exists')
525526
}
526527

528+
@withTelemetryContext({ name: 'thrownOnConn', class: authClassName })
527529
private async thrownOnConn(id: CredentialsId, throwOn: 'exists' | 'not-exists') {
528530
const idAsString = asString(id)
529531
const conns = await this.listConnections() // triggers loading of profile in to store

0 commit comments

Comments
 (0)