Skip to content

Conversation

@tnaum-ms
Copy link
Collaborator

@tnaum-ms tnaum-ms commented Dec 15, 2025

This is a release PR for version 0.6.3 focusing on enhanced telemetry observability across AI-powered features and dependency management.


This pull request introduces improvements to how query insights leverage preloaded and cached data, enhances telemetry tracking, and updates localization strings for better clarity and observability. It also adds new debug data files for testing various MongoDB explain plan scenarios and updates a dependency. The most significant changes are outlined below.

Query Insights AI: Enhanced Use of Preloaded Data & Telemetry

  • Refactored the use of preloaded execution plans, collection stats, and index stats in optimizeQuery to check and use cached data when available, with corresponding telemetry properties and trace logging for each data type. This reduces redundant database calls and improves traceability. [1] [2] [3]
  • Updated the logic to distinguish between data that was fetched versus preloaded, ensuring accurate telemetry and output channel messages for both scenarios. [1] [2]

Explain Plan Verbosity: Cluster-Aware Execution

  • Modified the ClusterSession class to select the appropriate explain plan verbosity (allPlansExecution for Azure Cosmos DB vCore clusters, executionStats for others), providing richer plan data where supported. [1] [2]

Localization and Observability

  • Added new localized strings for tracing the use of preloaded/cached data and for improved error reporting, making logs and user messages clearer and more actionable. [1] [2]
  • Updated an existing log message to generalize the explain stage 2 completion message.

Debug Data and Dependency Updates

  • Added new debug example files for different explain plan scenarios (COLLSCAN, IXSCAN, sharded, etc.) to support testing and development of query insights features. [1] [2] [3]
  • Bumped @trpc/client and @trpc/server dependencies from 11.7.1 to 11.8.0 in package.json.

Copilot AI review requested due to automatic review settings December 15, 2025 12:35
@tnaum-ms tnaum-ms requested a review from a team as a code owner December 15, 2025 12:35
@tnaum-ms tnaum-ms linked an issue Dec 15, 2025 that may be closed by this pull request
Copy link
Contributor

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 release (0.6.3) enhances telemetry tracking across AI-powered features and addresses dependency management. The changes focus on capturing more granular telemetry for template loading, Copilot interactions, and Query Insights actions to improve observability and debugging capabilities.

Key changes:

  • Added comprehensive telemetry tracking to promptTemplateService, copilotService, and QueryInsightsAIService to capture success/failure metrics and error details
  • Updated package dependencies in the API folder with downgraded glob package and related dependencies
  • Removed the devcontainer configuration file

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/services/promptTemplateService.ts Added telemetry tracking for custom prompt template loading failures with template type and command/generation type context
src/services/copilotService.ts Wrapped sendMessage method with telemetry handler to track model usage and LLM errors
src/services/ai/QueryInsightsAIService.ts Enhanced action handlers with telemetry properties for error tracking across createIndex, dropIndex, and modifyIndex operations
src/extension.ts Removed the 'isActivationEvent' telemetry property from the isVCoreAndRURolloutEnabled function
l10n/bundle.l10n.json Added new localized error message for language model response failures
api/package-lock.json Downgraded glob package from 11.1.0 to 11.0.2 and adjusted related dependencies (minimatch, brace-expansion)
.devcontainer/devcontainer.json Deleted the devcontainer configuration file
Files not reviewed (1)
  • api/package-lock.json: Language not supported

@tnaum-ms tnaum-ms requested a review from Copilot December 18, 2025 16:22
@tnaum-ms tnaum-ms merged commit 29a0be5 into next Dec 18, 2025
8 checks passed
@tnaum-ms tnaum-ms deleted the release/063-bundle branch December 18, 2025 17:33
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.

Release 0.6.3 Bundle

5 participants