@microsoft/applicationinsights-dependencies-js 3.0.0-beta.2210-01 → 3.0.0-beta.2210-02
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 +937 -504
- 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 +3 -80
- package/dist/applicationinsights-dependencies-js.api.md +1 -12
- package/dist/applicationinsights-dependencies-js.d.ts +5 -14
- package/dist/applicationinsights-dependencies-js.js +937 -504
- 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 +5 -14
- package/dist-esm/DependencyInitializer.js +1 -1
- package/dist-esm/DependencyListener.js +1 -1
- package/dist-esm/InternalConstants.js +1 -1
- package/dist-esm/__DynamicConstants.js +11 -13
- package/dist-esm/__DynamicConstants.js.map +1 -1
- package/dist-esm/ajax.js +119 -128
- package/dist-esm/ajax.js.map +1 -1
- package/dist-esm/ajaxRecord.js +2 -3
- 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 +4 -4
- package/src/__DynamicConstants.ts +10 -12
- package/src/ajax.ts +87 -92
- package/types/__DynamicConstants.d.ts +10 -12
- package/types/ajax.d.ts +5 -11
|
@@ -335,74 +335,6 @@
|
|
|
335
335
|
"isOptional": false,
|
|
336
336
|
"name": "addDependencyListener"
|
|
337
337
|
},
|
|
338
|
-
{
|
|
339
|
-
"kind": "Property",
|
|
340
|
-
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!AjaxPlugin.getDefaultConfig:member",
|
|
341
|
-
"docComment": "",
|
|
342
|
-
"excerptTokens": [
|
|
343
|
-
{
|
|
344
|
-
"kind": "Content",
|
|
345
|
-
"text": "static getDefaultConfig: "
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
"kind": "Content",
|
|
349
|
-
"text": "typeof "
|
|
350
|
-
},
|
|
351
|
-
{
|
|
352
|
-
"kind": "Reference",
|
|
353
|
-
"text": "_getDefaultConfig",
|
|
354
|
-
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!~_getDefaultConfig:function"
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
"kind": "Content",
|
|
358
|
-
"text": ";"
|
|
359
|
-
}
|
|
360
|
-
],
|
|
361
|
-
"isReadonly": false,
|
|
362
|
-
"isOptional": false,
|
|
363
|
-
"releaseTag": "Public",
|
|
364
|
-
"name": "getDefaultConfig",
|
|
365
|
-
"propertyTypeTokenRange": {
|
|
366
|
-
"startIndex": 1,
|
|
367
|
-
"endIndex": 3
|
|
368
|
-
},
|
|
369
|
-
"isStatic": true,
|
|
370
|
-
"isProtected": false
|
|
371
|
-
},
|
|
372
|
-
{
|
|
373
|
-
"kind": "Property",
|
|
374
|
-
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!AjaxPlugin.getEmptyConfig:member",
|
|
375
|
-
"docComment": "",
|
|
376
|
-
"excerptTokens": [
|
|
377
|
-
{
|
|
378
|
-
"kind": "Content",
|
|
379
|
-
"text": "static getEmptyConfig: "
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
"kind": "Content",
|
|
383
|
-
"text": "typeof "
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
"kind": "Reference",
|
|
387
|
-
"text": "_getEmptyConfig",
|
|
388
|
-
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!~_getEmptyConfig:function"
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
"kind": "Content",
|
|
392
|
-
"text": ";"
|
|
393
|
-
}
|
|
394
|
-
],
|
|
395
|
-
"isReadonly": false,
|
|
396
|
-
"isOptional": false,
|
|
397
|
-
"releaseTag": "Public",
|
|
398
|
-
"name": "getEmptyConfig",
|
|
399
|
-
"propertyTypeTokenRange": {
|
|
400
|
-
"startIndex": 1,
|
|
401
|
-
"endIndex": 3
|
|
402
|
-
},
|
|
403
|
-
"isStatic": true,
|
|
404
|
-
"isProtected": false
|
|
405
|
-
},
|
|
406
338
|
{
|
|
407
339
|
"kind": "Property",
|
|
408
340
|
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!AjaxPlugin#identifier:member",
|
|
@@ -2722,16 +2654,7 @@
|
|
|
2722
2654
|
"excerptTokens": [
|
|
2723
2655
|
{
|
|
2724
2656
|
"kind": "Content",
|
|
2725
|
-
"text": "
|
|
2726
|
-
},
|
|
2727
|
-
{
|
|
2728
|
-
"kind": "Reference",
|
|
2729
|
-
"text": "_DYN_INCLUDE_CORRELATION_2",
|
|
2730
|
-
"canonicalReference": "@microsoft/applicationinsights-dependencies-js!~_DYN_INCLUDE_CORRELATION_2"
|
|
2731
|
-
},
|
|
2732
|
-
{
|
|
2733
|
-
"kind": "Content",
|
|
2734
|
-
"text": "]: "
|
|
2657
|
+
"text": "includeCorrelationHeaders: "
|
|
2735
2658
|
},
|
|
2736
2659
|
{
|
|
2737
2660
|
"kind": "Content",
|
|
@@ -2783,8 +2706,8 @@
|
|
|
2783
2706
|
"releaseTag": "Public",
|
|
2784
2707
|
"name": "includeCorrelationHeaders",
|
|
2785
2708
|
"propertyTypeTokenRange": {
|
|
2786
|
-
"startIndex":
|
|
2787
|
-
"endIndex":
|
|
2709
|
+
"startIndex": 1,
|
|
2710
|
+
"endIndex": 10
|
|
2788
2711
|
}
|
|
2789
2712
|
}
|
|
2790
2713
|
],
|
|
@@ -8,7 +8,6 @@ import { BaseTelemetryPlugin } from '@microsoft/applicationinsights-core-js';
|
|
|
8
8
|
import { IAppInsightsCore } from '@microsoft/applicationinsights-core-js';
|
|
9
9
|
import { IConfig } from '@microsoft/applicationinsights-common';
|
|
10
10
|
import { IConfiguration } from '@microsoft/applicationinsights-core-js';
|
|
11
|
-
import { ICorrelationConfig } from '@microsoft/applicationinsights-common';
|
|
12
11
|
import { IDependencyTelemetry } from '@microsoft/applicationinsights-common';
|
|
13
12
|
import { IDiagnosticLogger } from '@microsoft/applicationinsights-core-js';
|
|
14
13
|
import { IDistributedTraceContext } from '@microsoft/applicationinsights-core-js';
|
|
@@ -24,14 +23,6 @@ export class AjaxPlugin extends BaseTelemetryPlugin implements IDependenciesPlug
|
|
|
24
23
|
constructor();
|
|
25
24
|
addDependencyInitializer(dependencyInitializer: DependencyInitializerFunction): IDependencyInitializerHandler;
|
|
26
25
|
addDependencyListener(dependencyListener: DependencyListenerFunction): IDependencyListenerHandler;
|
|
27
|
-
// Warning: (ae-forgotten-export) The symbol "_getDefaultConfig" needs to be exported by the entry point applicationinsights-dependencies-js.d.ts
|
|
28
|
-
//
|
|
29
|
-
// (undocumented)
|
|
30
|
-
static getDefaultConfig: typeof _getDefaultConfig;
|
|
31
|
-
// Warning: (ae-forgotten-export) The symbol "_getEmptyConfig" needs to be exported by the entry point applicationinsights-dependencies-js.d.ts
|
|
32
|
-
//
|
|
33
|
-
// (undocumented)
|
|
34
|
-
static getEmptyConfig: typeof _getEmptyConfig;
|
|
35
26
|
// (undocumented)
|
|
36
27
|
static identifier: string;
|
|
37
28
|
// (undocumented)
|
|
@@ -187,10 +178,8 @@ export interface IDependencyListenerHandler extends IDependencyHandler {
|
|
|
187
178
|
|
|
188
179
|
// @public (undocumented)
|
|
189
180
|
export interface IInstrumentationRequirements extends IDependenciesPlugin {
|
|
190
|
-
// Warning: (ae-forgotten-export) The symbol "_DYN_INCLUDE_CORRELATION_2" needs to be exported by the entry point applicationinsights-dependencies-js.d.ts
|
|
191
|
-
//
|
|
192
181
|
// (undocumented)
|
|
193
|
-
|
|
182
|
+
includeCorrelationHeaders: (ajaxData: ajaxRecord, input?: Request | string, init?: RequestInit, xhr?: XMLHttpRequestInstrumented) => any;
|
|
194
183
|
}
|
|
195
184
|
|
|
196
185
|
// @public (undocumented)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights XHR dependencies plugin, 3.0.0-beta.2210-
|
|
2
|
+
* Microsoft Application Insights XHR dependencies plugin, 3.0.0-beta.2210-02
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -11,7 +11,6 @@ declare namespace ApplicationInsights {
|
|
|
11
11
|
import { IAppInsightsCore } from '@microsoft/applicationinsights-core-js';
|
|
12
12
|
import { IConfig } from '@microsoft/applicationinsights-common';
|
|
13
13
|
import { IConfiguration } from '@microsoft/applicationinsights-core-js';
|
|
14
|
-
import { ICorrelationConfig } from '@microsoft/applicationinsights-common';
|
|
15
14
|
import { IDependencyTelemetry } from '@microsoft/applicationinsights-common';
|
|
16
15
|
import { IDiagnosticLogger } from '@microsoft/applicationinsights-core-js';
|
|
17
16
|
import { IDistributedTraceContext } from '@microsoft/applicationinsights-core-js';
|
|
@@ -22,8 +21,6 @@ declare namespace ApplicationInsights {
|
|
|
22
21
|
|
|
23
22
|
class AjaxPlugin extends BaseTelemetryPlugin implements IDependenciesPlugin, IInstrumentationRequirements, IDependencyListenerContainer {
|
|
24
23
|
static identifier: string;
|
|
25
|
-
static getDefaultConfig: typeof _getDefaultConfig;
|
|
26
|
-
static getEmptyConfig: typeof _getEmptyConfig;
|
|
27
24
|
identifier: string;
|
|
28
25
|
priority: number;
|
|
29
26
|
constructor();
|
|
@@ -31,7 +28,7 @@ declare namespace ApplicationInsights {
|
|
|
31
28
|
processTelemetry(item: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
|
|
32
29
|
/**
|
|
33
30
|
* Logs dependency call
|
|
34
|
-
* @param dependencyData dependency data object
|
|
31
|
+
* @param dependencyData - dependency data object
|
|
35
32
|
*/
|
|
36
33
|
trackDependencyData(dependency: IDependencyTelemetry, properties?: {
|
|
37
34
|
[key: string]: any;
|
|
@@ -57,7 +54,7 @@ declare namespace ApplicationInsights {
|
|
|
57
54
|
* Protected function to allow sub classes the chance to add additional properties to the dependency event
|
|
58
55
|
* before it's sent. This function calls track, so sub-classes must call this function after they have
|
|
59
56
|
* populated their properties.
|
|
60
|
-
* @param dependencyData dependency data object
|
|
57
|
+
* @param dependencyData - dependency data object
|
|
61
58
|
*/
|
|
62
59
|
protected trackDependencyDataInternal(dependency: IDependencyTelemetry, properties?: {
|
|
63
60
|
[key: string]: any;
|
|
@@ -137,12 +134,6 @@ declare namespace ApplicationInsights {
|
|
|
137
134
|
|
|
138
135
|
const _DYN_HEADER_MAP = "headerMap";
|
|
139
136
|
|
|
140
|
-
const _DYN_INCLUDE_CORRELATION_2 = "includeCorrelationHeaders";
|
|
141
|
-
|
|
142
|
-
function _getDefaultConfig(): ICorrelationConfig;
|
|
143
|
-
|
|
144
|
-
function _getEmptyConfig(): ICorrelationConfig;
|
|
145
|
-
|
|
146
137
|
interface IAjaxRecordResponse {
|
|
147
138
|
statusText: string;
|
|
148
139
|
[_DYN_HEADER_MAP]: Object;
|
|
@@ -155,7 +146,7 @@ declare namespace ApplicationInsights {
|
|
|
155
146
|
interface IDependenciesPlugin extends IDependencyListenerContainer {
|
|
156
147
|
/**
|
|
157
148
|
* Logs dependency call
|
|
158
|
-
* @param dependencyData dependency data object
|
|
149
|
+
* @param dependencyData - dependency data object
|
|
159
150
|
*/
|
|
160
151
|
trackDependencyData(dependency: IDependencyTelemetry): void;
|
|
161
152
|
}
|
|
@@ -251,7 +242,7 @@ declare namespace ApplicationInsights {
|
|
|
251
242
|
}
|
|
252
243
|
|
|
253
244
|
interface IInstrumentationRequirements extends IDependenciesPlugin {
|
|
254
|
-
|
|
245
|
+
includeCorrelationHeaders: (ajaxData: ajaxRecord, input?: Request | string, init?: RequestInit, xhr?: XMLHttpRequestInstrumented) => any;
|
|
255
246
|
}
|
|
256
247
|
|
|
257
248
|
interface ITraceCtx {
|