Query Azure Application Insights telemetry data for command usage, extension activity, and performance metrics
Query Azure Application Insights telemetry to answer questions about command usage, extension activity, performance.
APP_INSIGHTS_API_KEY env varAPP_INSIGHTS_CLIENT_ID env vartsx scripts/queryAppInsights.ts "customEvents | take 1"tsx scripts/queryAppInsights.ts "<kql-query>"/commandExecution (Legacy/v2) or stored in dependencies table (OTEL/v3)customEvents (Legacy), dependencies (OTEL Spans), requests (Root Spans)name (Span name), cloud_RoleName (Extension name), operation_Id (Trace ID), operation_ParentId (Parent Span ID)where operation_ParentId == operation_Id (Finds top-level spans in v3)customMeasurements.executionTime (ms for Legacy) or duration (ms for OTEL)references/command-id-vs-executor.md - Finding executor names, shared executors, commands without telemetryreferences/query-patterns.md - Common KQL patternsreferences/script.md - Script implementation details39:["$","$L41",null,{"content":"$42","frontMatter":{"name":"query-app-insights","description":"Query Azure Application Insights telemetry data for command usage, extension activity, and performance metrics","disable-model-invocation":true}}]