applicationinsights-js
Advanced tools
Comparing version 1.0.0 to 1.0.3
@@ -273,2 +273,6 @@ <properties | ||
// Is retry handler disabled. Default false. | ||
// If enabled, retry on 206 (partial success), 408 (timeout), 429 (too many requests), 500 (internal server error) and 503 (service unavailable). | ||
isRetryDisabled: boolean; | ||
// The url from where the JS SDK will be downloaded. | ||
@@ -399,6 +403,6 @@ // Default 'https://az416426.vo.msecnd.net/scripts/a/ai.0.js' | ||
Adds telemetry initializer to the collection. Telemetry initializers will be called one by one | ||
before telemetry item is pushed for sending and in the order they were added. | ||
If one of telemetry initializers returns false then telemetry item will not be sent. | ||
If one of telemetry initializers throws an error then telemetry item will not be sent. | ||
Adds a telemetry initializer to the collection. Telemetry initializers will be called one by one, in the order they were added, | ||
before the telemetry item is pushed for sending. | ||
If one of the telemetry initializers returns false then the telemetry item will not be sent. | ||
If one of the telemetry initializers throws an error then the telemetry item will not be sent. | ||
@@ -405,0 +409,0 @@ |
{ | ||
"name": "applicationinsights-js", | ||
"main": "dist/ai.0.js", | ||
"version": "1.0.0", | ||
"version": "1.0.3", | ||
"homepage": "https://github.com/Microsoft/ApplicationInsights-JS", | ||
@@ -6,0 +6,0 @@ "authors": [ |
{ | ||
"name": "applicationinsights-js", | ||
"version": "1.0.0", | ||
"version": "1.0.3", | ||
"description": "Microsoft Application Insights JavaScript SDK", | ||
@@ -5,0 +5,0 @@ "main": "JavaScript/JavaScriptSDK.Module/AppInsightsModule.js", |
@@ -16,3 +16,3 @@ # Microsoft Application Insights JavaScript SDK | ||
| **Using initialization `snippet`** | [Dynamic loading with snippet](README.md#use-js-snippet-and-initialize-dynamically-download-full-application-insights-script-from-cdn) This is default approach used in a new ASP.NET application created in Visual Studio. Use this for MVC applications. | [Host AI JS SDK and initialize statically](README.md#include-ai-js-sdk-script-and-initialize-statically). Cordova applications where you would like to embed scripts into your application for faster loading is an example of when you would use this approach. | | ||
| **Using module import** | [Dynamic loading using module import](README.md#import-as-a-module-and-initialize-dynamically-download-full-application-insights-script-from-cdn). This is the recommended approach for modern modular applications. | [TBD](issues/213) | | ||
| **Using module import** | [Dynamic loading using module import](README.md#import-as-a-module-and-initialize-dynamically-download-full-application-insights-script-from-cdn). This is the recommended approach for modern modular applications. | [TBD](https://github.com/Microsoft/ApplicationInsights-JS/issues/213) | | ||
@@ -25,4 +25,4 @@ ### Use JS `snippet` and initialize dynamically (download full Application Insights script from CDN) | ||
<script type="text/javascript"> | ||
var appInsights = window.appInsights || function (config) { | ||
function r(config){t[config]=function(){var i=arguments;t.queue.push(function(){t[config].apply(t,i)})}}var t={config:config},u=document,e=window,o="script",s=u.createElement(o),i,f;s.src=config.url||"https://az416426.vo.msecnd.net/scripts/a/ai.0.js";u.getElementsByTagName(o)[0].parentNode.appendChild(s);try{t.cookie=u.cookie}catch(h){}for(t.queue=[],i=["Event","Exception","Metric","PageView","Trace","Dependency"];i.length;)r("track"+i.pop());return r("setAuthenticatedUserContext"),r("clearAuthenticatedUserContext"),config.disableExceptionTracking||(i="onerror",r("_"+i),f=e[i],e[i]=function(config,r,u,e,o){var s=f&&f(config,r,u,e,o);return s!==!0&&t["_"+i](config,r,u,e,o),s}),t | ||
var appInsights=window.appInsights||function(config){ | ||
function i(config){t[config]=function(){var i=arguments;t.queue.push(function(){t[config].apply(t,i)})}}var t={config:config},u=document,e=window,o="script",s="AuthenticatedUserContext",h="start",c="stop",l="Track",a=l+"Event",v=l+"Page",y=u.createElement(o),r,f;y.src=config.url||"https://az416426.vo.msecnd.net/scripts/a/ai.0.js";u.getElementsByTagName(o)[0].parentNode.appendChild(y);try{t.cookie=u.cookie}catch(p){}for(t.queue=[],t.version="1.0",r=["Event","Exception","Metric","PageView","Trace","Dependency"];r.length;)i("track"+r.pop());return i("set"+s),i("clear"+s),i(h+a),i(c+a),i(h+v),i(c+v),i("flush"),config.disableExceptionTracking||(r="onerror",i("_"+r),f=e[r],e[r]=function(config,i,u,e,o){var s=f&&f(config,i,u,e,o);return s!==!0&&t["_"+r](config,i,u,e,o),s}),t | ||
}({ | ||
@@ -29,0 +29,0 @@ instrumentationKey: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
366703
4307
1
80