Skip to content

Conversation

Anemy
Copy link
Member

@Anemy Anemy commented Sep 17, 2025

COMPASS-9785

Adds new data modeling telemetry events around fields and collections.

Included a source on some of them, as we'll eventually have inline editing and probably have right click for also triggering these events. Didn't add the upstream arguments for passing these as they don't exist yet (i.e. add source to the function arguments). I can if folks prefer that though.

@Copilot Copilot AI review requested due to automatic review settings September 17, 2025 17:12
@Anemy Anemy requested a review from a team as a code owner September 17, 2025 17:12
@Anemy Anemy requested a review from nbbeeken September 17, 2025 17:12
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds telemetry event tracking to data modeling diagram operations in MongoDB Compass. It introduces new telemetry event types for collection and field operations and implements tracking calls within the diagram store actions.

  • Adds 6 new telemetry event types for data modeling operations (collection add/remove/rename, field remove/rename/type change)
  • Implements telemetry tracking in diagram store functions with source attribution
  • Updates return types from boolean to void for functions that now include tracking logic

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
packages/compass-telemetry/src/telemetry-events.ts Defines new telemetry event types and adds them to the main TelemetryEvent union
packages/compass-data-modeling/src/store/diagram.ts Implements telemetry tracking calls in collection and field manipulation functions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Anemy Anemy merged commit 51836ea into main Sep 19, 2025
60 checks passed
@Anemy Anemy deleted the COMPASS-9785-add-telemetry branch September 19, 2025 16:11
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