@microsoft/applicationinsights-dependencies-js 3.0.0-beta.2208-04 → 3.0.0-beta.2208-14
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 +216 -75
- 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 +87 -10
- package/dist/applicationinsights-dependencies-js.api.md +10 -6
- package/dist/applicationinsights-dependencies-js.d.ts +27 -4
- package/dist/applicationinsights-dependencies-js.js +216 -75
- 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 +1 -1
- package/dist-esm/__DynamicConstants.js +27 -20
- package/dist-esm/__DynamicConstants.js.map +1 -1
- package/dist-esm/ajax.js +53 -52
- 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 +3 -3
- package/src/__DynamicConstants.ts +26 -19
- package/src/ajax.ts +6 -7
- package/src/ajaxRecord.ts +62 -5
- package/types/__DynamicConstants.d.ts +24 -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.0",
|
|
5
5
|
"schemaVersion": 1009,
|
|
6
6
|
"oldestForwardsCompatibleVersion": 1001,
|
|
7
7
|
"tsdocConfig": {
|
|
@@ -891,7 +891,7 @@
|
|
|
891
891
|
"excerptTokens": [
|
|
892
892
|
{
|
|
893
893
|
"kind": "Content",
|
|
894
|
-
"text": "constructor(
|
|
894
|
+
"text": "constructor(traceId: "
|
|
895
895
|
},
|
|
896
896
|
{
|
|
897
897
|
"kind": "Content",
|
|
@@ -899,7 +899,7 @@
|
|
|
899
899
|
},
|
|
900
900
|
{
|
|
901
901
|
"kind": "Content",
|
|
902
|
-
"text": ",
|
|
902
|
+
"text": ", spanId: "
|
|
903
903
|
},
|
|
904
904
|
{
|
|
905
905
|
"kind": "Content",
|
|
@@ -914,6 +914,15 @@
|
|
|
914
914
|
"text": "IDiagnosticLogger",
|
|
915
915
|
"canonicalReference": "@microsoft/applicationinsights-core-js!IDiagnosticLogger:interface"
|
|
916
916
|
},
|
|
917
|
+
{
|
|
918
|
+
"kind": "Content",
|
|
919
|
+
"text": ", traceCtx?: "
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"kind": "Reference",
|
|
923
|
+
"text": "IDistributedTraceContext",
|
|
924
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!IDistributedTraceContext:interface"
|
|
925
|
+
},
|
|
917
926
|
{
|
|
918
927
|
"kind": "Content",
|
|
919
928
|
"text": ");"
|
|
@@ -924,7 +933,7 @@
|
|
|
924
933
|
"overloadIndex": 1,
|
|
925
934
|
"parameters": [
|
|
926
935
|
{
|
|
927
|
-
"parameterName": "
|
|
936
|
+
"parameterName": "traceId",
|
|
928
937
|
"parameterTypeTokenRange": {
|
|
929
938
|
"startIndex": 1,
|
|
930
939
|
"endIndex": 2
|
|
@@ -932,7 +941,7 @@
|
|
|
932
941
|
"isOptional": false
|
|
933
942
|
},
|
|
934
943
|
{
|
|
935
|
-
"parameterName": "
|
|
944
|
+
"parameterName": "spanId",
|
|
936
945
|
"parameterTypeTokenRange": {
|
|
937
946
|
"startIndex": 3,
|
|
938
947
|
"endIndex": 4
|
|
@@ -946,6 +955,14 @@
|
|
|
946
955
|
"endIndex": 6
|
|
947
956
|
},
|
|
948
957
|
"isOptional": false
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
"parameterName": "traceCtx",
|
|
961
|
+
"parameterTypeTokenRange": {
|
|
962
|
+
"startIndex": 7,
|
|
963
|
+
"endIndex": 8
|
|
964
|
+
},
|
|
965
|
+
"isOptional": true
|
|
949
966
|
}
|
|
950
967
|
]
|
|
951
968
|
},
|
|
@@ -1295,6 +1312,36 @@
|
|
|
1295
1312
|
"isStatic": false,
|
|
1296
1313
|
"isProtected": false
|
|
1297
1314
|
},
|
|
1315
|
+
{
|
|
1316
|
+
"kind": "Property",
|
|
1317
|
+
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!ajaxRecord#eventTraceCtx:member",
|
|
1318
|
+
"docComment": "/**\n * The trace context to use for reporting the remote dependency call\n */\n",
|
|
1319
|
+
"excerptTokens": [
|
|
1320
|
+
{
|
|
1321
|
+
"kind": "Content",
|
|
1322
|
+
"text": "eventTraceCtx: "
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
"kind": "Reference",
|
|
1326
|
+
"text": "ITraceCtx",
|
|
1327
|
+
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!~ITraceCtx:interface"
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
"kind": "Content",
|
|
1331
|
+
"text": ";"
|
|
1332
|
+
}
|
|
1333
|
+
],
|
|
1334
|
+
"isReadonly": false,
|
|
1335
|
+
"isOptional": false,
|
|
1336
|
+
"releaseTag": "Public",
|
|
1337
|
+
"name": "eventTraceCtx",
|
|
1338
|
+
"propertyTypeTokenRange": {
|
|
1339
|
+
"startIndex": 1,
|
|
1340
|
+
"endIndex": 2
|
|
1341
|
+
},
|
|
1342
|
+
"isStatic": false,
|
|
1343
|
+
"isProtected": false
|
|
1344
|
+
},
|
|
1298
1345
|
{
|
|
1299
1346
|
"kind": "Method",
|
|
1300
1347
|
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!ajaxRecord#getAbsoluteUrl:member(1)",
|
|
@@ -1325,6 +1372,36 @@
|
|
|
1325
1372
|
"isOptional": false,
|
|
1326
1373
|
"name": "getAbsoluteUrl"
|
|
1327
1374
|
},
|
|
1375
|
+
{
|
|
1376
|
+
"kind": "Method",
|
|
1377
|
+
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!ajaxRecord#getPartAProps:member(1)",
|
|
1378
|
+
"docComment": "",
|
|
1379
|
+
"excerptTokens": [
|
|
1380
|
+
{
|
|
1381
|
+
"kind": "Content",
|
|
1382
|
+
"text": "getPartAProps(): "
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
"kind": "Content",
|
|
1386
|
+
"text": "{\n [key: string]: any;\n }"
|
|
1387
|
+
},
|
|
1388
|
+
{
|
|
1389
|
+
"kind": "Content",
|
|
1390
|
+
"text": ";"
|
|
1391
|
+
}
|
|
1392
|
+
],
|
|
1393
|
+
"isStatic": false,
|
|
1394
|
+
"returnTypeTokenRange": {
|
|
1395
|
+
"startIndex": 1,
|
|
1396
|
+
"endIndex": 2
|
|
1397
|
+
},
|
|
1398
|
+
"releaseTag": "Public",
|
|
1399
|
+
"isProtected": false,
|
|
1400
|
+
"overloadIndex": 1,
|
|
1401
|
+
"parameters": [],
|
|
1402
|
+
"isOptional": false,
|
|
1403
|
+
"name": "getPartAProps"
|
|
1404
|
+
},
|
|
1328
1405
|
{
|
|
1329
1406
|
"kind": "Method",
|
|
1330
1407
|
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!ajaxRecord#getPathName:member(1)",
|
|
@@ -1737,7 +1814,7 @@
|
|
|
1737
1814
|
{
|
|
1738
1815
|
"kind": "Property",
|
|
1739
1816
|
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!ajaxRecord#spanID:member",
|
|
1740
|
-
"docComment": "",
|
|
1817
|
+
"docComment": "/**\n * The spanId to use for the dependency call\n */\n",
|
|
1741
1818
|
"excerptTokens": [
|
|
1742
1819
|
{
|
|
1743
1820
|
"kind": "Content",
|
|
@@ -1795,7 +1872,7 @@
|
|
|
1795
1872
|
{
|
|
1796
1873
|
"kind": "Property",
|
|
1797
1874
|
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!ajaxRecord#traceFlags:member",
|
|
1798
|
-
"docComment": "",
|
|
1875
|
+
"docComment": "/**\n * The traceFlags to use for the dependency call\n */\n",
|
|
1799
1876
|
"excerptTokens": [
|
|
1800
1877
|
{
|
|
1801
1878
|
"kind": "Content",
|
|
@@ -1824,7 +1901,7 @@
|
|
|
1824
1901
|
{
|
|
1825
1902
|
"kind": "Property",
|
|
1826
1903
|
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!ajaxRecord#traceID:member",
|
|
1827
|
-
"docComment": "",
|
|
1904
|
+
"docComment": "/**\n * The traceId to use for the dependency call\n */\n",
|
|
1828
1905
|
"excerptTokens": [
|
|
1829
1906
|
{
|
|
1830
1907
|
"kind": "Content",
|
|
@@ -2016,8 +2093,8 @@
|
|
|
2016
2093
|
},
|
|
2017
2094
|
{
|
|
2018
2095
|
"kind": "Reference",
|
|
2019
|
-
"text": "
|
|
2020
|
-
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!
|
|
2096
|
+
"text": "_DYN_INCLUDE_CORRELATION_3",
|
|
2097
|
+
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!_DYN_INCLUDE_CORRELATION_3"
|
|
2021
2098
|
},
|
|
2022
2099
|
{
|
|
2023
2100
|
"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-14
|
|
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 {
|