Application Insights: workspace-based, and where OpenTelemetry fits
Verdict: Application Insights stores data in a Log Analytics workspace (classic is retired): cross-querying, workspace retention, table-level RBAC. OpenTelemetry is the server-side path; the JavaScript SDK does not use it. On AKS, node and pod metrics belong to managed Prometheus.
| Criterion | Application Insights | OpenTelemetry |
|---|---|---|
| What it is | APM: traces, dashboards, alerts on error and quality metrics | Instrumentation standard feeding Application Insights |
| Workspace-based gains | KQL cross-querying with Azure Monitor data; workspace retention; table-level RBAC. Every resource is workspace-based now | Unaffected - transport, not storage |
| Functions setup | Bound via APPLICATIONINSIGHTS_CONNECTION_STRING | telemetryMode: OpenTelemetry in host.json; not supported for C# in-process |
| Where it does NOT apply | Node/pod counters (that is managed Prometheus with PromQL) | Browser: the JavaScript SDK does not use OpenTelemetry |
Rules
- Application Insights is always workspace-based now (classic is retired): that gives cross-querying, workspace retention and table-level RBAC - it does not add paired-region replication.
- Wire Functions to OpenTelemetry via telemetryMode in host.json plus the connection string setting - and know C# in-process is unsupported.
- For AI agents on Foundry: start tracing in Foundry, then add the Azure Monitor OpenTelemetry Distro - Application Insights carries the token, latency, error and quality dashboards.
- Node and pod CPU/memory counters as PromQL time series belong to managed Prometheus in an Azure Monitor workspace - not to Application Insights or to Container insights log tables.
Traps
- The Application Insights JavaScript SDK does not use OpenTelemetry - browser instrumentation is its own path.
- Collecting AKS metrics as Container insights log data pays log-ingestion rates for high-cardinality counters and has no PromQL. Container insights can still chart the Prometheus metrics.