Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tree-explorer): add treeview telemetry and refactor to use a more standardized format VSCODE-651 #891

Merged
merged 51 commits into from
Dec 9, 2024

Conversation

gagik
Copy link
Contributor

@gagik gagik commented Nov 29, 2024

Built on top of #890

Makes some minor quality of life improvements to our current telemetry setup, especially for sendMessageToParticipant.

  1. Introduce a telemetry field in sendMessageToParticipant (ideally a structure we could use in other places in the future?), which is meant to be a scalable structure for us to pass different arguments to functions we want to track without messing with our objects and too much manual work.
  2. Make command field in various telemetry functions stricter; introduce and cleanup some types to better fit this. Right now we are not keeping a good track of what we call a command when sending telemetry, so this is hoping to document this better with types.
  3. Remove Copilot prefix in places where it may be redundant or not match its property type.

Let me know what you think; this was mainly me a result of me trying to understand & document our current setup better, would be happy to adjust accordingly 🙂

const commandPrefix = command ? `/${command} ` : '';
const query = `@MongoDB ${commandPrefix}${message}`;

if (telemetry) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an example of it might be nice to structure tracking in other functions as some hot-pluggable thing.

@gagik gagik requested a review from alenakhineika November 29, 2024 15:03
@gagik gagik force-pushed the gagik/add-telemetry-to-tree-view-buttons branch from 95bb2ee to 68255cf Compare December 2, 2024 12:55
@gagik gagik changed the title feat: refactor telemetry to use a more standardized format VSCODE-651 feat(tree-view): refactor telemetry to use a more standardized format VSCODE-651 Dec 3, 2024
@gagik gagik changed the title feat(tree-view): refactor telemetry to use a more standardized format VSCODE-651 feat(tree-view): add treeview telemetry and refactor to use a more standardized format VSCODE-651 Dec 3, 2024
@gagik gagik changed the title feat(tree-view): add treeview telemetry and refactor to use a more standardized format VSCODE-651 feat(tree-explorer): add treeview telemetry and refactor to use a more standardized format VSCODE-651 Dec 4, 2024
…vscode into gagik/add-telemetry-to-tree-view-buttons
Base automatically changed from gagik/add-playground-buttons to main December 6, 2024 15:32
@gagik gagik merged commit 7879cf9 into main Dec 9, 2024
6 checks passed
@gagik gagik deleted the gagik/add-telemetry-to-tree-view-buttons branch December 9, 2024 14:25
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.

3 participants