aws / aws/aws-toolkit-vscode

telemetry: record metric when a tree node fails to load

Open
#1,759 0 comments 0 reactions 0 assignees View on GitHub
telemetry
Dominant language
TypeScript
Stars
2k
Forks
807
Avg merge
10h 12m
Merged PRs (30d)
7

Description

### Problem:

1. No metrics for when a tree node fails.
2. No metrics when user clicks to view error logs.

Note: we have `recordAwsShowExplorerErrorDetails` in `showErrorDetails.ts` but that only tracks when a user chooses to view error details.

### Proposal:

1. Create a new metric `treeNodeError` with a field for the exception name/code
2. In e.g.`treeNodeUtilities.ts:makeChildrenNodes()` record the new metric when an error occurs.
3. call `recordAwsShowExplorerErrorDetails` in `aws.viewLogsAtMessage` (see `registerLoggerCommands()`)

Contributor guide

Open the contributing guide

Research direction

Start with treeNodeUtilities.ts at makeChildrenNodes() and inspect how errors are handled. Then review showErrorDetails.ts and registerLoggerCommands(), including aws.viewLogsAtMessage and recordAwsShowExplorerErrorDetails. Done means tree-node failures record treeNodeError with the exception name/code, and viewing error logs records the existing metric.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
observability
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.