How to enable "Profiler traces" button in azure application insight.

Kumar H N, Sumanth 6 Reputation points
2023-07-19T06:42:30.3566667+00:00

By referring the Microsoft document

https://learn.microsoft.com/en-us/azure/azure-monitor/profiler/profiler-azure-functions#app-settings-for-enabling-profiler

I want to enable the 'profiler' in the application insight which is linked to my function app. I Have added required configurations like APPINSIGHTS_PROFILERFEATURE_VERSION=1.0.0 and DiagnosticServices_EXTENSION_VERSION=~3 in the function app but the 'Profiler traces' button is not visible in the application insight.

I checked the status of the Application insights profiler with the help of kudu console, the status is 'Running' as shown below

[{

"status":"Running",

"detailed_status":"cdd062 - Running\r\n",

"log_url":null,

"name":"ApplicationInsightsProfiler3",

"run_command":"ApplicationInsightsProfiler.exe",

"url":null,

"extra_info_url":null,

"type":"continuous",

"error":null,

"using_sdk":false,"settings":{}

}]

Function app is deployed with dot net 6, C# code.

Please advice.

Regards,

Sumanth

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,415 questions
{count} votes

2 answers

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,261 Reputation points
    2023-07-19T14:22:47.79+00:00

    @Kumar H N, Sumanth Thanks for reaching here! If you need traces to understand how your web app is running under load.

    check: View Application Insights Profiler data

    Could you confirm if your app running on the right version? As Profiler is supported on the .NET Framework later than 4.6.2.

    Further suggest you to refer this detailed official document on Troubleshoot Application Insights Profiler it would be helpful in narrowing down the issue.

    You may also try to enable Profiler using any of the below method

    0 comments No comments

  2. SnehaAgrawal-MSFT 22,261 Reputation points
    2023-07-25T05:52:51.5266667+00:00

    @Kumar H N, Sumanth Glad to know its resolved. To highlight as its mentioned in the Troubleshoot Application Insights Profiler

    "The Azure Functions consumption plan isn't supported. See Profile live Azure Functions app with Application Insights."

    Let us know if further query.

    Please accept as "Yes" if the answer provided is useful , so that you can help others in the community looking for remediation for similar issues.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.