What is autoinstrumentation for Azure Monitor Application Insights?
Autoinstrumentation enables Application Insights to make telemetry like metrics, requests, and dependencies available in your Application Insights resource. It provides easy access to experiences such as the application dashboard and application map.
The term "autoinstrumentation" is a portmanteau, a linguistic blend where parts of multiple words combine into a new word. "Autoinstrumentation" combines "auto" and "instrumentation." It sees widespread use in software observability and describes the process of adding instrumentation code to applications without manual coding by developers.
The autoinstrumentation process varies by language and platform, but often involves a toggle button in the Azure portal. The following example shows a toggle button for Azure App Service autoinstrumentation.
Tip
We do not provide autoinstrumentation specifics for all languages and platforms in this article. For detailed information, select the corresponding link in the Supported environments, languages, and resource providers table. In many cases, autoinstrumentation is enabled by default.
What are the autoinstrumentation advantages?
- Code changes aren't required.
- Access to source code isn't required.
- Configuration changes aren't required.
- Instrumentation maintenance is eliminated.
Supported environments, languages, and resource providers
The following table shows the current state of autoinstrumentation availability.
Links are provided to more information for each supported scenario.
Note
If your hosting environment or resource provider is not listed in the following table, then autoinstrumentation is not supported. In this case, we recommend manually instrumenting using the Azure Monitor OpenTelemetry Distro. For more information, see Data Collection Basics of Azure Monitor Application Insights.
Environment/Resource provider | .NET Framework | .NET Core / .NET | Java | Node.js | Python |
---|---|---|---|---|---|
Azure App Service on Windows - Publish as Code | β π ΒΉ | β π ΒΉ | β π ΒΉ | β π ΒΉ | β |
Azure App Service on Windows - Publish as Docker | β π Β² | β π Β² | β π Β² | β π Β² | β |
Azure App Service on Linux - Publish as Code | β | β π ΒΉ | β π ΒΉ | β π ΒΉ | β π Β² |
Azure App Service on Linux - Publish as Docker | β | β π | β π | β π | β |
Azure Functions - basic | β π ΒΉ | β π ΒΉ | β π ΒΉ | β π ΒΉ | β π ΒΉ |
Azure Functions - dependencies | β | β | β π | β | β |
Azure Spring Apps | β | β | β π | β | β |
Azure Kubernetes Service (AKS) | β | β | β π | β | β |
Azure VMs Windows | β π Β² Β³ | β π Β² Β³ | β π | β | β |
On-premises VMs Windows | β π Β³ | β π Β² Β³ | β π | β | β |
Standalone agent - any environment | β | β | β π | β | β |
Footnotes
- ΒΉ: Application Insights is on by default and enabled automatically.
- Β²: This feature is in public preview. See Supplemental Terms of Use for Azure Previews.
- Β³: An agent must be deployed and configured.
Note
Autoinstrumentation was known as "codeless attach" before October 2021.
Frequently asked questions
Should the term "autoinstrumentation" be hyphenated?
We follow the Microsoft Style Guide for product documentation published to the Microsoft Learn platform.
In general, we donβt include a hyphen after the "auto" prefix.