@microsoft/applicationinsights-dependencies-js 2.8.6 → 3.0.0-beta.2208-04

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.
Files changed (30) hide show
  1. package/browser/applicationinsights-dependencies-js.integrity.json +9 -9
  2. package/browser/applicationinsights-dependencies-js.js +75 -216
  3. package/browser/applicationinsights-dependencies-js.js.map +1 -1
  4. package/browser/applicationinsights-dependencies-js.min.js +2 -2
  5. package/browser/applicationinsights-dependencies-js.min.js.map +1 -1
  6. package/dist/applicationinsights-dependencies-js.api.json +9 -86
  7. package/dist/applicationinsights-dependencies-js.api.md +6 -10
  8. package/dist/applicationinsights-dependencies-js.d.ts +4 -27
  9. package/dist/applicationinsights-dependencies-js.js +75 -216
  10. package/dist/applicationinsights-dependencies-js.js.map +1 -1
  11. package/dist/applicationinsights-dependencies-js.min.js +2 -2
  12. package/dist/applicationinsights-dependencies-js.min.js.map +1 -1
  13. package/dist/applicationinsights-dependencies-js.rollup.d.ts +4 -27
  14. package/dist-esm/DependencyListener.js +1 -1
  15. package/dist-esm/InternalConstants.js +1 -1
  16. package/dist-esm/__DynamicConstants.js +20 -27
  17. package/dist-esm/__DynamicConstants.js.map +1 -1
  18. package/dist-esm/ajax.js +52 -53
  19. package/dist-esm/ajax.js.map +1 -1
  20. package/dist-esm/ajaxRecord.js +9 -38
  21. package/dist-esm/ajaxRecord.js.map +1 -1
  22. package/dist-esm/ajaxUtils.js +1 -1
  23. package/dist-esm/applicationinsights-dependencies-js.js +1 -1
  24. package/package.json +63 -60
  25. package/src/__DynamicConstants.ts +19 -26
  26. package/src/ajax.ts +7 -6
  27. package/src/ajaxRecord.ts +5 -62
  28. package/types/__DynamicConstants.d.ts +17 -24
  29. package/types/ajax.d.ts +2 -2
  30. package/types/ajaxRecord.d.ts +2 -24
