Share via


Profiler inschakelen voor Azure Cloud Services

U kunt prestatietraceringen ontvangen voor uw exemplaar van Azure Cloud Services door Application Insights Profiler in te schakelen. Profiler is geïnstalleerd op uw exemplaar van Azure Cloud Services via de Azure Diagnostics-extensie.

In deze handleiding leert u het volgende:

  • Schakel uw exemplaar van Azure Cloud Services in om diagnostische gegevens naar Application Insights te verzenden.
  • Configureer de Azure Diagnostics-extensie in uw oplossing om Profiler te installeren.
  • Implementeer uw service en genereer verkeer om Profiler-traceringen weer te geven.

Vereisten

Aanvragen bijhouden met Application Insights

Wanneer u uw exemplaar van Azure Cloud Services publiceert naar Azure Portal, voegt u de Application Insights-SDK toe aan Azure Cloud Services.

Schermopname van het selectievakje voor het verzenden van informatie naar Application Insights.

Nadat u de SDK hebt toegevoegd en uw exemplaar van Azure Cloud Services hebt gepubliceerd naar Azure Portal, kunt u aanvragen bijhouden met behulp van Application Insights:

De diagnostische Azure-extensie configureren

Zoek het azure Diagnostics Diagnostics.wadcfgx-bestand voor uw toepassingsrol.

Schermopname van het diagnostische bestand in azure Cloud Services Solution Explorer.

Voeg de volgende SinksConfig sectie toe als onderliggend element van WadCfg:

<WadCfg>
  <DiagnosticMonitorConfiguration>...</DiagnosticMonitorConfiguration>
  <SinksConfig>
    <Sink name="MyApplicationInsightsProfiler">
      <!-- Replace with your own Application Insights instrumentation key. -->
      <ApplicationInsightsProfiler>00000000-0000-0000-0000-000000000000</ApplicationInsightsProfiler>
    </Sink>
  </SinksConfig>
</WadCfg>

Notitie

De instrumentatiesleutels die door de toepassing en de ApplicationInsightsProfiler sink worden gebruikt, moeten overeenkomen.

Implementeer uw service met de nieuwe diagnostische configuratie. Application Insights Profiler is nu geconfigureerd voor uitvoering op uw exemplaar van Azure Cloud Services.

Volgende stappen

Notitie

Op 31 maart 2025 eindigt de ondersteuning voor opname van instrumentatiesleutels. Opname van instrumentatiesleutels blijft werken, maar we bieden geen updates of ondersteuning meer voor de functie. Overgang naar verbindingsreeks s om te profiteren van nieuwe mogelijkheden.