@microsoft/applicationinsights-common 2.7.1-nightly.202110-17 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/applicationinsights-common.integrity.json +9 -9
- package/browser/applicationinsights-common.js +3 -2
- package/browser/applicationinsights-common.js.map +1 -1
- package/browser/applicationinsights-common.min.js +2 -2
- package/browser/applicationinsights-common.min.js.map +1 -1
- package/dist/applicationinsights-common.api.json +44 -3
- package/dist/applicationinsights-common.api.md +2 -1
- package/dist/applicationinsights-common.d.ts +6 -2
- package/dist/applicationinsights-common.js +3 -2
- package/dist/applicationinsights-common.js.map +1 -1
- package/dist/applicationinsights-common.min.js +2 -2
- package/dist/applicationinsights-common.min.js.map +1 -1
- package/dist/applicationinsights-common.rollup.d.ts +6 -2
- package/dist-esm/ConnectionStringParser.js +1 -1
- package/dist-esm/Constants.js +1 -1
- package/dist-esm/DomHelperFuncs.js +1 -1
- package/dist-esm/Enums.js +1 -1
- package/dist-esm/HelperFuncs.js +1 -1
- package/dist-esm/Interfaces/ConnectionString.js +1 -1
- package/dist-esm/Interfaces/Context/IApplication.js +1 -1
- package/dist-esm/Interfaces/Context/IDevice.js +1 -1
- package/dist-esm/Interfaces/Context/IInternal.js +1 -1
- package/dist-esm/Interfaces/Context/ILocation.js +1 -1
- package/dist-esm/Interfaces/Context/IOperatingSystem.js +1 -1
- package/dist-esm/Interfaces/Context/ISample.js +1 -1
- package/dist-esm/Interfaces/Context/ISession.js +1 -1
- package/dist-esm/Interfaces/Context/ITelemetryTrace.js +1 -1
- package/dist-esm/Interfaces/Context/IUser.js +1 -1
- package/dist-esm/Interfaces/Context/IWeb.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/AvailabilityData.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/Base.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/ContextTagKeys.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/Data.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/DataPoint.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/DataPointType.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/DependencyKind.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/DependencySourceType.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/Domain.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/Envelope.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/EventData.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/ExceptionData.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/ExceptionDetails.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/MessageData.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/MetricData.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/PageViewData.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/PageViewPerfData.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/RemoteDependencyData.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/RequestData.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/SeverityLevel.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/StackFrame.js +1 -1
- package/dist-esm/Interfaces/IAppInsights.js +1 -1
- package/dist-esm/Interfaces/IChannelControlsAI.js +1 -1
- package/dist-esm/Interfaces/IConfig.js +1 -1
- package/dist-esm/Interfaces/ICorrelationConfig.js +1 -1
- package/dist-esm/Interfaces/IDependencyTelemetry.js +1 -1
- package/dist-esm/Interfaces/IEventTelemetry.js +1 -1
- package/dist-esm/Interfaces/IExceptionTelemetry.js +1 -1
- package/dist-esm/Interfaces/IMetricTelemetry.js +1 -1
- package/dist-esm/Interfaces/IPageViewPerformanceTelemetry.js +1 -1
- package/dist-esm/Interfaces/IPageViewTelemetry.js +1 -1
- package/dist-esm/Interfaces/IPartC.js +1 -1
- package/dist-esm/Interfaces/IPropertiesPlugin.js +1 -1
- package/dist-esm/Interfaces/IRequestContext.js +1 -1
- package/dist-esm/Interfaces/ITelemetryContext.js +1 -1
- package/dist-esm/Interfaces/ITraceTelemetry.js +1 -1
- package/dist-esm/Interfaces/PartAExtensions.js +1 -1
- package/dist-esm/Interfaces/Telemetry/IEnvelope.js +1 -1
- package/dist-esm/Interfaces/Telemetry/ISerializable.js +1 -1
- package/dist-esm/RequestResponseHeaders.js +1 -1
- package/dist-esm/StorageHelperFuncs.js +1 -1
- package/dist-esm/Telemetry/Common/Base.js +1 -1
- package/dist-esm/Telemetry/Common/Data.js +1 -1
- package/dist-esm/Telemetry/Common/DataPoint.js +1 -1
- package/dist-esm/Telemetry/Common/DataSanitizer.js +1 -1
- package/dist-esm/Telemetry/Common/Envelope.js +1 -1
- package/dist-esm/Telemetry/Event.js +1 -1
- package/dist-esm/Telemetry/Exception.js +1 -1
- package/dist-esm/Telemetry/Metric.js +3 -2
- package/dist-esm/Telemetry/Metric.js.map +1 -1
- package/dist-esm/Telemetry/PageView.js +1 -1
- package/dist-esm/Telemetry/PageViewPerformance.js +1 -1
- package/dist-esm/Telemetry/RemoteDependencyData.js +1 -1
- package/dist-esm/Telemetry/Trace.js +1 -1
- package/dist-esm/TelemetryItemCreator.js +1 -1
- package/dist-esm/UrlHelperFuncs.js +1 -1
- package/dist-esm/Util.js +1 -1
- package/dist-esm/applicationinsights-common.js +1 -1
- package/package.json +54 -57
- package/src/Interfaces/IMetricTelemetry.ts +5 -0
- package/src/Telemetry/Metric.ts +2 -1
- package/types/Interfaces/IMetricTelemetry.d.ts +4 -0
- package/types/Telemetry/Metric.d.ts +1 -1
- package/types/tsdoc-metadata.json +1 -1
package/dist-esm/Util.js
CHANGED
package/package.json
CHANGED
|
@@ -1,57 +1,54 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@microsoft/applicationinsights-common",
|
|
3
|
-
"version": "2.7.1
|
|
4
|
-
"description": "Microsoft Application Insights Common JavaScript Library",
|
|
5
|
-
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
|
-
"author": "Microsoft Application Insights Team",
|
|
7
|
-
"main": "./dist/applicationinsights-common.js",
|
|
8
|
-
"module": "./dist-esm/applicationinsights-common.js",
|
|
9
|
-
"types": "./types/applicationinsights-common.d.ts",
|
|
10
|
-
"sideEffects": false,
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/master/shared/AppInsightsCommon"
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
|
|
17
|
-
"build:esm": "grunt common",
|
|
18
|
-
"build:browser": "rollup -c",
|
|
19
|
-
"rebuild": "npm run build",
|
|
20
|
-
"test": "grunt commontest",
|
|
21
|
-
"lint": "tslint -p tsconfig.json",
|
|
22
|
-
"dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights Common JavaScript Library\"",
|
|
23
|
-
"sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js"
|
|
24
|
-
},
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"@microsoft/ai-test-framework": "0.0.1",
|
|
27
|
-
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
|
|
28
|
-
"@microsoft/applicationinsights-rollup-es3": "1.1.3",
|
|
29
|
-
"@microsoft/api-extractor": "^7.18.1",
|
|
30
|
-
"grunt": "^1.4.1",
|
|
31
|
-
"grunt-cli": "^1.4.3",
|
|
32
|
-
"grunt-contrib-qunit": "^5.0.1",
|
|
33
|
-
"@nevware21/grunt-ts-plugin": "^0.4.3",
|
|
34
|
-
"@nevware21/grunt-eslint-ts": "^0.2.2",
|
|
35
|
-
"@rollup/plugin-commonjs": "^18.0.0",
|
|
36
|
-
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
37
|
-
"@rollup/plugin-replace": "^2.3.3",
|
|
38
|
-
"rollup-plugin-cleanup": "3.2.1",
|
|
39
|
-
"rollup": "^2.32.0",
|
|
40
|
-
"typescript": "^4.3.4",
|
|
41
|
-
"tslib": "^2.0.0",
|
|
42
|
-
"globby": "^11.0.0",
|
|
43
|
-
"magic-string": "^0.25.7"
|
|
44
|
-
},
|
|
45
|
-
"peerDependencies": {
|
|
46
|
-
"tslib": "*"
|
|
47
|
-
},
|
|
48
|
-
"dependencies": {
|
|
49
|
-
"@microsoft/applicationinsights-shims": "2.0.0",
|
|
50
|
-
"@microsoft/applicationinsights-core-js": "2.7.1
|
|
51
|
-
"@microsoft/dynamicproto-js": "^1.1.4"
|
|
52
|
-
},
|
|
53
|
-
"license": "MIT"
|
|
54
|
-
|
|
55
|
-
"tag": "nightly"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@microsoft/applicationinsights-common",
|
|
3
|
+
"version": "2.7.1",
|
|
4
|
+
"description": "Microsoft Application Insights Common JavaScript Library",
|
|
5
|
+
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
|
+
"author": "Microsoft Application Insights Team",
|
|
7
|
+
"main": "./dist/applicationinsights-common.js",
|
|
8
|
+
"module": "./dist-esm/applicationinsights-common.js",
|
|
9
|
+
"types": "./types/applicationinsights-common.d.ts",
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/master/shared/AppInsightsCommon"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
|
|
17
|
+
"build:esm": "grunt common",
|
|
18
|
+
"build:browser": "rollup -c",
|
|
19
|
+
"rebuild": "npm run build",
|
|
20
|
+
"test": "grunt commontest",
|
|
21
|
+
"lint": "tslint -p tsconfig.json",
|
|
22
|
+
"dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights Common JavaScript Library\"",
|
|
23
|
+
"sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@microsoft/ai-test-framework": "0.0.1",
|
|
27
|
+
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
|
|
28
|
+
"@microsoft/applicationinsights-rollup-es3": "1.1.3",
|
|
29
|
+
"@microsoft/api-extractor": "^7.18.1",
|
|
30
|
+
"grunt": "^1.4.1",
|
|
31
|
+
"grunt-cli": "^1.4.3",
|
|
32
|
+
"grunt-contrib-qunit": "^5.0.1",
|
|
33
|
+
"@nevware21/grunt-ts-plugin": "^0.4.3",
|
|
34
|
+
"@nevware21/grunt-eslint-ts": "^0.2.2",
|
|
35
|
+
"@rollup/plugin-commonjs": "^18.0.0",
|
|
36
|
+
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
37
|
+
"@rollup/plugin-replace": "^2.3.3",
|
|
38
|
+
"rollup-plugin-cleanup": "3.2.1",
|
|
39
|
+
"rollup": "^2.32.0",
|
|
40
|
+
"typescript": "^4.3.4",
|
|
41
|
+
"tslib": "^2.0.0",
|
|
42
|
+
"globby": "^11.0.0",
|
|
43
|
+
"magic-string": "^0.25.7"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"tslib": "*"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@microsoft/applicationinsights-shims": "2.0.0",
|
|
50
|
+
"@microsoft/applicationinsights-core-js": "2.7.1",
|
|
51
|
+
"@microsoft/dynamicproto-js": "^1.1.4"
|
|
52
|
+
},
|
|
53
|
+
"license": "MIT"
|
|
54
|
+
}
|
|
@@ -42,6 +42,11 @@ export interface IMetricTelemetry extends IPartC {
|
|
|
42
42
|
*/
|
|
43
43
|
max?: number;
|
|
44
44
|
|
|
45
|
+
/**
|
|
46
|
+
* (optional) The standard deviation measurement in the sample, Defaults to undefined which results in zero.
|
|
47
|
+
*/
|
|
48
|
+
stdDev?: number;
|
|
49
|
+
|
|
45
50
|
/**
|
|
46
51
|
* @description custom defined iKey
|
|
47
52
|
* @type {string}
|
package/src/Telemetry/Metric.ts
CHANGED
|
@@ -23,7 +23,7 @@ export class Metric extends MetricData implements ISerializable {
|
|
|
23
23
|
/**
|
|
24
24
|
* Constructs a new instance of the MetricTelemetry object
|
|
25
25
|
*/
|
|
26
|
-
constructor(logger: IDiagnosticLogger, name: string, value: number, count?: number, min?: number, max?: number, properties?: any, measurements?: { [key: string]: number }) {
|
|
26
|
+
constructor(logger: IDiagnosticLogger, name: string, value: number, count?: number, min?: number, max?: number, stdDev?: number, properties?: any, measurements?: { [key: string]: number }) {
|
|
27
27
|
super();
|
|
28
28
|
|
|
29
29
|
const dataPoint = new DataPoint();
|
|
@@ -32,6 +32,7 @@ export class Metric extends MetricData implements ISerializable {
|
|
|
32
32
|
dataPoint.min = isNaN(min) || min === null ? undefined : min;
|
|
33
33
|
dataPoint.name = dataSanitizeString(logger, name) || strNotSpecified;
|
|
34
34
|
dataPoint.value = value;
|
|
35
|
+
dataPoint.stdDev = isNaN(stdDev) || stdDev === null ? undefined : stdDev;
|
|
35
36
|
|
|
36
37
|
this.metrics = [dataPoint];
|
|
37
38
|
this.properties = dataSanitizeProperties(logger, properties);
|
|
@@ -33,6 +33,10 @@ export interface IMetricTelemetry extends IPartC {
|
|
|
33
33
|
* @default max=average
|
|
34
34
|
*/
|
|
35
35
|
max?: number;
|
|
36
|
+
/**
|
|
37
|
+
* (optional) The standard deviation measurement in the sample, Defaults to undefined which results in zero.
|
|
38
|
+
*/
|
|
39
|
+
stdDev?: number;
|
|
36
40
|
/**
|
|
37
41
|
* @description custom defined iKey
|
|
38
42
|
* @type {string}
|
|
@@ -13,7 +13,7 @@ export declare class Metric extends MetricData implements ISerializable {
|
|
|
13
13
|
/**
|
|
14
14
|
* Constructs a new instance of the MetricTelemetry object
|
|
15
15
|
*/
|
|
16
|
-
constructor(logger: IDiagnosticLogger, name: string, value: number, count?: number, min?: number, max?: number, properties?: any, measurements?: {
|
|
16
|
+
constructor(logger: IDiagnosticLogger, name: string, value: number, count?: number, min?: number, max?: number, stdDev?: number, properties?: any, measurements?: {
|
|
17
17
|
[key: string]: number;
|
|
18
18
|
});
|
|
19
19
|
}
|