@@ -891,7 +891,7 @@
891
891
  "excerptTokens": [
892
892
  {
893
893
  "kind": "Content",
894
- "text": "constructor(traceId: "
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": ", spanId: "
902
+ "text": ", spanID: "
903
903
  },
904
904
  {
905
905
  "kind": "Content",
@@ -914,15 +914,6 @@
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
- },
926
917
  {
927
918
  "kind": "Content",
928
919
  "text": ");"
@@ -933,7 +924,7 @@
933
924
  "overloadIndex": 1,
934
925
  "parameters": [
935
926
  {
936
- "parameterName": "traceId",
927
+ "parameterName": "traceID",
937
928
  "parameterTypeTokenRange": {
938
929
  "startIndex": 1,
939
930
  "endIndex": 2
@@ -941,7 +932,7 @@
941
932
  "isOptional": false
942
933
  },
943
934
  {
944
- "parameterName": "spanId",
935
+ "parameterName": "spanID",
945
936
  "parameterTypeTokenRange": {
946
937
  "startIndex": 3,
947
938
  "endIndex": 4
@@ -955,14 +946,6 @@
955
946
  "endIndex": 6
956
947
  },
957
948
  "isOptional": false
958
- },
959
- {
960
- "parameterName": "traceCtx",
961
- "parameterTypeTokenRange": {
962
- "startIndex": 7,
963
- "endIndex": 8
964
- },
965
- "isOptional": true
966
949
  }
967
950
  ]
968
951
  },
@@ -1312,36 +1295,6 @@
1312
1295
  "isStatic": false,
1313
1296
  "isProtected": false
1314
1297
  },
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
- },
1345
1298
  {
1346
1299
  "kind": "Method",
1347
1300
  "canonicalReference": "@microsoft/applicationinsights-dependencies-js!ajaxRecord#getAbsoluteUrl:member(1)",
@@ -1372,36 +1325,6 @@
1372
1325
  "isOptional": false,
1373
1326
  "name": "getAbsoluteUrl"
1374
1327
  },
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
- },
1405
1328
  {
1406
1329
  "kind": "Method",
1407
1330
  "canonicalReference": "@microsoft/applicationinsights-dependencies-js!ajaxRecord#getPathName:member(1)",
@@ -1814,7 +1737,7 @@
1814
1737
  {
1815
1738
  "kind": "Property",
1816
1739
  "canonicalReference": "@microsoft/applicationinsights-dependencies-js!ajaxRecord#spanID:member",
1817
- "docComment": "/**\n * The spanId to use for the dependency call\n */\n",
1740
+ "docComment": "",
1818
1741
  "excerptTokens": [
1819
1742
  {
1820
1743
  "kind": "Content",
@@ -1872,7 +1795,7 @@
1872
1795
  {
1873
1796
  "kind": "Property",
1874
1797
  "canonicalReference": "@microsoft/applicationinsights-dependencies-js!ajaxRecord#traceFlags:member",
1875
- "docComment": "/**\n * The traceFlags to use for the dependency call\n */\n",
1798
+ "docComment": "",
1876
1799
  "excerptTokens": [
1877
1800
  {
1878
1801
  "kind": "Content",
@@ -1901,7 +1824,7 @@
1901
1824
  {
1902
1825
  "kind": "Property",
1903
1826
  "canonicalReference": "@microsoft/applicationinsights-dependencies-js!ajaxRecord#traceID:member",
1904
- "docComment": "/**\n * The traceId to use for the dependency call\n */\n",
1827
+ "docComment": "",
1905
1828
  "excerptTokens": [
1906
1829
  {
1907
1830
  "kind": "Content",
@@ -2093,8 +2016,8 @@
2093
2016
  },
2094
2017
  {
2095
2018
  "kind": "Reference",
2096
- "text": "_DYN_INCLUDE_CORRELATION_3",
2097
- "canonicalReference": "@microsoft/applicationinsights-dependencies-js!_DYN_INCLUDE_CORRELATION_3"
2019
+ "text": "_DYN_INCLUDE_CORRELATION_0",
2020
+ "canonicalReference": "@microsoft/applicationinsights-dependencies-js!_DYN_INCLUDE_CORRELATION_0"
2098
2021
  },
2099
2022
  {
2100
2023
  "kind": "Content",
@@ -11,7 +11,6 @@ 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';
15
14
  import { IPlugin } from '@microsoft/applicationinsights-core-js';
16
15
  import { IProcessTelemetryContext } from '@microsoft/applicationinsights-core-js';
17
16
  import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
@@ -51,7 +50,7 @@ export class AjaxPlugin extends BaseTelemetryPlugin implements IDependenciesPlug
51
50
 
52
51
  // @public (undocumented)
53
52
  export class ajaxRecord {
54
- constructor(traceId: string, spanId: string, logger: IDiagnosticLogger, traceCtx?: IDistributedTraceContext);
53
+ constructor(traceID: string, spanID: string, logger: IDiagnosticLogger);
55
54
  // (undocumented)
56
55
  aborted: number;
57
56
  // (undocumented)
@@ -74,15 +73,9 @@ export class ajaxRecord {
74
73
  endTime: number;
75
74
  // (undocumented)
76
75
  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;
79
76
  // (undocumented)
80
77
  getAbsoluteUrl(): string;
81
78
  // (undocumented)
82
- getPartAProps(): {
83
- [key: string]: any;
84
- };
85
- // (undocumented)
86
79
  getPathName(): string;
87
80
  // (undocumented)
88
81
  method: string;
@@ -110,10 +103,13 @@ export class ajaxRecord {
110
103
  responseReceivingDuration: number;
111
104
  // (undocumented)
112
105
  responseStartedTime: number;
106
+ // (undocumented)
113
107
  spanID: string;
114
108
  // (undocumented)
115
109
  status: string | number;
110
+ // (undocumented)
116
111
  traceFlags?: number;
112
+ // (undocumented)
117
113
  traceID: string;
118
114
  // Warning: (ae-forgotten-export) The symbol "XHRMonitoringState" needs to be exported by the entry point applicationinsights-dependencies-js.d.ts
119
115
  //
@@ -133,10 +129,10 @@ export interface IDependenciesPlugin extends IDependencyListenerContainer {
133
129
 
134
130
  // @public (undocumented)
135
131
  export interface IInstrumentationRequirements extends IDependenciesPlugin {
136
- // Warning: (ae-forgotten-export) The symbol "_DYN_INCLUDE_CORRELATION_3" needs to be exported by the entry point applicationinsights-dependencies-js.d.ts
132
+ // Warning: (ae-forgotten-export) The symbol "_DYN_INCLUDE_CORRELATION_0" needs to be exported by the entry point applicationinsights-dependencies-js.d.ts
137
133
  //
138
134
  // (undocumented)
139
- [_DYN_INCLUDE_CORRELATION_3]: (ajaxData: ajaxRecord, input?: Request | string, init?: RequestInit, xhr?: XMLHttpRequestInstrumented) => any;
135
+ [_DYN_INCLUDE_CORRELATION_0]: (ajaxData: ajaxRecord, input?: Request | string, init?: RequestInit, xhr?: XMLHttpRequestInstrumented) => any;
140
136
  }
141
137
 
142
138
  // @public (undocumented)
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights XHR dependencies plugin, 2.8.6
2
+ * Microsoft Application Insights XHR dependencies plugin, 3.0.0-beta.2208-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -14,7 +14,6 @@ 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';
18
17
  import { IPlugin } from '@microsoft/applicationinsights-core-js';
19
18
  import { IProcessTelemetryContext } from '@microsoft/applicationinsights-core-js';
20
19
  import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
@@ -82,29 +81,13 @@ declare namespace ApplicationInsights {
82
81
  endTime: number;
83
82
  xhrMonitoringState: XHRMonitoringState;
84
83
  clientFailure: number;
85
- /**
86
- * The traceId to use for the dependency call
87
- */
88
84
  traceID: string;
89
- /**
90
- * The spanId to use for the dependency call
91
- */
92
85
  spanID: string;
93
- /**
94
- * The traceFlags to use for the dependency call
95
- */
96
86
  traceFlags?: number;
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);
87
+ constructor(traceID: string, spanID: string, logger: IDiagnosticLogger);
102
88
  getAbsoluteUrl(): string;
103
89
  getPathName(): string;
104
90
  CreateTrackItem(ajaxType: string, enableRequestHeaderTracking: boolean, getResponse: () => IAjaxRecordResponse): IDependencyTelemetry;
105
- getPartAProps(): {
106
- [key: string]: any;
107
- };
108
91
  }
109
92
 
110
93
  type DependencyListenerFunction = (dependencyDetails: IDependencyListenerDetails) => void;
@@ -113,7 +96,7 @@ declare namespace ApplicationInsights {
113
96
 
114
97
  const _DYN_HEADER_MAP = "headerMap";
115
98
 
116
- const _DYN_INCLUDE_CORRELATION_3 = "includeCorrelationHeaders";
99
+ const _DYN_INCLUDE_CORRELATION_0 = "includeCorrelationHeaders";
117
100
 
118
101
  interface IAjaxRecordResponse {
119
102
  statusText: string;
@@ -186,13 +169,7 @@ declare namespace ApplicationInsights {
186
169
  }
187
170
 
188
171
  interface IInstrumentationRequirements extends IDependenciesPlugin {
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;
172
+ [_DYN_INCLUDE_CORRELATION_0]: (ajaxData: ajaxRecord, input?: Request | string, init?: RequestInit, xhr?: XMLHttpRequestInstrumented) => any;
196
173
  }
197
174
 
198
175
  class XHRMonitoringState {