'Application Insights not working for Azure Function local development using auto-instrumentation
The following Microsoft docs comments that Application Insights can be used with local Azure Function app development (I'm working in VS2022)...
... but has anyone actually been able to get this to work using auto-instrumentation https://docs.microsoft.com/en-us/azure/azure-monitor/app/codeless-overview?
I've tried with both existing and new clean projects, adding the key to local.settings.json:
{
"Values": {
"APPINSIGHTS_INSTRUMENTATIONKEY": "<key>"
}
}
But when I send a request (which works fine) the request does not show up in the Application Insights instance.
My host.json is for functions version 2.0, using .NET6.0, Azure Core Tools v4. Everything works fine when I publish the app to Azure... just doesn't work locally when using Azure Core Tools to run the app.
I've exhausted google and SO searching and now i'm questioning if this is even supported?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
