@microsoft/applicationinsights-web 2.8.0-beta.2202-07 → 2.8.0-beta.2203-03
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/README.md +1 -0
- package/browser/{ai.2.8.0-beta.2202-07.cjs.js → ai.2.8.0-beta.2203-03.cjs.js} +1069 -522
- package/browser/ai.2.8.0-beta.2203-03.cjs.js.map +1 -0
- package/browser/ai.2.8.0-beta.2203-03.cjs.min.js +6 -0
- package/browser/ai.2.8.0-beta.2203-03.cjs.min.js.map +1 -0
- package/browser/{ai.2.8.0-beta.2202-07.gbl.js → ai.2.8.0-beta.2203-03.gbl.js} +1069 -522
- package/browser/ai.2.8.0-beta.2203-03.gbl.js.map +1 -0
- package/browser/ai.2.8.0-beta.2203-03.gbl.min.js +6 -0
- package/browser/ai.2.8.0-beta.2203-03.gbl.min.js.map +1 -0
- package/browser/ai.2.8.0-beta.2203-03.integrity.json +66 -0
- package/browser/{ai.2.8.0-beta.2202-07.js → ai.2.8.0-beta.2203-03.js} +1069 -522
- package/browser/ai.2.8.0-beta.2203-03.js.map +1 -0
- package/browser/ai.2.8.0-beta.2203-03.min.js +6 -0
- package/browser/ai.2.8.0-beta.2203-03.min.js.map +1 -0
- package/browser/ai.2.cjs.js +1068 -521
- package/browser/ai.2.cjs.js.map +1 -1
- package/browser/ai.2.cjs.min.js +2 -2
- package/browser/ai.2.cjs.min.js.map +1 -1
- package/browser/ai.2.gbl.js +1068 -521
- package/browser/ai.2.gbl.js.map +1 -1
- package/browser/ai.2.gbl.min.js +2 -2
- package/browser/ai.2.gbl.min.js.map +1 -1
- package/browser/ai.2.js +1068 -521
- package/browser/ai.2.js.map +1 -1
- package/browser/ai.2.min.js +2 -2
- package/browser/ai.2.min.js.map +1 -1
- package/dist/applicationinsights-web.api.json +925 -660
- package/dist/applicationinsights-web.api.md +53 -32
- package/dist/applicationinsights-web.d.ts +358 -93
- package/dist/applicationinsights-web.js +1134 -585
- package/dist/applicationinsights-web.js.map +1 -1
- package/dist/applicationinsights-web.min.js +2 -2
- package/dist/applicationinsights-web.min.js.map +1 -1
- package/dist/applicationinsights-web.rollup.d.ts +358 -93
- package/dist-esm/ApplicationInsightsContainer.js +1 -1
- package/dist-esm/ApplicationInsightsDeprecated.js +1 -1
- package/dist-esm/Init.js +1 -1
- package/dist-esm/Initialization.js +1 -1
- package/dist-esm/applicationinsights-web.js +1 -1
- package/package.json +7 -7
- package/types/Initialization.d.ts +6 -2
- package/browser/ai.2.8.0-beta.2202-07.cjs.js.map +0 -1
- package/browser/ai.2.8.0-beta.2202-07.cjs.min.js +0 -6
- package/browser/ai.2.8.0-beta.2202-07.cjs.min.js.map +0 -1
- package/browser/ai.2.8.0-beta.2202-07.gbl.js.map +0 -1
- package/browser/ai.2.8.0-beta.2202-07.gbl.min.js +0 -6
- package/browser/ai.2.8.0-beta.2202-07.gbl.min.js.map +0 -1
- package/browser/ai.2.8.0-beta.2202-07.integrity.json +0 -66
- package/browser/ai.2.8.0-beta.2202-07.js.map +0 -1
- package/browser/ai.2.8.0-beta.2202-07.min.js +0 -6
- package/browser/ai.2.8.0-beta.2202-07.min.js.map +0 -1
|
@@ -157,15 +157,20 @@ export class ApplicationInsightsContainer {
|
|
|
157
157
|
export class BaseCore implements IAppInsightsCore {
|
|
158
158
|
constructor();
|
|
159
159
|
addNotificationListener(listener: INotificationListener): void;
|
|
160
|
+
// (undocumented)
|
|
161
|
+
addPlugin<T extends IPlugin = ITelemetryPlugin>(plugin: T, replaceExisting: boolean, doAsync: boolean, addCb?: (added?: boolean) => void): void;
|
|
160
162
|
// Warning: (ae-forgotten-export) The symbol "TelemetryInitializerFunction" needs to be exported by the entry point applicationinsights-web.d.ts
|
|
161
163
|
// Warning: (ae-forgotten-export) The symbol "ITelemetryInitializerHandler" needs to be exported by the entry point applicationinsights-web.d.ts
|
|
162
164
|
addTelemetryInitializer(telemetryInitializer: TelemetryInitializerFunction): ITelemetryInitializerHandler | void;
|
|
165
|
+
// Warning: (ae-forgotten-export) The symbol "UnloadHandler" needs to be exported by the entry point applicationinsights-web.d.ts
|
|
166
|
+
addUnloadCb(handler: UnloadHandler): void;
|
|
163
167
|
// (undocumented)
|
|
164
168
|
config: IConfiguration;
|
|
165
169
|
// (undocumented)
|
|
166
170
|
static defaultConfig: IConfiguration;
|
|
167
171
|
// (undocumented)
|
|
168
172
|
eventCnt(): number;
|
|
173
|
+
evtNamespace(): string;
|
|
169
174
|
// (undocumented)
|
|
170
175
|
_extensions: IPlugin[];
|
|
171
176
|
getCookieMgr(): ICookieMgr;
|
|
@@ -199,6 +204,7 @@ export class BaseCore implements IAppInsightsCore {
|
|
|
199
204
|
stopPollingInternalLogs(): void;
|
|
200
205
|
// (undocumented)
|
|
201
206
|
track(telemetryItem: ITelemetryItem): void;
|
|
207
|
+
unload(isAsync?: boolean, unloadComplete?: () => void): void;
|
|
202
208
|
}
|
|
203
209
|
|
|
204
210
|
// @public
|
|
@@ -206,8 +212,12 @@ export abstract class BaseTelemetryPlugin implements ITelemetryPlugin {
|
|
|
206
212
|
constructor();
|
|
207
213
|
// Warning: (ae-forgotten-export) The symbol "IInstrumentHook" needs to be exported by the entry point applicationinsights-web.d.ts
|
|
208
214
|
protected _addHook(hooks: IInstrumentHook | IInstrumentHook[]): void;
|
|
215
|
+
protected _addUnloadCb(handler: UnloadHandler): void;
|
|
209
216
|
core: IAppInsightsCore;
|
|
210
217
|
diagLog: (itemCtx?: IProcessTelemetryContext) => IDiagnosticLogger;
|
|
218
|
+
// Warning: (ae-forgotten-export) The symbol "IProcessTelemetryUnloadContext" needs to be exported by the entry point applicationinsights-web.d.ts
|
|
219
|
+
// Warning: (ae-forgotten-export) The symbol "ITelemetryUnloadState" needs to be exported by the entry point applicationinsights-web.d.ts
|
|
220
|
+
protected _doTeardown?: (unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState, asyncCallback?: () => void) => void | boolean;
|
|
211
221
|
protected _getTelCtx: (currentCtx?: IProcessTelemetryContext) => IProcessTelemetryContext;
|
|
212
222
|
// (undocumented)
|
|
213
223
|
identifier: string;
|
|
@@ -221,6 +231,7 @@ export abstract class BaseTelemetryPlugin implements ITelemetryPlugin {
|
|
|
221
231
|
abstract processTelemetry(env: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
|
|
222
232
|
protected setInitialized: (isInitialized: boolean) => void;
|
|
223
233
|
setNextPlugin: (next: ITelemetryPlugin | ITelemetryPluginChain) => void;
|
|
234
|
+
teardown(unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState): void | boolean;
|
|
224
235
|
// (undocumented)
|
|
225
236
|
version?: string;
|
|
226
237
|
}
|
|
@@ -254,8 +265,6 @@ export class DependenciesPlugin extends BaseTelemetryPlugin implements IDependen
|
|
|
254
265
|
priority: number;
|
|
255
266
|
// (undocumented)
|
|
256
267
|
processTelemetry(item: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
|
|
257
|
-
// (undocumented)
|
|
258
|
-
teardown(): void;
|
|
259
268
|
trackDependencyData(dependency: IDependencyTelemetry, properties?: {
|
|
260
269
|
[key: string]: any;
|
|
261
270
|
}): void;
|
|
@@ -267,11 +276,16 @@ export class DependenciesPlugin extends BaseTelemetryPlugin implements IDependen
|
|
|
267
276
|
}
|
|
268
277
|
|
|
269
278
|
// @public (undocumented)
|
|
270
|
-
export
|
|
271
|
-
AI
|
|
272
|
-
AI_AND_W3C
|
|
273
|
-
W3C
|
|
274
|
-
}
|
|
279
|
+
export const DistributedTracingModes: {
|
|
280
|
+
AI: number;
|
|
281
|
+
AI_AND_W3C: number;
|
|
282
|
+
W3C: number;
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
// Warning: (ae-forgotten-export) The symbol "eDistributedTracingModes" needs to be exported by the entry point applicationinsights-web.d.ts
|
|
286
|
+
//
|
|
287
|
+
// @public (undocumented)
|
|
288
|
+
export type DistributedTracingModes = number | eDistributedTracingModes;
|
|
275
289
|
|
|
276
290
|
// @public
|
|
277
291
|
export function doPerf<T>(mgrSource: IPerfManagerProvider | IPerfManager, getSource: () => string, func: (perfEvt?: IPerfEvent) => T, details?: () => any, isAsync?: boolean): T;
|
|
@@ -383,9 +397,12 @@ export interface IAppInsights {
|
|
|
383
397
|
// @public (undocumented)
|
|
384
398
|
export interface IAppInsightsCore extends IPerfManagerProvider {
|
|
385
399
|
addNotificationListener?(listener: INotificationListener): void;
|
|
400
|
+
addPlugin<T extends IPlugin = ITelemetryPlugin>(plugin: T, replaceExisting: boolean, doAsync: boolean, addCb?: (added?: boolean) => void): void;
|
|
386
401
|
addTelemetryInitializer(telemetryInitializer: TelemetryInitializerFunction): ITelemetryInitializerHandler | void;
|
|
402
|
+
addUnloadCb(handler: UnloadHandler): void;
|
|
387
403
|
// (undocumented)
|
|
388
404
|
config: IConfiguration;
|
|
405
|
+
evtNamespace(): string;
|
|
389
406
|
getCookieMgr(): ICookieMgr;
|
|
390
407
|
getNotifyMgr(): INotificationManager;
|
|
391
408
|
getPlugin<T extends IPlugin = IPlugin>(pluginIdentifier: string): ILoadedPlugin<T>;
|
|
@@ -405,6 +422,7 @@ export interface IAppInsightsCore extends IPerfManagerProvider {
|
|
|
405
422
|
stopPollingInternalLogs?(): void;
|
|
406
423
|
// (undocumented)
|
|
407
424
|
track(telemetryItem: ITelemetryItem): void;
|
|
425
|
+
unload(isAsync?: boolean, unloadComplete?: () => void): void;
|
|
408
426
|
}
|
|
409
427
|
|
|
410
428
|
// @public (undocumented)
|
|
@@ -604,7 +622,7 @@ export interface IConfiguration {
|
|
|
604
622
|
|
|
605
623
|
// @public @deprecated
|
|
606
624
|
export interface ICoreUtils {
|
|
607
|
-
addEventHandler: (eventName: string, callback: any) => boolean;
|
|
625
|
+
addEventHandler: (eventName: string, callback: any, evtNamespace?: string | string[]) => boolean;
|
|
608
626
|
arrForEach: <T>(arr: T[], callbackfn: (value: T, index?: number, array?: T[]) => void | number, thisArg?: any) => void;
|
|
609
627
|
arrIndexOf: <T>(arr: T[], searchElement: T, fromIndex?: number) => number;
|
|
610
628
|
arrMap: <T, R>(arr: T[], callbackfn: (value: T, index?: number, array?: T[]) => R, thisArg?: any) => R[];
|
|
@@ -848,8 +866,10 @@ export const _InternalMessageId: {
|
|
|
848
866
|
InMemoryStorageBufferFull: number;
|
|
849
867
|
};
|
|
850
868
|
|
|
869
|
+
// Warning: (ae-forgotten-export) The symbol "_eInternalMessageId" needs to be exported by the entry point applicationinsights-web.d.ts
|
|
870
|
+
//
|
|
851
871
|
// @public (undocumented)
|
|
852
|
-
export type _InternalMessageId = number |
|
|
872
|
+
export type _InternalMessageId = number | _eInternalMessageId;
|
|
853
873
|
|
|
854
874
|
// @public (undocumented)
|
|
855
875
|
export interface IPageViewPerformanceTelemetry extends IPartC {
|
|
@@ -912,25 +932,16 @@ export interface IPlugin {
|
|
|
912
932
|
readonly identifier: string;
|
|
913
933
|
initialize: (config: IConfiguration, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain) => void;
|
|
914
934
|
isInitialized?: () => boolean;
|
|
915
|
-
teardown?: () => void;
|
|
935
|
+
teardown?: (unloadCtx: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState) => void | boolean;
|
|
916
936
|
readonly version?: string;
|
|
917
937
|
}
|
|
918
938
|
|
|
939
|
+
// Warning: (ae-forgotten-export) The symbol "IBaseProcessingContext" needs to be exported by the entry point applicationinsights-web.d.ts
|
|
940
|
+
//
|
|
919
941
|
// @public
|
|
920
|
-
export interface IProcessTelemetryContext {
|
|
921
|
-
core: () => IAppInsightsCore;
|
|
942
|
+
export interface IProcessTelemetryContext extends IBaseProcessingContext {
|
|
922
943
|
createNew: (plugins?: IPlugin[] | ITelemetryPluginChain, startAt?: IPlugin) => IProcessTelemetryContext;
|
|
923
|
-
|
|
924
|
-
getCfg: () => IConfiguration;
|
|
925
|
-
getConfig: (identifier: string, field: string, defaultValue?: number | string | boolean | string[] | RegExp[] | Function) => number | string | boolean | string[] | RegExp[] | Function;
|
|
926
|
-
// Warning: (ae-forgotten-export) The symbol "GetExtCfgMergeType" needs to be exported by the entry point applicationinsights-web.d.ts
|
|
927
|
-
getExtCfg: <T>(identifier: string, defaultValue?: T | any, mergeDefault?: GetExtCfgMergeType) => T;
|
|
928
|
-
getNext: () => ITelemetryPluginChain;
|
|
929
|
-
hasNext: () => boolean;
|
|
930
|
-
iterate: <T extends ITelemetryPlugin = ITelemetryPlugin>(callback: (plugin: T) => void) => void;
|
|
931
|
-
onComplete: (onComplete: () => void) => void;
|
|
932
|
-
processNext: (env: ITelemetryItem) => void;
|
|
933
|
-
setNext: (nextCtx: ITelemetryPluginChain) => void;
|
|
944
|
+
processNext: (env: ITelemetryItem) => boolean | void;
|
|
934
945
|
}
|
|
935
946
|
|
|
936
947
|
// @public (undocumented)
|
|
@@ -964,18 +975,19 @@ export interface ITelemetryItem {
|
|
|
964
975
|
ver?: string;
|
|
965
976
|
}
|
|
966
977
|
|
|
978
|
+
// Warning: (ae-forgotten-export) The symbol "ITelemetryProcessor" needs to be exported by the entry point applicationinsights-web.d.ts
|
|
979
|
+
//
|
|
967
980
|
// @public
|
|
968
|
-
export interface ITelemetryPlugin extends IPlugin {
|
|
981
|
+
export interface ITelemetryPlugin extends ITelemetryProcessor, IPlugin {
|
|
969
982
|
readonly priority: number;
|
|
970
|
-
processTelemetry: (env: ITelemetryItem, itemCtx?: IProcessTelemetryContext) => void;
|
|
971
983
|
setNextPlugin?: (next: ITelemetryPlugin | ITelemetryPluginChain) => void;
|
|
972
984
|
}
|
|
973
985
|
|
|
974
986
|
// @public
|
|
975
|
-
export interface ITelemetryPluginChain {
|
|
987
|
+
export interface ITelemetryPluginChain extends ITelemetryProcessor {
|
|
976
988
|
getNext: () => ITelemetryPluginChain;
|
|
977
989
|
getPlugin: () => ITelemetryPlugin;
|
|
978
|
-
|
|
990
|
+
unload?: (unloadCtx: IProcessTelemetryUnloadContext, unloadState: ITelemetryUnloadState) => void;
|
|
979
991
|
}
|
|
980
992
|
|
|
981
993
|
// @public (undocumented)
|
|
@@ -1053,10 +1065,15 @@ export interface IUtil {
|
|
|
1053
1065
|
}
|
|
1054
1066
|
|
|
1055
1067
|
// @public (undocumented)
|
|
1056
|
-
export
|
|
1057
|
-
CRITICAL
|
|
1058
|
-
WARNING
|
|
1059
|
-
}
|
|
1068
|
+
export const LoggingSeverity: {
|
|
1069
|
+
CRITICAL: number;
|
|
1070
|
+
WARNING: number;
|
|
1071
|
+
};
|
|
1072
|
+
|
|
1073
|
+
// Warning: (ae-forgotten-export) The symbol "eLoggingSeverity" needs to be exported by the entry point applicationinsights-web.d.ts
|
|
1074
|
+
//
|
|
1075
|
+
// @public (undocumented)
|
|
1076
|
+
export type LoggingSeverity = number | eLoggingSeverity;
|
|
1060
1077
|
|
|
1061
1078
|
// Warning: (ae-forgotten-export) The symbol "MetricData" needs to be exported by the entry point applicationinsights-web.d.ts
|
|
1062
1079
|
//
|
|
@@ -1361,7 +1378,11 @@ export const Telemetry: {
|
|
|
1361
1378
|
SessionExt: string;
|
|
1362
1379
|
SDKExt: string;
|
|
1363
1380
|
};
|
|
1364
|
-
DistributedTracingModes:
|
|
1381
|
+
DistributedTracingModes: {
|
|
1382
|
+
AI: number;
|
|
1383
|
+
AI_AND_W3C: number;
|
|
1384
|
+
W3C: number;
|
|
1385
|
+
};
|
|
1365
1386
|
};
|
|
1366
1387
|
|
|
1367
1388
|
// Warning: (ae-forgotten-export) The symbol "MessageData" needs to be exported by the entry point applicationinsights-web.d.ts
|