Bump version to 2.4.0-beta (#1145)
This commit is contained in:
Родитель
91f08a1171
Коммит
d0184962d4
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@microsoft/applicationinsights-web",
|
"name": "@microsoft/applicationinsights-web",
|
||||||
"version": "2.3.1",
|
"version": "2.4.0-beta",
|
||||||
"description": "Microsoft Application Insights Javascript SDK API 1.0 beta",
|
"description": "Microsoft Application Insights Javascript SDK API 1.0 beta",
|
||||||
"main": "dist/applicationinsights-web.js",
|
"main": "dist/applicationinsights-web.js",
|
||||||
"module": "dist-esm/applicationinsights-web.js",
|
"module": "dist-esm/applicationinsights-web.js",
|
||||||
|
@ -47,12 +47,12 @@
|
||||||
"typescript": "2.5.3"
|
"typescript": "2.5.3"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@microsoft/applicationinsights-analytics-js": "2.3.1",
|
"@microsoft/applicationinsights-analytics-js": "2.4.0-beta",
|
||||||
"@microsoft/applicationinsights-channel-js": "2.3.1",
|
"@microsoft/applicationinsights-channel-js": "2.4.0-beta",
|
||||||
"@microsoft/applicationinsights-common": "2.3.1",
|
"@microsoft/applicationinsights-common": "2.4.0-beta",
|
||||||
"@microsoft/applicationinsights-core-js": "2.3.1",
|
"@microsoft/applicationinsights-core-js": "2.4.0-beta",
|
||||||
"@microsoft/applicationinsights-dependencies-js": "2.3.1",
|
"@microsoft/applicationinsights-dependencies-js": "2.4.0-beta",
|
||||||
"@microsoft/applicationinsights-properties-js": "2.3.1",
|
"@microsoft/applicationinsights-properties-js": "2.4.0-beta",
|
||||||
"tslib": "^1.9.3"
|
"tslib": "^1.9.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@microsoft/applicationinsights-web-basic",
|
"name": "@microsoft/applicationinsights-web-basic",
|
||||||
"version": "2.3.1",
|
"version": "2.4.0-beta",
|
||||||
"description": "Microsoft Application Insights Javascript SDK core and channel",
|
"description": "Microsoft Application Insights Javascript SDK core and channel",
|
||||||
"main": "dist/applicationinsights-web-basic.js",
|
"main": "dist/applicationinsights-web-basic.js",
|
||||||
"module": "dist-esm/index.js",
|
"module": "dist-esm/index.js",
|
||||||
|
@ -25,9 +25,9 @@
|
||||||
"tslint-config-prettier": "^1.18.0"
|
"tslint-config-prettier": "^1.18.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@microsoft/applicationinsights-common": "2.3.1",
|
"@microsoft/applicationinsights-common": "2.4.0-beta",
|
||||||
"@microsoft/applicationinsights-channel-js": "2.3.1",
|
"@microsoft/applicationinsights-channel-js": "2.4.0-beta",
|
||||||
"@microsoft/applicationinsights-core-js": "2.3.1"
|
"@microsoft/applicationinsights-core-js": "2.4.0-beta"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"tslib": "^1.9.3"
|
"tslib": "^1.9.3"
|
||||||
|
|
|
@ -211,7 +211,7 @@ Most configuration fields are named such that they can be defaulted to falsey. A
|
||||||
| enableRequestHeaderTracking | false | If true, AJAX & Fetch request headers is tracked, default is false.
|
| enableRequestHeaderTracking | false | If true, AJAX & Fetch request headers is tracked, default is false.
|
||||||
| enableResponseHeaderTracking | false | If true, AJAX & Fetch request's response headers is tracked, default is false.
|
| enableResponseHeaderTracking | false | If true, AJAX & Fetch request's response headers is tracked, default is false.
|
||||||
| distributedTracingMode | `DistributedTracingModes.AI` | Sets the distributed tracing mode. If AI_AND_W3C mode or W3C mode is set, W3C trace context headers (traceparent/tracestate) will be generated and included in all outgoing requests. AI_AND_W3C is provided for back-compatibility with any legacy Application Insights instrumented services.
|
| distributedTracingMode | `DistributedTracingModes.AI` | Sets the distributed tracing mode. If AI_AND_W3C mode or W3C mode is set, W3C trace context headers (traceparent/tracestate) will be generated and included in all outgoing requests. AI_AND_W3C is provided for back-compatibility with any legacy Application Insights instrumented services.
|
||||||
|
| enableUnhandledPromiseRejectionTracking | false | If true, unhandled promise rejections will be autocollected and reported as a javascript error. When disableExceptionTracking is true (dont track exceptions) the config value will be ignored and unhandled promise rejections will not be reported.
|
||||||
## Single Page Applications
|
## Single Page Applications
|
||||||
|
|
||||||
By default, this SDK will **not** handle state based route changing that occurs in single page applications. To enable automatic route change tracking for your single page application, you can add `enableAutoRouteTracking: true` to your setup configuration.
|
By default, this SDK will **not** handle state based route changing that occurs in single page applications. To enable automatic route change tracking for your single page application, you can add `enableAutoRouteTracking: true` to your setup configuration.
|
||||||
|
|
|
@ -260,7 +260,7 @@ export class SenderTests extends TestClass {
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
tags: [{"ai.internal.sdkVersion": "javascript:2.3.1"}],
|
tags: [{"ai.internal.sdkVersion": "javascript:2.4.0-beta"}],
|
||||||
data: {
|
data: {
|
||||||
"property1": "val1",
|
"property1": "val1",
|
||||||
"measurement1": 50.0,
|
"measurement1": 50.0,
|
||||||
|
@ -305,7 +305,7 @@ export class SenderTests extends TestClass {
|
||||||
Assert.equal("d041d2e5fa834b4f9eee41ac163bf402", appInsightsEnvelope.tags["ai.session.id"]);
|
Assert.equal("d041d2e5fa834b4f9eee41ac163bf402", appInsightsEnvelope.tags["ai.session.id"]);
|
||||||
Assert.equal("browser", appInsightsEnvelope.tags["ai.device.id"]);
|
Assert.equal("browser", appInsightsEnvelope.tags["ai.device.id"]);
|
||||||
Assert.equal("Browser", appInsightsEnvelope.tags["ai.device.type"]);
|
Assert.equal("Browser", appInsightsEnvelope.tags["ai.device.type"]);
|
||||||
Assert.equal("javascript:2.3.1", appInsightsEnvelope.tags["ai.internal.sdkVersion"]);
|
Assert.equal("javascript:2.4.0-beta", appInsightsEnvelope.tags["ai.internal.sdkVersion"]);
|
||||||
|
|
||||||
// Assert name
|
// Assert name
|
||||||
Assert.ok(appInsightsEnvelope.name);
|
Assert.ok(appInsightsEnvelope.name);
|
||||||
|
@ -375,7 +375,7 @@ export class SenderTests extends TestClass {
|
||||||
Assert.ok(baseData.ver);
|
Assert.ok(baseData.ver);
|
||||||
Assert.equal(2, baseData.ver);
|
Assert.equal(2, baseData.ver);
|
||||||
|
|
||||||
Assert.equal("javascript:2.3.1", appInsightsEnvelope.tags["ai.internal.sdkVersion"]);
|
Assert.equal("javascript:2.4.0-beta", appInsightsEnvelope.tags["ai.internal.sdkVersion"]);
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@microsoft/applicationinsights-channel-js",
|
"name": "@microsoft/applicationinsights-channel-js",
|
||||||
"version": "2.3.1",
|
"version": "2.4.0-beta",
|
||||||
"description": "Microsoft Application Insights JavaScript SDK Channel",
|
"description": "Microsoft Application Insights JavaScript SDK Channel",
|
||||||
"main": "dist/applicationinsights-channel-js.js",
|
"main": "dist/applicationinsights-channel-js.js",
|
||||||
"module": "dist-esm/applicationinsights-channel-js.js",
|
"module": "dist-esm/applicationinsights-channel-js.js",
|
||||||
|
@ -30,8 +30,8 @@
|
||||||
"rollup": "^0.66.0"
|
"rollup": "^0.66.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@microsoft/applicationinsights-core-js": "2.3.1",
|
"@microsoft/applicationinsights-core-js": "2.4.0-beta",
|
||||||
"@microsoft/applicationinsights-common": "2.3.1",
|
"@microsoft/applicationinsights-common": "2.4.0-beta",
|
||||||
"tslib": "^1.9.3"
|
"tslib": "^1.9.3"
|
||||||
},
|
},
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
|
|
|
@ -20,7 +20,7 @@ const baseType: string = "baseType";
|
||||||
const baseData: string = "baseData";
|
const baseData: string = "baseData";
|
||||||
|
|
||||||
export abstract class EnvelopeCreator {
|
export abstract class EnvelopeCreator {
|
||||||
public static Version = "2.3.1";
|
public static Version = "2.4.0-beta";
|
||||||
|
|
||||||
protected static extractPropsAndMeasurements(data: { [key: string]: any }, properties: { [key: string]: any }, measurements: { [key: string]: any }) {
|
protected static extractPropsAndMeasurements(data: { [key: string]: any }, properties: { [key: string]: any }, measurements: { [key: string]: any }) {
|
||||||
if (!CoreUtils.isNullOrUndefined(data)) {
|
if (!CoreUtils.isNullOrUndefined(data)) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@microsoft/applicationinsights-analytics-js",
|
"name": "@microsoft/applicationinsights-analytics-js",
|
||||||
"version": "2.3.1",
|
"version": "2.4.0-beta",
|
||||||
"description": "Microsoft Application Insights Javascript SDK apis",
|
"description": "Microsoft Application Insights Javascript SDK apis",
|
||||||
"main": "dist/applicationinsights-analytics-js.js",
|
"main": "dist/applicationinsights-analytics-js.js",
|
||||||
"module": "dist-esm/applicationinsights-analytics-js.js",
|
"module": "dist-esm/applicationinsights-analytics-js.js",
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
"lint": "tslint -p tsconfig.json"
|
"lint": "tslint -p tsconfig.json"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/applicationinsights-properties-js": "2.3.1",
|
"@microsoft/applicationinsights-properties-js": "2.4.0-beta",
|
||||||
"typescript": "2.5.3",
|
"typescript": "2.5.3",
|
||||||
"rollup-plugin-node-resolve": "^3.4.0",
|
"rollup-plugin-node-resolve": "^3.4.0",
|
||||||
"rollup-plugin-replace": "^2.1.0",
|
"rollup-plugin-replace": "^2.1.0",
|
||||||
|
@ -32,8 +32,8 @@
|
||||||
"tslint-config-prettier": "^1.18.0"
|
"tslint-config-prettier": "^1.18.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@microsoft/applicationinsights-core-js": "2.3.1",
|
"@microsoft/applicationinsights-core-js": "2.4.0-beta",
|
||||||
"@microsoft/applicationinsights-common": "2.3.1",
|
"@microsoft/applicationinsights-common": "2.4.0-beta",
|
||||||
"tslib": "^1.9.3"
|
"tslib": "^1.9.3"
|
||||||
},
|
},
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
|
|
|
@ -34,7 +34,7 @@ declare global {
|
||||||
const durationProperty: string = "duration";
|
const durationProperty: string = "duration";
|
||||||
|
|
||||||
export class ApplicationInsights extends BaseTelemetryPlugin implements IAppInsights, IAppInsightsInternal {
|
export class ApplicationInsights extends BaseTelemetryPlugin implements IAppInsights, IAppInsightsInternal {
|
||||||
public static Version = "2.3.1"; // Not currently used anywhere
|
public static Version = "2.4.0-beta"; // Not currently used anywhere
|
||||||
|
|
||||||
public static getDefaultConfig(config?: IConfig): IConfig {
|
public static getDefaultConfig(config?: IConfig): IConfig {
|
||||||
if (!config) {
|
if (!config) {
|
||||||
|
@ -47,7 +47,8 @@ export class ApplicationInsights extends BaseTelemetryPlugin implements IAppInsi
|
||||||
config.disableExceptionTracking = Util.stringToBoolOrDefault(config.disableExceptionTracking);
|
config.disableExceptionTracking = Util.stringToBoolOrDefault(config.disableExceptionTracking);
|
||||||
config.autoTrackPageVisitTime = Util.stringToBoolOrDefault(config.autoTrackPageVisitTime);
|
config.autoTrackPageVisitTime = Util.stringToBoolOrDefault(config.autoTrackPageVisitTime);
|
||||||
config.overridePageViewDuration = Util.stringToBoolOrDefault(config.overridePageViewDuration);
|
config.overridePageViewDuration = Util.stringToBoolOrDefault(config.overridePageViewDuration);
|
||||||
|
config.enableUnhandledPromiseRejectionTracking = Util.stringToBoolOrDefault(config.enableUnhandledPromiseRejectionTracking);
|
||||||
|
|
||||||
if (isNaN(config.samplingPercentage) || config.samplingPercentage <= 0 || config.samplingPercentage >= 100) {
|
if (isNaN(config.samplingPercentage) || config.samplingPercentage <= 0 || config.samplingPercentage >= 100) {
|
||||||
config.samplingPercentage = 100;
|
config.samplingPercentage = 100;
|
||||||
}
|
}
|
||||||
|
@ -585,6 +586,7 @@ export class ApplicationInsights extends BaseTelemetryPlugin implements IAppInsi
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.config.disableExceptionTracking === false &&
|
if (this.config.disableExceptionTracking === false &&
|
||||||
|
this.config.enableUnhandledPromiseRejectionTracking === true &&
|
||||||
!this.config.autoUnhandledPromiseInstrumented && _window) {
|
!this.config.autoUnhandledPromiseInstrumented && _window) {
|
||||||
// We want to enable exception auto collection and it has not been done so yet
|
// We want to enable exception auto collection and it has not been done so yet
|
||||||
const onunhandledrejection = "onunhandledrejection";
|
const onunhandledrejection = "onunhandledrejection";
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@microsoft/applicationinsights-angular-js",
|
"name": "@microsoft/applicationinsights-angular-js",
|
||||||
"version": "2.3.1",
|
"version": "2.4.0-beta",
|
||||||
"description": "Microsoft Application Insights Angular plugin",
|
"description": "Microsoft Application Insights Angular plugin",
|
||||||
"main": "dist/applicationinsights-angular-js.js",
|
"main": "dist/applicationinsights-angular-js.js",
|
||||||
"module": "dist-esm/applicationinsights-angular-js.js",
|
"module": "dist-esm/applicationinsights-angular-js.js",
|
||||||
|
@ -37,8 +37,8 @@
|
||||||
"tslint-config-prettier": "^1.18.0"
|
"tslint-config-prettier": "^1.18.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@microsoft/applicationinsights-common": "2.3.1",
|
"@microsoft/applicationinsights-common": "2.4.0-beta",
|
||||||
"@microsoft/applicationinsights-core-js": "2.3.1",
|
"@microsoft/applicationinsights-core-js": "2.4.0-beta",
|
||||||
"tslib": "^1.9.3"
|
"tslib": "^1.9.3"
|
||||||
},
|
},
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@microsoft/applicationinsights-dependencies-js",
|
"name": "@microsoft/applicationinsights-dependencies-js",
|
||||||
"version": "2.3.1",
|
"version": "2.4.0-beta",
|
||||||
"description": "Microsoft Application Insights XHR dependencies plugin",
|
"description": "Microsoft Application Insights XHR dependencies plugin",
|
||||||
"main": "dist/applicationinsights-dependencies-js.js",
|
"main": "dist/applicationinsights-dependencies-js.js",
|
||||||
"module": "dist-esm/applicationinsights-dependencies-js.js",
|
"module": "dist-esm/applicationinsights-dependencies-js.js",
|
||||||
|
@ -31,8 +31,8 @@
|
||||||
"tslint-config-prettier": "^1.18.0"
|
"tslint-config-prettier": "^1.18.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@microsoft/applicationinsights-core-js": "2.3.1",
|
"@microsoft/applicationinsights-core-js": "2.4.0-beta",
|
||||||
"@microsoft/applicationinsights-common": "2.3.1",
|
"@microsoft/applicationinsights-common": "2.4.0-beta",
|
||||||
"tslib": "^1.9.3"
|
"tslib": "^1.9.3"
|
||||||
},
|
},
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@microsoft/applicationinsights-properties-js",
|
"name": "@microsoft/applicationinsights-properties-js",
|
||||||
"version": "2.3.1",
|
"version": "2.4.0-beta",
|
||||||
"description": "Microsoft Application Insights properties (Part A) plugin",
|
"description": "Microsoft Application Insights properties (Part A) plugin",
|
||||||
"main": "dist/applicationinsights-properties-js.js",
|
"main": "dist/applicationinsights-properties-js.js",
|
||||||
"module": "dist-esm/applicationinsights-properties-js.js",
|
"module": "dist-esm/applicationinsights-properties-js.js",
|
||||||
|
@ -31,8 +31,8 @@
|
||||||
"tslint-config-prettier": "^1.18.0"
|
"tslint-config-prettier": "^1.18.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@microsoft/applicationinsights-core-js": "2.3.1",
|
"@microsoft/applicationinsights-core-js": "2.4.0-beta",
|
||||||
"@microsoft/applicationinsights-common": "2.3.1",
|
"@microsoft/applicationinsights-common": "2.4.0-beta",
|
||||||
"tslib": "^1.9.3"
|
"tslib": "^1.9.3"
|
||||||
},
|
},
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
import { IInternal } from '@microsoft/applicationinsights-common';
|
import { IInternal } from '@microsoft/applicationinsights-common';
|
||||||
import { ITelemetryConfig } from '../Interfaces/ITelemetryConfig';
|
import { ITelemetryConfig } from '../Interfaces/ITelemetryConfig';
|
||||||
|
|
||||||
const Version = "2.3.1";
|
const Version = "2.4.0-beta";
|
||||||
|
|
||||||
export class Internal implements IInternal {
|
export class Internal implements IInternal {
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@microsoft/applicationinsights-react-js",
|
"name": "@microsoft/applicationinsights-react-js",
|
||||||
"version": "2.3.1",
|
"version": "2.4.0-beta",
|
||||||
"description": "Microsoft Application Insights React plugin",
|
"description": "Microsoft Application Insights React plugin",
|
||||||
"main": "dist/applicationinsights-react-js.js",
|
"main": "dist/applicationinsights-react-js.js",
|
||||||
"module": "dist-esm/applicationinsights-react-js.js",
|
"module": "dist-esm/applicationinsights-react-js.js",
|
||||||
|
@ -41,8 +41,8 @@
|
||||||
"tslint-config-prettier": "^1.18.0"
|
"tslint-config-prettier": "^1.18.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@microsoft/applicationinsights-core-js": "2.3.1",
|
"@microsoft/applicationinsights-core-js": "2.4.0-beta",
|
||||||
"@microsoft/applicationinsights-common": "2.3.1",
|
"@microsoft/applicationinsights-common": "2.4.0-beta",
|
||||||
"tslib": "^1.9.3",
|
"tslib": "^1.9.3",
|
||||||
"react": "^16.8.6",
|
"react": "^16.8.6",
|
||||||
"history": "^4.9.0"
|
"history": "^4.9.0"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@microsoft/applicationinsights-common",
|
"name": "@microsoft/applicationinsights-common",
|
||||||
"version": "2.3.1",
|
"version": "2.4.0-beta",
|
||||||
"description": "Microsoft Application Insights Common JavaScript Library",
|
"description": "Microsoft Application Insights Common JavaScript Library",
|
||||||
"main": "./dist/applicationinsights-common.js",
|
"main": "./dist/applicationinsights-common.js",
|
||||||
"module": "./dist-esm/applicationinsights-common.js",
|
"module": "./dist-esm/applicationinsights-common.js",
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
"rollup": "^0.66.0"
|
"rollup": "^0.66.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@microsoft/applicationinsights-core-js": "2.3.1",
|
"@microsoft/applicationinsights-core-js": "2.4.0-beta",
|
||||||
"tslib": "^1.9.3"
|
"tslib": "^1.9.3"
|
||||||
},
|
},
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
|
|
|
@ -320,6 +320,15 @@ export interface IConfig {
|
||||||
* @memberof IConfig
|
* @memberof IConfig
|
||||||
*/
|
*/
|
||||||
autoUnhandledPromiseInstrumented?: boolean;
|
autoUnhandledPromiseInstrumented?: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description Default false. Define whether to track unhandled promise rejections and report as JS errors.
|
||||||
|
* When disableExceptionTracking is enabled (dont track exceptions) this value will be false.
|
||||||
|
* @type {boolean}
|
||||||
|
* @memberof IConfig
|
||||||
|
* @defaultValue false
|
||||||
|
*/
|
||||||
|
enableUnhandledPromiseRejectionTracking?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class ConfigurationManager {
|
export class ConfigurationManager {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@microsoft/applicationinsights-core-js",
|
"name": "@microsoft/applicationinsights-core-js",
|
||||||
"author": "Microsoft Corporation",
|
"author": "Microsoft Corporation",
|
||||||
"version": "2.3.1",
|
"version": "2.4.0-beta",
|
||||||
"description": "Microsoft Application Insights Core Javascript SDK",
|
"description": "Microsoft Application Insights Core Javascript SDK",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"azure",
|
"azure",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче