@microsoft/applicationinsights-web-basic 2.8.4-nightly.2205-08 → 2.8.4
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/aib.2.8.4.integrity.json +26 -0
- package/browser/{aib.2.8.4-nightly.2205-08.js → aib.2.8.4.js} +930 -862
- package/browser/aib.2.8.4.js.map +1 -0
- package/browser/aib.2.8.4.min.js +6 -0
- package/browser/aib.2.8.4.min.js.map +1 -0
- package/browser/aib.2.js +929 -861
- package/browser/aib.2.js.map +1 -1
- package/browser/aib.2.min.js +2 -2
- package/browser/aib.2.min.js.map +1 -1
- package/dist/applicationinsights-web-basic.api.json +101 -1
- package/dist/applicationinsights-web-basic.api.md +3 -0
- package/dist/applicationinsights-web-basic.d.ts +63 -1
- package/dist/applicationinsights-web-basic.js +929 -861
- package/dist/applicationinsights-web-basic.js.map +1 -1
- package/dist/applicationinsights-web-basic.min.js +2 -2
- package/dist/applicationinsights-web-basic.min.js.map +1 -1
- package/dist/applicationinsights-web-basic.rollup.d.ts +63 -1
- package/dist-esm/index.js +1 -1
- package/package.json +59 -62
- package/types/tsdoc-metadata.json +1 -1
- package/browser/aib.2.8.4-nightly.2205-08.integrity.json +0 -26
- package/browser/aib.2.8.4-nightly.2205-08.js.map +0 -1
- package/browser/aib.2.8.4-nightly.2205-08.min.js +0 -6
- package/browser/aib.2.8.4-nightly.2205-08.min.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft.ApplicationInsights, 2.8.4
|
|
2
|
+
* Microsoft.ApplicationInsights, 2.8.4
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -184,6 +184,15 @@ declare class BaseCore implements IAppInsightsCore {
|
|
|
184
184
|
* @returns - true if the callback will be return after the flush is complete otherwise the caller should assume that any provided callback will never be called
|
|
185
185
|
*/
|
|
186
186
|
flush(isAsync?: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason): void;
|
|
187
|
+
/**
|
|
188
|
+
* Gets the current distributed trace context for this instance if available
|
|
189
|
+
* @param createNew - Optional flag to create a new instance if one doesn't currently exist, defaults to true
|
|
190
|
+
*/
|
|
191
|
+
getTraceCtx(createNew?: boolean): IDistributedTraceContext | null;
|
|
192
|
+
/**
|
|
193
|
+
* Sets the current distributed trace context for this instance if available
|
|
194
|
+
*/
|
|
195
|
+
setTraceCtx(newTracectx: IDistributedTraceContext): void;
|
|
187
196
|
protected releaseQueue(): void;
|
|
188
197
|
/**
|
|
189
198
|
* Hook for Core extensions to allow them to update their own configuration before updating all of the plugins.
|
|
@@ -523,6 +532,15 @@ export declare interface IAppInsightsCore extends IPerfManagerProvider {
|
|
|
523
532
|
* @returns - true if the callback will be return after the flush is complete otherwise the caller should assume that any provided callback will never be called
|
|
524
533
|
*/
|
|
525
534
|
flush(isAsync?: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason, cbTimeout?: number): boolean | void;
|
|
535
|
+
/**
|
|
536
|
+
* Gets the current distributed trace context for this instance if available
|
|
537
|
+
* @param createNew - Optional flag to create a new instance if one doesn't currently exist, defaults to true
|
|
538
|
+
*/
|
|
539
|
+
getTraceCtx(createNew?: boolean): IDistributedTraceContext | null;
|
|
540
|
+
/**
|
|
541
|
+
* Sets the current distributed trace context for this instance if available
|
|
542
|
+
*/
|
|
543
|
+
setTraceCtx(newTraceCtx: IDistributedTraceContext | null | undefined): void;
|
|
526
544
|
}
|
|
527
545
|
|
|
528
546
|
/**
|
|
@@ -1499,6 +1517,50 @@ declare interface IDiagnosticLogger {
|
|
|
1499
1517
|
logInternalMessage?(severity: LoggingSeverity, message: _InternalLogMessage): void;
|
|
1500
1518
|
}
|
|
1501
1519
|
|
|
1520
|
+
declare interface IDistributedTraceContext {
|
|
1521
|
+
/**
|
|
1522
|
+
* Returns the current name of the page
|
|
1523
|
+
*/
|
|
1524
|
+
getName(): string;
|
|
1525
|
+
/**
|
|
1526
|
+
* Sets the current name of the page
|
|
1527
|
+
* @param pageName
|
|
1528
|
+
*/
|
|
1529
|
+
setName(pageName: string): void;
|
|
1530
|
+
/**
|
|
1531
|
+
* Returns the unique identifier for a trace. All requests / spans from the same trace share the same traceId.
|
|
1532
|
+
* Must be read from incoming headers or generated according to the W3C TraceContext specification,
|
|
1533
|
+
* in a hex representation of 16-byte array. A.k.a. trace-id, TraceID or Distributed TraceID
|
|
1534
|
+
*/
|
|
1535
|
+
getTraceId(): string;
|
|
1536
|
+
/**
|
|
1537
|
+
* Set the unique identifier for a trace. All requests / spans from the same trace share the same traceId.
|
|
1538
|
+
* Must be conform to the W3C TraceContext specification, in a hex representation of 16-byte array.
|
|
1539
|
+
* A.k.a. trace-id, TraceID or Distributed TraceID https://www.w3.org/TR/trace-context/#trace-id
|
|
1540
|
+
*/
|
|
1541
|
+
setTraceId(newValue: string): void;
|
|
1542
|
+
/**
|
|
1543
|
+
* Self-generated 8-bytes identifier of the incoming request. Must be a hex representation of 8-byte array.
|
|
1544
|
+
* Also know as the parentId, used to link requests together
|
|
1545
|
+
*/
|
|
1546
|
+
getSpanId(): string;
|
|
1547
|
+
/**
|
|
1548
|
+
* Self-generated 8-bytes identifier of the incoming request. Must be a hex representation of 8-byte array.
|
|
1549
|
+
* Also know as the parentId, used to link requests together
|
|
1550
|
+
* https://www.w3.org/TR/trace-context/#parent-id
|
|
1551
|
+
*/
|
|
1552
|
+
setSpanId(newValue: string): void;
|
|
1553
|
+
/**
|
|
1554
|
+
* An integer representation of the W3C TraceContext trace-flags.
|
|
1555
|
+
*/
|
|
1556
|
+
getTraceFlags(): number | undefined;
|
|
1557
|
+
/**
|
|
1558
|
+
* https://www.w3.org/TR/trace-context/#trace-flags
|
|
1559
|
+
* @param newValue
|
|
1560
|
+
*/
|
|
1561
|
+
setTraceFlags(newValue?: number): void;
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1502
1564
|
declare interface IEnvelope extends ISerializable {
|
|
1503
1565
|
/**
|
|
1504
1566
|
* Envelope version. For internal use only. By assigning this the default, it will not be serialized within the payload unless changed to a value other than #1.
|
package/dist-esm/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,62 +1,59 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@microsoft/applicationinsights-web-basic",
|
|
3
|
-
"version": "2.8.4
|
|
4
|
-
"description": "Microsoft Application Insights Javascript SDK core and channel",
|
|
5
|
-
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
|
-
"author": "Microsoft Application Insights Team",
|
|
7
|
-
"main": "dist/applicationinsights-web-basic.js",
|
|
8
|
-
"module": "dist-esm/index.js",
|
|
9
|
-
"types": "types/index.d.ts",
|
|
10
|
-
"sideEffects": false,
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
|
|
13
|
-
"build:esm": "grunt aiskulite",
|
|
14
|
-
"build:browser": "rollup -c rollup.config.js",
|
|
15
|
-
"rebuild": "npm run build",
|
|
16
|
-
"test": "grunt aiskuliteunittests",
|
|
17
|
-
"lint": "tslint -p tsconfig.json",
|
|
18
|
-
"dtsgen": "api-extractor run --local && node ../scripts/dtsgen.js 'Microsoft.ApplicationInsights'",
|
|
19
|
-
"sri": "node ../tools/subResourceIntegrity/generateIntegrityFile.js"
|
|
20
|
-
},
|
|
21
|
-
"repository": {
|
|
22
|
-
"type": "git",
|
|
23
|
-
"url": "https://github.com/microsoft/ApplicationInsights-JS.git",
|
|
24
|
-
"directory": "AISKULight"
|
|
25
|
-
},
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"@microsoft/ai-test-framework": "0.0.1",
|
|
28
|
-
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
|
|
29
|
-
"@microsoft/applicationinsights-rollup-es3": "1.1.3",
|
|
30
|
-
"@microsoft/api-extractor": "^7.18.1",
|
|
31
|
-
"grunt": "^1.5.3",
|
|
32
|
-
"grunt-cli": "^1.4.3",
|
|
33
|
-
"grunt-contrib-qunit": "^5.0.1",
|
|
34
|
-
"@nevware21/grunt-ts-plugin": "^0.4.3",
|
|
35
|
-
"@nevware21/grunt-eslint-ts": "^0.2.2",
|
|
36
|
-
"globby": "^11.0.0",
|
|
37
|
-
"magic-string": "^0.25.7",
|
|
38
|
-
"pako": "^2.0.3",
|
|
39
|
-
"@rollup/plugin-commonjs": "^18.0.0",
|
|
40
|
-
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
41
|
-
"@rollup/plugin-replace": "^2.3.3",
|
|
42
|
-
"rollup-plugin-cleanup": "^3.2.1",
|
|
43
|
-
"rollup": "^2.32.0",
|
|
44
|
-
"source-map-loader": "^0.2.3",
|
|
45
|
-
"typescript": "^4.3.4",
|
|
46
|
-
"tslib": "^2.0.0"
|
|
47
|
-
},
|
|
48
|
-
"peerDependencies": {
|
|
49
|
-
"tslib": "*"
|
|
50
|
-
},
|
|
51
|
-
"dependencies": {
|
|
52
|
-
"@microsoft/dynamicproto-js": "^1.1.6",
|
|
53
|
-
"@microsoft/applicationinsights-shims": "2.0.1",
|
|
54
|
-
"@microsoft/applicationinsights-common": "2.8.4
|
|
55
|
-
"@microsoft/applicationinsights-channel-js": "2.8.4
|
|
56
|
-
"@microsoft/applicationinsights-core-js": "2.8.4
|
|
57
|
-
},
|
|
58
|
-
"license": "MIT"
|
|
59
|
-
|
|
60
|
-
"tag": "nightly"
|
|
61
|
-
}
|
|
62
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@microsoft/applicationinsights-web-basic",
|
|
3
|
+
"version": "2.8.4",
|
|
4
|
+
"description": "Microsoft Application Insights Javascript SDK core and channel",
|
|
5
|
+
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
|
+
"author": "Microsoft Application Insights Team",
|
|
7
|
+
"main": "dist/applicationinsights-web-basic.js",
|
|
8
|
+
"module": "dist-esm/index.js",
|
|
9
|
+
"types": "types/index.d.ts",
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
|
|
13
|
+
"build:esm": "grunt aiskulite",
|
|
14
|
+
"build:browser": "rollup -c rollup.config.js",
|
|
15
|
+
"rebuild": "npm run build",
|
|
16
|
+
"test": "grunt aiskuliteunittests",
|
|
17
|
+
"lint": "tslint -p tsconfig.json",
|
|
18
|
+
"dtsgen": "api-extractor run --local && node ../scripts/dtsgen.js 'Microsoft.ApplicationInsights'",
|
|
19
|
+
"sri": "node ../tools/subResourceIntegrity/generateIntegrityFile.js"
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "https://github.com/microsoft/ApplicationInsights-JS.git",
|
|
24
|
+
"directory": "AISKULight"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@microsoft/ai-test-framework": "0.0.1",
|
|
28
|
+
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
|
|
29
|
+
"@microsoft/applicationinsights-rollup-es3": "1.1.3",
|
|
30
|
+
"@microsoft/api-extractor": "^7.18.1",
|
|
31
|
+
"grunt": "^1.5.3",
|
|
32
|
+
"grunt-cli": "^1.4.3",
|
|
33
|
+
"grunt-contrib-qunit": "^5.0.1",
|
|
34
|
+
"@nevware21/grunt-ts-plugin": "^0.4.3",
|
|
35
|
+
"@nevware21/grunt-eslint-ts": "^0.2.2",
|
|
36
|
+
"globby": "^11.0.0",
|
|
37
|
+
"magic-string": "^0.25.7",
|
|
38
|
+
"pako": "^2.0.3",
|
|
39
|
+
"@rollup/plugin-commonjs": "^18.0.0",
|
|
40
|
+
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
41
|
+
"@rollup/plugin-replace": "^2.3.3",
|
|
42
|
+
"rollup-plugin-cleanup": "^3.2.1",
|
|
43
|
+
"rollup": "^2.32.0",
|
|
44
|
+
"source-map-loader": "^0.2.3",
|
|
45
|
+
"typescript": "^4.3.4",
|
|
46
|
+
"tslib": "^2.0.0"
|
|
47
|
+
},
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"tslib": "*"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@microsoft/dynamicproto-js": "^1.1.6",
|
|
53
|
+
"@microsoft/applicationinsights-shims": "2.0.1",
|
|
54
|
+
"@microsoft/applicationinsights-common": "2.8.4",
|
|
55
|
+
"@microsoft/applicationinsights-channel-js": "2.8.4",
|
|
56
|
+
"@microsoft/applicationinsights-core-js": "2.8.4"
|
|
57
|
+
},
|
|
58
|
+
"license": "MIT"
|
|
59
|
+
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "aib",
|
|
3
|
-
"version": "2.8.4-nightly.2205-08",
|
|
4
|
-
"ext": {
|
|
5
|
-
"@js": {
|
|
6
|
-
"file": "aib.2.8.4-nightly.2205-08.js",
|
|
7
|
-
"type": "text/javascript; charset=utf-8",
|
|
8
|
-
"integrity": "sha256-EZvDZoVy45gt0ryk2TAeW7cXKvsv9GAXnDajM4Zbfh8= sha384-cZ4ogso/qVsjQtr5u1cFHyq47PbazBQ3Y4xWQzczb8f5S7cio78nZ1Wuktcuox5q sha512-kBQs74b0koF0YUdbszTvb/PEI506nbHp4DyrPogBeiyDU5Wq1rQfDf6kvAGiy8ZaMw+9FzKXmFoh6MvfhN+aPw==",
|
|
9
|
-
"hashes": {
|
|
10
|
-
"sha256": "EZvDZoVy45gt0ryk2TAeW7cXKvsv9GAXnDajM4Zbfh8=",
|
|
11
|
-
"sha384": "cZ4ogso/qVsjQtr5u1cFHyq47PbazBQ3Y4xWQzczb8f5S7cio78nZ1Wuktcuox5q",
|
|
12
|
-
"sha512": "kBQs74b0koF0YUdbszTvb/PEI506nbHp4DyrPogBeiyDU5Wq1rQfDf6kvAGiy8ZaMw+9FzKXmFoh6MvfhN+aPw=="
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"@min.js": {
|
|
16
|
-
"file": "aib.2.8.4-nightly.2205-08.min.js",
|
|
17
|
-
"type": "text/javascript; charset=utf-8",
|
|
18
|
-
"integrity": "sha256-8CxlWhILy0e8YB40Jqq4IELKwgbEXUwEI4qoJM60ktw= sha384-lEY2UZx/KllaBPqGf5FEOV4dnJcCCEBzDIPic8xfDPcZSAvlnBvz0snesoGrOCcs sha512-nBYgJAbZwp4Vgd3ff4eiKlH0bCAf9I9ajV1p4mH2EZkOnfIyp3f3n9q1hcqOrNqsAOOp1wPtSL/cH+jLbpKUHg==",
|
|
19
|
-
"hashes": {
|
|
20
|
-
"sha256": "8CxlWhILy0e8YB40Jqq4IELKwgbEXUwEI4qoJM60ktw=",
|
|
21
|
-
"sha384": "lEY2UZx/KllaBPqGf5FEOV4dnJcCCEBzDIPic8xfDPcZSAvlnBvz0snesoGrOCcs",
|
|
22
|
-
"sha512": "nBYgJAbZwp4Vgd3ff4eiKlH0bCAf9I9ajV1p4mH2EZkOnfIyp3f3n9q1hcqOrNqsAOOp1wPtSL/cH+jLbpKUHg=="
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|