application-insights-fetch-monitordeprecated

Fetch API monitor for Application Insights

Usage no npm install needed!

<script type="module">
  import applicationInsightsFetchMonitor from 'https://cdn.skypack.dev/application-insights-fetch-monitor';
</script>

README

application-insights-fetch-monitor

Fetch API monitor for Application Insights

The monitor is based on official Ajax Monitor and mostly replicates what was done there for fetch function.

Installation

npm i --save applicationinsights-js @types/applicationinsights-js application-insights-fetch-monitor

Usage

import { initAppInsightsFetchMonitor } from "application-insights-fetch-monitor";

appInsights.downloadAndSetup({ instrumentationKey: "[YOUR INSTRUMENTATION KEY]" });
initAppInsightsFetchMonitor();