Share via


Application Insights를 사용하여 라이브 Azure Functions 앱 프로파일링

이 문서에서는 Azure Portal을 사용하여 다음을 수행합니다.

  • Functions 앱의 현재 앱 설정을 봅니다.
  • Functions 앱에서 Profiler를 사용하도록 설정하는 두 개의 새 앱 설정을 추가합니다.
  • Functions 앱의 Profiler로 이동하여 데이터를 봅니다.

참고 항목

App Service 계획에서 Azure Functions 앱용 Application Insights Profiler를 사용하도록 설정할 수 있습니다.

필수 조건

Profiler를 사용하도록 설정하기 위한 앱 설정

앱 설정
APPINSIGHTS_PROFILERFEATURE_VERSION 1.0.0
DiagnosticServices_EXTENSION_VERSION ~3
APPINSIGHTS_INSTRUMENTATIONKEY App Insights 리소스의 고유 값입니다.

Azure Functions 앱에 앱 설정 추가

Azure Portal의 Functions 앱 개요 페이지에서 다음을 수행합니다.

  1. 설정에서 구성을 선택합니다.

    Screenshot of selecting Configuration from under the Settings section of the left side menu.

  2. 애플리케이션 설정 탭에서 APPINSIGHTS_INSTRUMENTATIONKEY 설정이 설정 목록에 포함되어 있는지 확인합니다.

    Screenshot showing the App Insights Instrumentation Key setting in the list.

  3. 새 애플리케이션 설정을 선택합니다.

    Screenshot outlining the new application setting button.

  4. 위의 테이블에서 앱 설정 및 해당 을 복사하여 해당 필드에 붙여넣습니다.

    Screenshot adding the app insights profiler feature version setting.

    Screenshot adding the diagnostic services extension version setting.

    지금은 배포 슬롯 설정을 비워 둡니다.

  5. 확인을 클릭합니다.

  6. 상단 메뉴에서 저장을 클릭한 다음, 계속을 클릭합니다.

    Screenshot outlining the save button in the top menu of the configuration pane.

    Screenshot outlining the continue button in the dialog after saving.

이제 앱 설정이 테이블에 표시됩니다.

Screenshot showing the two new app settings in the table on the configuration pane.

참고 항목

또한 다음을 통해 Profiler를 사용할 수 있습니다.

다음 단계

방법 알아보기...