Application Insights (OpenTelemetry) in 60 seconds
Management & GovernanceAPMAWS: AWS X-Ray
What it is
Azure Monitor’s application monitoring. The Azure Monitor OpenTelemetry Distro sends traces, metrics and logs; the application map and end-to-end transaction view follow one request across services.
Simulate it »✅ Use it when
- Distributed tracing across APIs, queues and databases
- Finding slow dependencies
- Failure and exception analysis
🚫 Not the best fit when
- Business analytics dashboards (use a BI tool)
💰 Price feel: ●●○○ Low
Pay per GB ingested (≈ $2.30/GB pay-as-you-go), first 5 GB a month free
Illustrative pay-as-you-go list prices at approximate exchange rates. Use the Azure pricing calculator for real quotes.
Simulate it
🖱️ Drag to rotate · scroll or pinch to zoom
A trace across services
One user question goes web API → queue → worker → Cosmos DB → model. OpenTelemetry gives every hop a span that shares one trace ID, so you see the whole journey. The Azure Monitor OpenTelemetry Distro sends it to Application Insights.
🤔 What happens if…
Read this tour as text
- Secrets don’t belong in code. A connection string in
config.pyends up in git, in screenshots and in old laptops. Azure Key Vault stores secrets, keys and certificates. The app reads them at run time with a managed identity, so there’s no password to steal. - Versions and rotation. Each time you set a secret, Key Vault keeps a new version. Apps that ask for the secret without a version get the latest. Rotation creates a new version: for keys, a rotation policy does it on a schedule; for secrets, Key Vault raises a
SecretNearExpiryevent through Event Grid and your function sets the new value. Apps pick it up without a redeploy. - App Configuration. Azure App Configuration holds settings as key-values with optional labels (dev, prod) and feature flags. It can point at Key Vault with Key Vault references. Apps refresh settings without restarting, often by watching a sentinel key.
- A trace across services. One user question goes web API → queue → worker → Cosmos DB → model. OpenTelemetry gives every hop a span that shares one trace ID, so you see the whole journey. The Azure Monitor OpenTelemetry Distro sends it to Application Insights.
- Find the slow span. The trace shows each span’s duration. Here the model call is fine, but a Cosmos DB query without a partition key takes 2.4 seconds. Custom spans and attributes (like
tenant.id) make the story even clearer. - Logs live in tables. Application Insights and Log Analytics store telemetry in tables:
requests,dependencies,exceptions,traces, plus metrics. Container Apps logs land inContainerAppConsoleLogs_CL, AKS inContainerLogV2. - Ask with KQL. Kusto Query Language (KQL) reads top to bottom through pipes:
requests | where success == false | summarize count() by bin(timestamp, 5m) | render timechart.wherefilters,summarizeaggregates,projectpicks columns,joincombines tables. - Turn a query into an alert. A log search alert runs a KQL query on a schedule and fires when the result crosses a threshold. A metric alert watches a number like CPU or queue length. Either can email the team or call a webhook.