applicationinsights-js
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -43,5 +43,4 @@ <properties | ||
| | | ||
---|---|--- | ||
Parameter | Description | ||
---|--- | ||
`name` | The name used to identify the page in the portal. Defaults to the document title. | ||
@@ -63,4 +62,4 @@ `url` | A relative or absolute URL that identifies the page or similar item. Defaults to the window location. | ||
| | | ||
---|---|--- | ||
Parameter | Description | ||
---|--- | ||
`name` | The name used to identify the page in the portal. Defaults to the document title. | ||
@@ -74,4 +73,4 @@ | ||
| | | ||
---|---|--- | ||
Parameter | Description | ||
---|--- | ||
`name` | The name used to identify the page in the portal. Defaults to the document title. | ||
@@ -88,4 +87,4 @@ `url` | A relative or absolute URL that identifies the page or similar item. Defaults to the window location. | ||
| | | ||
---|---|--- | ||
Parameter | Description | ||
---|--- | ||
`name` | Identifies the event. Events with the same name are counted and can be charted in [Metric Explorer](https://azure.microsoft.com/documentation/articles/app-insights-metrics-explorer/). | ||
@@ -106,4 +105,4 @@ `properties` | Map of string to string: Additional data used to [filter events](https://azure.microsoft.com/documentation/articles/app-insights-api-custom-events-metrics/#properties) in the portal. Defaults to empty. | ||
| | | ||
---|---|--- | ||
Parameter | Description | ||
---|--- | ||
`name` | A string that identifies the metric. In the portal, you can select metrics for display by name. | ||
@@ -127,4 +126,4 @@ `average` | Either a single measurement, or the average of several measurements. Should be >=0 to be correctly displayed. | ||
| | | ||
---|---|--- | ||
Parameter | Description | ||
---|--- | ||
`exception` | An Error from a catch clause. | ||
@@ -153,4 +152,4 @@ `handledAt` | Defaults to "unhandled". | ||
| | | ||
---|---|--- | ||
Parameter | Description | ||
---|--- | ||
`message` | Diagnostic data. Can be much longer than a name. | ||
@@ -171,4 +170,4 @@ `properties` | Map of string to string: Additional data used to [filter exceptions](https://azure.microsoft.com/documentation/articles/app-insights-api-custom-events-metrics/#properties) in the portal. Defaults to empty. | ||
| | | ||
---|---|--- | ||
Parameter | Description | ||
---|--- | ||
`id` | Unique id, this is used by the backend to correlate server requests. Use `Util.newId()` to generate a unique Id. | ||
@@ -198,4 +197,4 @@ `method` | Represents request verb (GET, POST, etc.) | ||
| | | ||
---|---|--- | ||
Parameter | Description | ||
---|--- | ||
`authenticatedUserId` | An id that uniquely identifies a user of your app. No spaces, comma, semicolon, equals or vertical bar. | ||
@@ -248,3 +247,3 @@ `accountId` | An optional account id, if your app groups users into accounts. No spaces, comma, semicolon, equals or vertical bar. | ||
// Default false | ||
// If true, the SDK will log all internal errors (any severity) to the console. Default false | ||
verboseLogging: boolean; | ||
@@ -300,5 +299,10 @@ | ||
// Default true. If false, the SDK will add two headers ('x-ms-request-root-id' and 'x-ms-request-id) | ||
// to all dependency requests (within the same domain) to correlate them with corresponding requests on the server side. | ||
disableCorrelationHeaders: boolean; | ||
// Default true. If false, the SDK will add two headers ('x-ms-request-root-id' and 'x-ms-request-id) | ||
// to all dependency requests (within the same domain) to correlate them with corresponding requests on the server side. | ||
disableCorrelationHeaders: boolean; | ||
// If true, the SDK will send all telemetry using [Beacon API](https://www.w3.org/TR/beacon/) | ||
// When Beacon API is enabled, then SessionStorageBuffer cannot be used and maxBatchSizeInBytes is limit too 64kb | ||
// Default: true | ||
isBeaconApiDisabled: boolean; | ||
} | ||
@@ -315,3 +319,3 @@ | ||
appInsights.config.disableTelemetry = true; | ||
appInsights.config.disableTelemetry = true; | ||
@@ -346,4 +350,4 @@ ### context | ||
| | | ||
---|---|--- | ||
Property | Description | ||
---|--- | ||
device.type | Type of device | ||
@@ -368,4 +372,4 @@ device.id | unique ID | ||
| | | ||
---|---|--- | ||
Property | Description | ||
---|--- | ||
`user.id` | Unique, cookie-based user id, automatically assigned. | ||
@@ -386,4 +390,4 @@ `user.authenticatedId` | Id set by your app using [`setAuthenticatedUserContext`](#setAuthenticatedUserContext) when the user signs in. | ||
| | | ||
---|---|--- | ||
Property | Description | ||
---|--- | ||
`session.id` | Automatically assigned id | ||
@@ -401,4 +405,4 @@ `session.isFirst` | Boolean. True if this is the first session for this user. | ||
| | | ||
---|---|--- | ||
Property | Description | ||
---|--- | ||
`location.ip` | IP address | ||
@@ -412,4 +416,4 @@ | ||
| | | ||
---|---|--- | ||
Property | Description | ||
---|--- | ||
`id` | Unique id | ||
@@ -416,0 +420,0 @@ `name` | |
{ | ||
"name": "applicationinsights-js", | ||
"main": "dist/ai.0.js", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"homepage": "https://github.com/Microsoft/ApplicationInsights-JS", | ||
@@ -6,0 +6,0 @@ "authors": [ |
@@ -5,2 +5,3 @@ /// <reference path="../JavaScriptSDK.Interfaces/IConfig.ts"/> | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var AppInsightsModule = (function () { | ||
@@ -61,13 +62,16 @@ function AppInsightsModule() { | ||
} | ||
var scriptElement = document.createElement("script"); | ||
scriptElement.src = aiConfig.url || "https://az416426.vo.msecnd.net/scripts/a/ai.0.js"; | ||
document.head.appendChild(scriptElement); | ||
// collect global errors | ||
setTimeout(function () { | ||
var scriptElement = document.createElement("script"); | ||
scriptElement.src = aiConfig.url || "https://az416426.vo.msecnd.net/scripts/a/ai.0.js"; | ||
document.head.appendChild(scriptElement); | ||
}); | ||
// collect global errors by wrapping the window.onerror method | ||
if (!aiConfig.disableExceptionTracking) { | ||
AppInsightsModule._createLazyMethod("_onerror"); | ||
var originalOnError = window["_onerror"]; | ||
window["_onerror"] = function (message, url, lineNumber, columnNumber, error) { | ||
var method_1 = "onerror"; | ||
AppInsightsModule._createLazyMethod("_" + method_1); | ||
var originalOnError = window[method_1]; | ||
window[method_1] = function (message, url, lineNumber, columnNumber, error) { | ||
var handled = originalOnError && originalOnError(message, url, lineNumber, columnNumber, error); | ||
if (handled !== true) { | ||
aiObject["_onerror"](message, url, lineNumber, columnNumber, error); | ||
aiObject["_" + method_1](message, url, lineNumber, columnNumber, error); | ||
} | ||
@@ -93,8 +97,8 @@ return handled; | ||
}); | ||
AppInsightsModule.appInsightsInitialized = false; | ||
AppInsightsModule.appInsightsName = "appInsights"; | ||
return AppInsightsModule; | ||
}()); | ||
AppInsightsModule.appInsightsInitialized = false; | ||
AppInsightsModule.appInsightsName = "appInsights"; | ||
exports.AppInsights = AppInsightsModule.appInsightsInstance; | ||
}); | ||
//# sourceMappingURL=AppInsightsModule.js.map |
@@ -16,5 +16,7 @@ var appInsights = window.appInsights || (function(aiConfig) { | ||
var trackPage = track + "Page"; | ||
var scriptElement = localDocument.createElement(scriptText); | ||
scriptElement.src = aiConfig.url || "CDN_PATH"; | ||
localDocument.getElementsByTagName(scriptText)[0].parentNode.appendChild(scriptElement); | ||
setTimeout(function () { | ||
var scriptElement = localDocument.createElement(scriptText); | ||
scriptElement.src = aiConfig.url || "CDN_PATH"; | ||
localDocument.getElementsByTagName(scriptText)[0].parentNode.appendChild(scriptElement); | ||
}); | ||
@@ -21,0 +23,0 @@ // capture initial cookie |
{ | ||
"name": "applicationinsights-js", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Microsoft Application Insights JavaScript SDK", | ||
@@ -5,0 +5,0 @@ "main": "JavaScript/JavaScriptSDK.Module/AppInsightsModule.js", |
@@ -89,3 +89,3 @@ # Microsoft Application Insights JavaScript SDK | ||
* Check out our [Wiki](https://github.com/Microsoft/ApplicationInsights-JS/wiki) for other useful info. | ||
* Check out our [Wiki](https://github.com/Microsoft/ApplicationInsights-JS/wiki) and [FAQ](https://github.com/Microsoft/ApplicationInsights-JS/wiki/FAQ) for other useful info. | ||
* Follow latest Application Insights changes and announcements on [ApplicationInsights Announcements](https://github.com/Microsoft/ApplicationInsights-Announcements) | ||
@@ -92,0 +92,0 @@ * [Application Insights Home](https://github.com/Microsoft/ApplicationInsights-Home). The main repository for documentation of overall SDK offerings for all platforms. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
367782
4418