You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
telemetry(auth): debounce aws_loadCredentials and add debugging information (#6499)
## Problem
This metric is currently being spammed in telemetry at unusual volume.
It is suspected that this is connected to this change:
https://github.com/aws/aws-toolkit-vscode/pull/5979/files, but the
connection is not yet clear.
## Solution
- use the `withTelemetryContext` decorator to emit a `function_call`
metric to capture additional information. This metric should allow us to
determine what is calling this function so much. Added techdebt test to
remove this debugging information before the following release.
- debounce the current emit line that is causing the high volume
emission.
## Future Work
- `debounce` reimplements a special case of `debounceWithCancel`, these
can be redone to reduce code and improve reliability.
---
- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
Copy file name to clipboardExpand all lines: packages/core/src/test/techdebt.test.ts
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -39,4 +39,11 @@ describe('tech debt', function () {
39
39
// This is relevant for the use of `fs.cpSync` in the copyFiles scripts.
40
40
assert.ok(semver.lt(minNodejs,'18.0.0'),'with node18+, we can remove the dependency on @types/node@18')
41
41
})
42
+
43
+
it('remove debugging telemetry',asyncfunction(){
44
+
fixByDate(
45
+
'2025-02-11',
46
+
'Remove debugging telemetry in `packages/core/src/auth/providers/credentialsProviderManager.ts`. Should only need to remove the `emit: true` in the decorator.'
0 commit comments