@microsoft/applicationinsights-dependencies-js 3.0.0-beta.2208-03 → 3.0.0-beta.2208-16
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-dependencies-js.integrity.json +9 -9
- package/browser/applicationinsights-dependencies-js.js +826 -681
- package/browser/applicationinsights-dependencies-js.js.map +1 -1
- package/browser/applicationinsights-dependencies-js.min.js +2 -2
- package/browser/applicationinsights-dependencies-js.min.js.map +1 -1
- package/dist/applicationinsights-dependencies-js.api.json +92 -19
- package/dist/applicationinsights-dependencies-js.api.md +10 -6
- package/dist/applicationinsights-dependencies-js.d.ts +27 -4
- package/dist/applicationinsights-dependencies-js.js +826 -681
- package/dist/applicationinsights-dependencies-js.js.map +1 -1
- package/dist/applicationinsights-dependencies-js.min.js +2 -2
- package/dist/applicationinsights-dependencies-js.min.js.map +1 -1
- package/dist/applicationinsights-dependencies-js.rollup.d.ts +27 -4
- package/dist-esm/DependencyListener.js +1 -1
- package/dist-esm/InternalConstants.js +4 -4
- package/dist-esm/InternalConstants.js.map +1 -1
- package/dist-esm/__DynamicConstants.js +28 -23
- package/dist-esm/__DynamicConstants.js.map +1 -1
- package/dist-esm/ajax.js +56 -54
- package/dist-esm/ajax.js.map +1 -1
- package/dist-esm/ajaxRecord.js +38 -9
- package/dist-esm/ajaxRecord.js.map +1 -1
- package/dist-esm/ajaxUtils.js +1 -1
- package/dist-esm/applicationinsights-dependencies-js.js +1 -1
- package/package.json +5 -4
- package/src/InternalConstants.ts +3 -3
- package/src/__DynamicConstants.ts +27 -22
- package/src/ajax.ts +14 -14
- package/src/ajaxRecord.ts +62 -5
- package/tsconfig.json +1 -1
- package/types/__DynamicConstants.d.ts +22 -17
- package/types/ajax.d.ts +2 -2
- package/types/ajaxRecord.d.ts +24 -2
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"metadata": {
|
|
3
3
|
"toolPackage": "@microsoft/api-extractor",
|
|
4
|
-
"toolVersion": "7.
|
|
4
|
+
"toolVersion": "7.29.2",
|
|
5
5
|
"schemaVersion": 1009,
|
|
6
6
|
"oldestForwardsCompatibleVersion": 1001,
|
|
7
7
|
"tsdocConfig": {
|
|
@@ -188,11 +188,7 @@
|
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
190
|
"kind": "Content",
|
|
191
|
-
"text": " "
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
"kind": "Content",
|
|
195
|
-
"text": "implements "
|
|
191
|
+
"text": " implements "
|
|
196
192
|
},
|
|
197
193
|
{
|
|
198
194
|
"kind": "Reference",
|
|
@@ -861,12 +857,12 @@
|
|
|
861
857
|
},
|
|
862
858
|
"implementsTokenRanges": [
|
|
863
859
|
{
|
|
864
|
-
"startIndex":
|
|
865
|
-
"endIndex":
|
|
860
|
+
"startIndex": 3,
|
|
861
|
+
"endIndex": 4
|
|
866
862
|
},
|
|
867
863
|
{
|
|
868
|
-
"startIndex":
|
|
869
|
-
"endIndex":
|
|
864
|
+
"startIndex": 5,
|
|
865
|
+
"endIndex": 6
|
|
870
866
|
}
|
|
871
867
|
]
|
|
872
868
|
},
|
|
@@ -891,7 +887,7 @@
|
|
|
891
887
|
"excerptTokens": [
|
|
892
888
|
{
|
|
893
889
|
"kind": "Content",
|
|
894
|
-
"text": "constructor(
|
|
890
|
+
"text": "constructor(traceId: "
|
|
895
891
|
},
|
|
896
892
|
{
|
|
897
893
|
"kind": "Content",
|
|
@@ -899,7 +895,7 @@
|
|
|
899
895
|
},
|
|
900
896
|
{
|
|
901
897
|
"kind": "Content",
|
|
902
|
-
"text": ",
|
|
898
|
+
"text": ", spanId: "
|
|
903
899
|
},
|
|
904
900
|
{
|
|
905
901
|
"kind": "Content",
|
|
@@ -914,6 +910,15 @@
|
|
|
914
910
|
"text": "IDiagnosticLogger",
|
|
915
911
|
"canonicalReference": "@microsoft/applicationinsights-core-js!IDiagnosticLogger:interface"
|
|
916
912
|
},
|
|
913
|
+
{
|
|
914
|
+
"kind": "Content",
|
|
915
|
+
"text": ", traceCtx?: "
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
"kind": "Reference",
|
|
919
|
+
"text": "IDistributedTraceContext",
|
|
920
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!IDistributedTraceContext:interface"
|
|
921
|
+
},
|
|
917
922
|
{
|
|
918
923
|
"kind": "Content",
|
|
919
924
|
"text": ");"
|
|
@@ -924,7 +929,7 @@
|
|
|
924
929
|
"overloadIndex": 1,
|
|
925
930
|
"parameters": [
|
|
926
931
|
{
|
|
927
|
-
"parameterName": "
|
|
932
|
+
"parameterName": "traceId",
|
|
928
933
|
"parameterTypeTokenRange": {
|
|
929
934
|
"startIndex": 1,
|
|
930
935
|
"endIndex": 2
|
|
@@ -932,7 +937,7 @@
|
|
|
932
937
|
"isOptional": false
|
|
933
938
|
},
|
|
934
939
|
{
|
|
935
|
-
"parameterName": "
|
|
940
|
+
"parameterName": "spanId",
|
|
936
941
|
"parameterTypeTokenRange": {
|
|
937
942
|
"startIndex": 3,
|
|
938
943
|
"endIndex": 4
|
|
@@ -946,6 +951,14 @@
|
|
|
946
951
|
"endIndex": 6
|
|
947
952
|
},
|
|
948
953
|
"isOptional": false
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
"parameterName": "traceCtx",
|
|
957
|
+
"parameterTypeTokenRange": {
|
|
958
|
+
"startIndex": 7,
|
|
959
|
+
"endIndex": 8
|
|
960
|
+
},
|
|
961
|
+
"isOptional": true
|
|
949
962
|
}
|
|
950
963
|
]
|
|
951
964
|
},
|
|
@@ -1295,6 +1308,36 @@
|
|
|
1295
1308
|
"isStatic": false,
|
|
1296
1309
|
"isProtected": false
|
|
1297
1310
|
},
|
|
1311
|
+
{
|
|
1312
|
+
"kind": "Property",
|
|
1313
|
+
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!ajaxRecord#eventTraceCtx:member",
|
|
1314
|
+
"docComment": "/**\n * The trace context to use for reporting the remote dependency call\n */\n",
|
|
1315
|
+
"excerptTokens": [
|
|
1316
|
+
{
|
|
1317
|
+
"kind": "Content",
|
|
1318
|
+
"text": "eventTraceCtx: "
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
"kind": "Reference",
|
|
1322
|
+
"text": "ITraceCtx",
|
|
1323
|
+
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!~ITraceCtx:interface"
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
"kind": "Content",
|
|
1327
|
+
"text": ";"
|
|
1328
|
+
}
|
|
1329
|
+
],
|
|
1330
|
+
"isReadonly": false,
|
|
1331
|
+
"isOptional": false,
|
|
1332
|
+
"releaseTag": "Public",
|
|
1333
|
+
"name": "eventTraceCtx",
|
|
1334
|
+
"propertyTypeTokenRange": {
|
|
1335
|
+
"startIndex": 1,
|
|
1336
|
+
"endIndex": 2
|
|
1337
|
+
},
|
|
1338
|
+
"isStatic": false,
|
|
1339
|
+
"isProtected": false
|
|
1340
|
+
},
|
|
1298
1341
|
{
|
|
1299
1342
|
"kind": "Method",
|
|
1300
1343
|
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!ajaxRecord#getAbsoluteUrl:member(1)",
|
|
@@ -1325,6 +1368,36 @@
|
|
|
1325
1368
|
"isOptional": false,
|
|
1326
1369
|
"name": "getAbsoluteUrl"
|
|
1327
1370
|
},
|
|
1371
|
+
{
|
|
1372
|
+
"kind": "Method",
|
|
1373
|
+
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!ajaxRecord#getPartAProps:member(1)",
|
|
1374
|
+
"docComment": "",
|
|
1375
|
+
"excerptTokens": [
|
|
1376
|
+
{
|
|
1377
|
+
"kind": "Content",
|
|
1378
|
+
"text": "getPartAProps(): "
|
|
1379
|
+
},
|
|
1380
|
+
{
|
|
1381
|
+
"kind": "Content",
|
|
1382
|
+
"text": "{\n [key: string]: any;\n }"
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
"kind": "Content",
|
|
1386
|
+
"text": ";"
|
|
1387
|
+
}
|
|
1388
|
+
],
|
|
1389
|
+
"isStatic": false,
|
|
1390
|
+
"returnTypeTokenRange": {
|
|
1391
|
+
"startIndex": 1,
|
|
1392
|
+
"endIndex": 2
|
|
1393
|
+
},
|
|
1394
|
+
"releaseTag": "Public",
|
|
1395
|
+
"isProtected": false,
|
|
1396
|
+
"overloadIndex": 1,
|
|
1397
|
+
"parameters": [],
|
|
1398
|
+
"isOptional": false,
|
|
1399
|
+
"name": "getPartAProps"
|
|
1400
|
+
},
|
|
1328
1401
|
{
|
|
1329
1402
|
"kind": "Method",
|
|
1330
1403
|
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!ajaxRecord#getPathName:member(1)",
|
|
@@ -1737,7 +1810,7 @@
|
|
|
1737
1810
|
{
|
|
1738
1811
|
"kind": "Property",
|
|
1739
1812
|
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!ajaxRecord#spanID:member",
|
|
1740
|
-
"docComment": "",
|
|
1813
|
+
"docComment": "/**\n * The spanId to use for the dependency call\n */\n",
|
|
1741
1814
|
"excerptTokens": [
|
|
1742
1815
|
{
|
|
1743
1816
|
"kind": "Content",
|
|
@@ -1795,7 +1868,7 @@
|
|
|
1795
1868
|
{
|
|
1796
1869
|
"kind": "Property",
|
|
1797
1870
|
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!ajaxRecord#traceFlags:member",
|
|
1798
|
-
"docComment": "",
|
|
1871
|
+
"docComment": "/**\n * The traceFlags to use for the dependency call\n */\n",
|
|
1799
1872
|
"excerptTokens": [
|
|
1800
1873
|
{
|
|
1801
1874
|
"kind": "Content",
|
|
@@ -1824,7 +1897,7 @@
|
|
|
1824
1897
|
{
|
|
1825
1898
|
"kind": "Property",
|
|
1826
1899
|
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!ajaxRecord#traceID:member",
|
|
1827
|
-
"docComment": "",
|
|
1900
|
+
"docComment": "/**\n * The traceId to use for the dependency call\n */\n",
|
|
1828
1901
|
"excerptTokens": [
|
|
1829
1902
|
{
|
|
1830
1903
|
"kind": "Content",
|
|
@@ -2016,8 +2089,8 @@
|
|
|
2016
2089
|
},
|
|
2017
2090
|
{
|
|
2018
2091
|
"kind": "Reference",
|
|
2019
|
-
"text": "
|
|
2020
|
-
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!
|
|
2092
|
+
"text": "_DYN_INCLUDE_CORRELATION_3",
|
|
2093
|
+
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!_DYN_INCLUDE_CORRELATION_3"
|
|
2021
2094
|
},
|
|
2022
2095
|
{
|
|
2023
2096
|
"kind": "Content",
|
|
@@ -11,6 +11,7 @@ import { IConfiguration } from '@microsoft/applicationinsights-core-js';
|
|
|
11
11
|
import { ICorrelationConfig } from '@microsoft/applicationinsights-common';
|
|
12
12
|
import { IDependencyTelemetry } from '@microsoft/applicationinsights-common';
|
|
13
13
|
import { IDiagnosticLogger } from '@microsoft/applicationinsights-core-js';
|
|
14
|
+
import { IDistributedTraceContext } from '@microsoft/applicationinsights-core-js';
|
|
14
15
|
import { IPlugin } from '@microsoft/applicationinsights-core-js';
|
|
15
16
|
import { IProcessTelemetryContext } from '@microsoft/applicationinsights-core-js';
|
|
16
17
|
import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
|
|
@@ -50,7 +51,7 @@ export class AjaxPlugin extends BaseTelemetryPlugin implements IDependenciesPlug
|
|
|
50
51
|
|
|
51
52
|
// @public (undocumented)
|
|
52
53
|
export class ajaxRecord {
|
|
53
|
-
constructor(
|
|
54
|
+
constructor(traceId: string, spanId: string, logger: IDiagnosticLogger, traceCtx?: IDistributedTraceContext);
|
|
54
55
|
// (undocumented)
|
|
55
56
|
aborted: number;
|
|
56
57
|
// (undocumented)
|
|
@@ -73,9 +74,15 @@ export class ajaxRecord {
|
|
|
73
74
|
endTime: number;
|
|
74
75
|
// (undocumented)
|
|
75
76
|
errorStatusText?: boolean;
|
|
77
|
+
// Warning: (ae-forgotten-export) The symbol "ITraceCtx" needs to be exported by the entry point applicationinsights-dependencies-js.d.ts
|
|
78
|
+
eventTraceCtx: ITraceCtx;
|
|
76
79
|
// (undocumented)
|
|
77
80
|
getAbsoluteUrl(): string;
|
|
78
81
|
// (undocumented)
|
|
82
|
+
getPartAProps(): {
|
|
83
|
+
[key: string]: any;
|
|
84
|
+
};
|
|
85
|
+
// (undocumented)
|
|
79
86
|
getPathName(): string;
|
|
80
87
|
// (undocumented)
|
|
81
88
|
method: string;
|
|
@@ -103,13 +110,10 @@ export class ajaxRecord {
|
|
|
103
110
|
responseReceivingDuration: number;
|
|
104
111
|
// (undocumented)
|
|
105
112
|
responseStartedTime: number;
|
|
106
|
-
// (undocumented)
|
|
107
113
|
spanID: string;
|
|
108
114
|
// (undocumented)
|
|
109
115
|
status: string | number;
|
|
110
|
-
// (undocumented)
|
|
111
116
|
traceFlags?: number;
|
|
112
|
-
// (undocumented)
|
|
113
117
|
traceID: string;
|
|
114
118
|
// Warning: (ae-forgotten-export) The symbol "XHRMonitoringState" needs to be exported by the entry point applicationinsights-dependencies-js.d.ts
|
|
115
119
|
//
|
|
@@ -129,10 +133,10 @@ export interface IDependenciesPlugin extends IDependencyListenerContainer {
|
|
|
129
133
|
|
|
130
134
|
// @public (undocumented)
|
|
131
135
|
export interface IInstrumentationRequirements extends IDependenciesPlugin {
|
|
132
|
-
// Warning: (ae-forgotten-export) The symbol "
|
|
136
|
+
// Warning: (ae-forgotten-export) The symbol "_DYN_INCLUDE_CORRELATION_3" needs to be exported by the entry point applicationinsights-dependencies-js.d.ts
|
|
133
137
|
//
|
|
134
138
|
// (undocumented)
|
|
135
|
-
[
|
|
139
|
+
[_DYN_INCLUDE_CORRELATION_3]: (ajaxData: ajaxRecord, input?: Request | string, init?: RequestInit, xhr?: XMLHttpRequestInstrumented) => any;
|
|
136
140
|
}
|
|
137
141
|
|
|
138
142
|
// @public (undocumented)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights XHR dependencies plugin, 3.0.0-beta.2208-
|
|
2
|
+
* Microsoft Application Insights XHR dependencies plugin, 3.0.0-beta.2208-16
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -14,6 +14,7 @@ declare namespace ApplicationInsights {
|
|
|
14
14
|
import { ICorrelationConfig } from '@microsoft/applicationinsights-common';
|
|
15
15
|
import { IDependencyTelemetry } from '@microsoft/applicationinsights-common';
|
|
16
16
|
import { IDiagnosticLogger } from '@microsoft/applicationinsights-core-js';
|
|
17
|
+
import { IDistributedTraceContext } from '@microsoft/applicationinsights-core-js';
|
|
17
18
|
import { IPlugin } from '@microsoft/applicationinsights-core-js';
|
|
18
19
|
import { IProcessTelemetryContext } from '@microsoft/applicationinsights-core-js';
|
|
19
20
|
import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
|
|
@@ -81,13 +82,29 @@ declare namespace ApplicationInsights {
|
|
|
81
82
|
endTime: number;
|
|
82
83
|
xhrMonitoringState: XHRMonitoringState;
|
|
83
84
|
clientFailure: number;
|
|
85
|
+
/**
|
|
86
|
+
* The traceId to use for the dependency call
|
|
87
|
+
*/
|
|
84
88
|
traceID: string;
|
|
89
|
+
/**
|
|
90
|
+
* The spanId to use for the dependency call
|
|
91
|
+
*/
|
|
85
92
|
spanID: string;
|
|
93
|
+
/**
|
|
94
|
+
* The traceFlags to use for the dependency call
|
|
95
|
+
*/
|
|
86
96
|
traceFlags?: number;
|
|
87
|
-
|
|
97
|
+
/**
|
|
98
|
+
* The trace context to use for reporting the remote dependency call
|
|
99
|
+
*/
|
|
100
|
+
eventTraceCtx: ITraceCtx;
|
|
101
|
+
constructor(traceId: string, spanId: string, logger: IDiagnosticLogger, traceCtx?: IDistributedTraceContext);
|
|
88
102
|
getAbsoluteUrl(): string;
|
|
89
103
|
getPathName(): string;
|
|
90
104
|
CreateTrackItem(ajaxType: string, enableRequestHeaderTracking: boolean, getResponse: () => IAjaxRecordResponse): IDependencyTelemetry;
|
|
105
|
+
getPartAProps(): {
|
|
106
|
+
[key: string]: any;
|
|
107
|
+
};
|
|
91
108
|
}
|
|
92
109
|
|
|
93
110
|
type DependencyListenerFunction = (dependencyDetails: IDependencyListenerDetails) => void;
|
|
@@ -96,7 +113,7 @@ declare namespace ApplicationInsights {
|
|
|
96
113
|
|
|
97
114
|
const _DYN_HEADER_MAP = "headerMap";
|
|
98
115
|
|
|
99
|
-
const
|
|
116
|
+
const _DYN_INCLUDE_CORRELATION_3 = "includeCorrelationHeaders";
|
|
100
117
|
|
|
101
118
|
interface IAjaxRecordResponse {
|
|
102
119
|
statusText: string;
|
|
@@ -169,7 +186,13 @@ declare namespace ApplicationInsights {
|
|
|
169
186
|
}
|
|
170
187
|
|
|
171
188
|
interface IInstrumentationRequirements extends IDependenciesPlugin {
|
|
172
|
-
[
|
|
189
|
+
[_DYN_INCLUDE_CORRELATION_3]: (ajaxData: ajaxRecord, input?: Request | string, init?: RequestInit, xhr?: XMLHttpRequestInstrumented) => any;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
interface ITraceCtx {
|
|
193
|
+
traceId: string;
|
|
194
|
+
spanId: string;
|
|
195
|
+
traceFlags: number;
|
|
173
196
|
}
|
|
174
197
|
|
|
175
198
|
class XHRMonitoringState {
|