application-insights-fetch-monitor
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -5,2 +5,13 @@ # Change Log | ||
<a name="1.0.1"></a> | ||
## [1.0.1](https://github.com/MaximBalaganskiy/application-insights-fetch-monitor/compare/v1.0.0...v1.0.1) (2018-07-20) | ||
### Bug Fixes | ||
* **package.json:** add typings and set correct main file ([61c5a13](https://github.com/MaximBalaganskiy/application-insights-fetch-monitor/commit/61c5a13)) | ||
* **readme:** add instructions ([f5e70c0](https://github.com/MaximBalaganskiy/application-insights-fetch-monitor/commit/f5e70c0)) | ||
<a name="1.0.0"></a> | ||
@@ -7,0 +18,0 @@ # 1.0.0 (2018-07-20) |
{ | ||
"name": "application-insights-fetch-monitor", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Fetch API monitor for Application Insights", | ||
"main": "index.js", | ||
"main": "dist/commonjs/index.js", | ||
"typings": "dist/commonjs/index.d.ts", | ||
"scripts": { | ||
@@ -7,0 +8,0 @@ "test": "echo \"Error: no test specified\" && exit 1", |
# application-insights-fetch-monitor | ||
Fetch API monitor for Application Insights | ||
The monitor is based on official [Ajax Monitor](https://github.com/Microsoft/ApplicationInsights-JS/blob/master/JavaScript/JavaScriptSDK/ajax/ajax.ts) and mostly replicates what was done there for `fetch` function. | ||
## Installation | ||
``` | ||
npm i --save-dev applicationinsights-js application-insights-fetch-monitor | ||
``` | ||
## Usage | ||
```js | ||
import { initAppInsightsFetchMonitor } from "application-insights-fetch-monitor"; | ||
appInsights.downloadAndSetup({ instrumentationKey: this.settings.appInsightsInstrumentationKey }); | ||
initAppInsightsFetchMonitor(); | ||
``` |
100999
18