Query app insights

From forcedotcom/salesforcedx-vscode · View interactive version

Query app insights is an AI agent skill from the GitHub repository forcedotcom/salesforcedx-vscode. Query Azure Application Insights telemetry data for command usage, extension activity, and performance metrics

How to use this skill

Skill file

Query App Insights

Query Azure Application Insights telemetry to answer questions about command usage, extension activity, performance.

Prerequisites

Workflow

  1. Validate credentials - check env vars exist
  2. Test API - node scripts/queryAppInsights.mts "customEvents | take 1"
  3. Interpret question - identify commands, extensions, time ranges, metrics
  4. Find executor name - if checking a command, find its executor name (see references)
  5. Build KQL query - use executor names, not command IDs
  6. Execute - node scripts/queryAppInsights.mts "<kql-query>"
  7. Answer - interpret results, format clearly

Key Points

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.