What is auto-instrumentation for Azure Monitor Application Insights?

Auto-instrumentation quickly and easily enables Application Insights to make telemetry like metrics, requests, and dependencies available in your Application Insights resource.

  • No code changes are required.
  • SDK update overhead is eliminated.
  • Recommended when available.

Supported environments, languages, and resource providers

The following table shows the current state of auto-instrumentation availability.

Links are provided to more information for each supported scenario.

Environment/Resource provider .NET Framework .NET Core / .NET Java Node.js Python
Azure App Service on Windows - Publish as Code ✅ 🔗 1 ✅ 🔗 1 ✅ 🔗 1 ✅ 🔗 1
Azure App Service on Windows - Publish as Docker 2 2 2
Azure App Service on Linux - Publish as Code ✅ 🔗 1 ✅ 🔗 1 ✅ 🔗
Azure App Service on Linux - Publish as Docker ✅ 🔗 ✅ 🔗
Azure Functions - basic ✅ 🔗 1 ✅ 🔗 1 ✅ 🔗 1 ✅ 🔗 1 ✅ 🔗 1
Azure Functions - dependencies ✅ 🔗 2 ✅ 🔗
Azure Spring Cloud ✅ 🔗
Azure Kubernetes Service (AKS) ✅ 🔗
Azure VMs Windows ✅ 🔗 2 3 ✅ 🔗 2 3 ✅ 🔗
On-premises VMs Windows ✅ 🔗 3 ✅ 🔗 2 3 ✅ 🔗
Standalone agent - any environment ✅ 🔗

Footnotes

Note

Auto-instrumentation was known as "codeless attach" before October 2021.

Next steps