@microsoft/applicationinsights-web 2.8.0-beta.2203-03 → 2.8.0-beta.2203-06
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/{ai.2.8.0-beta.2203-03.cjs.js → ai.2.8.0-beta.2203-06.cjs.js} +639 -356
- package/browser/ai.2.8.0-beta.2203-06.cjs.js.map +1 -0
- package/browser/ai.2.8.0-beta.2203-06.cjs.min.js +6 -0
- package/browser/ai.2.8.0-beta.2203-06.cjs.min.js.map +1 -0
- package/browser/{ai.2.8.0-beta.2203-03.gbl.js → ai.2.8.0-beta.2203-06.gbl.js} +639 -356
- package/browser/ai.2.8.0-beta.2203-06.gbl.js.map +1 -0
- package/browser/ai.2.8.0-beta.2203-06.gbl.min.js +6 -0
- package/browser/ai.2.8.0-beta.2203-06.gbl.min.js.map +1 -0
- package/browser/ai.2.8.0-beta.2203-06.integrity.json +66 -0
- package/browser/{ai.2.8.0-beta.2203-03.js → ai.2.8.0-beta.2203-06.js} +639 -356
- package/browser/ai.2.8.0-beta.2203-06.js.map +1 -0
- package/browser/ai.2.8.0-beta.2203-06.min.js +6 -0
- package/browser/ai.2.8.0-beta.2203-06.min.js.map +1 -0
- package/browser/ai.2.cjs.js +638 -355
- 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 +638 -355
- 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 +638 -355
- 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 +227 -164
- package/dist/applicationinsights-web.api.md +14 -20
- package/dist/applicationinsights-web.d.ts +108 -106
- package/dist/applicationinsights-web.js +639 -356
- 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 +108 -106
- 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 +1 -1
- package/browser/ai.2.8.0-beta.2203-03.cjs.js.map +0 -1
- package/browser/ai.2.8.0-beta.2203-03.cjs.min.js +0 -6
- package/browser/ai.2.8.0-beta.2203-03.cjs.min.js.map +0 -1
- package/browser/ai.2.8.0-beta.2203-03.gbl.js.map +0 -1
- package/browser/ai.2.8.0-beta.2203-03.gbl.min.js +0 -6
- package/browser/ai.2.8.0-beta.2203-03.gbl.min.js.map +0 -1
- package/browser/ai.2.8.0-beta.2203-03.integrity.json +0 -66
- package/browser/ai.2.8.0-beta.2203-03.js.map +0 -1
- package/browser/ai.2.8.0-beta.2203-03.min.js +0 -6
- package/browser/ai.2.8.0-beta.2203-03.min.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft.ApplicationInsights, 2.8.0-beta.2203-
|
|
2
|
+
* Microsoft.ApplicationInsights, 2.8.0-beta.2203-06
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -54,16 +54,12 @@ export declare class AppInsightsCore extends BaseCore implements IAppInsightsCor
|
|
|
54
54
|
|
|
55
55
|
export declare class ApplicationAnalytics extends BaseTelemetryPlugin implements IAppInsights, IAppInsightsInternal {
|
|
56
56
|
static Version: string;
|
|
57
|
-
static getDefaultConfig
|
|
57
|
+
static getDefaultConfig: typeof _getDefaultConfig;
|
|
58
58
|
identifier: string;
|
|
59
59
|
priority: number;
|
|
60
60
|
config: IConfig;
|
|
61
61
|
queue: Array<() => void>;
|
|
62
62
|
autoRoutePVDelay: number;
|
|
63
|
-
protected _telemetryInitializers: Array<(envelope: ITelemetryItem) => boolean | void>;
|
|
64
|
-
protected _pageViewManager: PageViewManager;
|
|
65
|
-
protected _pageViewPerformanceManager: PageViewPerformanceManager;
|
|
66
|
-
protected _pageVisitTimeManager: PageVisitTimeManager;
|
|
67
63
|
constructor();
|
|
68
64
|
/**
|
|
69
65
|
* Get the current cookie manager for this instance
|
|
@@ -187,7 +183,7 @@ export declare class ApplicationAnalytics extends BaseTelemetryPlugin implements
|
|
|
187
183
|
* @memberof ApplicationInsights
|
|
188
184
|
*/
|
|
189
185
|
_onerror(exception: IAutoExceptionTelemetry): void;
|
|
190
|
-
addTelemetryInitializer(telemetryInitializer: (item: ITelemetryItem) => boolean | void): void;
|
|
186
|
+
addTelemetryInitializer(telemetryInitializer: (item: ITelemetryItem) => boolean | void): ITelemetryInitializerHandler | void;
|
|
191
187
|
initialize(config: IConfiguration & IConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain): void;
|
|
192
188
|
}
|
|
193
189
|
|
|
@@ -298,7 +294,7 @@ export declare class ApplicationInsights implements IApplicationInsights {
|
|
|
298
294
|
}, measurements?: {
|
|
299
295
|
[key: string]: number;
|
|
300
296
|
}): void;
|
|
301
|
-
addTelemetryInitializer(telemetryInitializer: (item: ITelemetryItem) => boolean | void): void;
|
|
297
|
+
addTelemetryInitializer(telemetryInitializer: (item: ITelemetryItem) => boolean | void): void | ITelemetryInitializerHandler;
|
|
302
298
|
/**
|
|
303
299
|
* Set the authenticated user id and the account id. Used for identifying a specific signed-in user. Parameters must not contain whitespace or ,;=|
|
|
304
300
|
*
|
|
@@ -431,7 +427,7 @@ export declare class BaseCore implements IAppInsightsCore {
|
|
|
431
427
|
* This is due to possible unexpected side effects caused by plugins not supporting unload / teardown, unable
|
|
432
428
|
* to successfully remove any global references or they may just be completing the unload process asynchronously.
|
|
433
429
|
*/
|
|
434
|
-
unload(isAsync?: boolean, unloadComplete?: () => void): void;
|
|
430
|
+
unload(isAsync?: boolean, unloadComplete?: (unloadState: ITelemetryUnloadState) => void, cbTimeout?: number): void;
|
|
435
431
|
getPlugin<T extends IPlugin = IPlugin>(pluginIdentifier: string): ILoadedPlugin<T>;
|
|
436
432
|
addPlugin<T extends IPlugin = ITelemetryPlugin>(plugin: T, replaceExisting: boolean, doAsync: boolean, addCb?: (added?: boolean) => void): void;
|
|
437
433
|
/**
|
|
@@ -444,6 +440,13 @@ export declare class BaseCore implements IAppInsightsCore {
|
|
|
444
440
|
*/
|
|
445
441
|
addUnloadCb(handler: UnloadHandler): void;
|
|
446
442
|
protected releaseQueue(): void;
|
|
443
|
+
/**
|
|
444
|
+
* Hook for Core extensions to allow them to update their own configuration before updating all of the plugins.
|
|
445
|
+
* @param updateCtx - The plugin update context
|
|
446
|
+
* @param updateState - The Update State
|
|
447
|
+
* @returns boolean - True means the extension class will call updateState otherwise the Core will
|
|
448
|
+
*/
|
|
449
|
+
protected _updateHook?(updateCtx: IProcessTelemetryUpdateContext, updateState: ITelemetryUpdateState): void | boolean;
|
|
447
450
|
}
|
|
448
451
|
|
|
449
452
|
/**
|
|
@@ -500,6 +503,14 @@ export declare abstract class BaseTelemetryPlugin implements ITelemetryPlugin {
|
|
|
500
503
|
* @returns boolean - true if the plugin has or will call asyncCallback, this allows the plugin to perform any asynchronous operations.
|
|
501
504
|
*/
|
|
502
505
|
protected _doTeardown?: (unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState, asyncCallback?: () => void) => void | boolean;
|
|
506
|
+
/**
|
|
507
|
+
* Extension hook to allow implementations to perform some additional update operations before the BaseTelemetryPlugin finishes it's removal
|
|
508
|
+
* @param updateCtx - This is the context that should be used during updating.
|
|
509
|
+
* @param updateState - The details / state of the update process, it holds details like the current and previous configuration.
|
|
510
|
+
* @param asyncCallback - An optional callback that the plugin must call if it returns true to inform the caller that it has completed any async update operations.
|
|
511
|
+
* @returns boolean - true if the plugin has or will call asyncCallback, this allows the plugin to perform any asynchronous operations.
|
|
512
|
+
*/
|
|
513
|
+
protected _doUpdate?: (updateCtx?: IProcessTelemetryUpdateContext, updateState?: ITelemetryUpdateState, asyncCallback?: () => void) => void | boolean;
|
|
503
514
|
constructor();
|
|
504
515
|
initialize(config: IConfiguration, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain): void;
|
|
505
516
|
/**
|
|
@@ -512,6 +523,13 @@ export declare abstract class BaseTelemetryPlugin implements ITelemetryPlugin {
|
|
|
512
523
|
*/
|
|
513
524
|
teardown(unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState): void | boolean;
|
|
514
525
|
abstract processTelemetry(env: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
|
|
526
|
+
/**
|
|
527
|
+
* The the plugin should re-evaluate configuration and update any cached configuration settings.
|
|
528
|
+
* @param updateCtx - This is the context that should be used during updating.
|
|
529
|
+
* @param updateState - The details / state of the update process, it holds details like the current and previous configuration.
|
|
530
|
+
* @returns boolean - true if the plugin has or will call updateCtx.processNext(), this allows the plugin to perform any asynchronous operations.
|
|
531
|
+
*/
|
|
532
|
+
update(updateCtx: IProcessTelemetryUpdateContext, updateState: ITelemetryUpdateState): void | boolean;
|
|
515
533
|
/**
|
|
516
534
|
* Add an unload handler that will be called when the SDK is being unloaded
|
|
517
535
|
* @param handler - the handler
|
|
@@ -983,6 +1001,8 @@ declare const enum FieldType {
|
|
|
983
1001
|
*/
|
|
984
1002
|
declare function _formatErrorCode(errorObj: any): any;
|
|
985
1003
|
|
|
1004
|
+
declare function _getDefaultConfig(config?: IConfig): IConfig;
|
|
1005
|
+
|
|
986
1006
|
declare const enum GetExtCfgMergeType {
|
|
987
1007
|
None = 0,
|
|
988
1008
|
MergeDefaultOnly = 1,
|
|
@@ -2725,6 +2745,11 @@ declare interface IInstrumentHook {
|
|
|
2725
2745
|
* You must always supply the error callback
|
|
2726
2746
|
*/
|
|
2727
2747
|
declare interface IInstrumentHooksCallbacks {
|
|
2748
|
+
/**
|
|
2749
|
+
* [Optional] Namespace details (same as the namespace used for events), useful for debugging and testing to
|
|
2750
|
+
* identify the source of the instrumented hooks
|
|
2751
|
+
*/
|
|
2752
|
+
ns?: string | string[];
|
|
2728
2753
|
/**
|
|
2729
2754
|
* The hook callback to call before the original function is called
|
|
2730
2755
|
*/
|
|
@@ -3305,8 +3330,8 @@ export declare interface IProcessTelemetryContext extends IBaseProcessingContext
|
|
|
3305
3330
|
}
|
|
3306
3331
|
|
|
3307
3332
|
/**
|
|
3308
|
-
* The current context for the current call to
|
|
3309
|
-
*
|
|
3333
|
+
* The current context for the current call to teardown() implementations, used to support when plugins are being removed
|
|
3334
|
+
* or the SDK is being unloaded.
|
|
3310
3335
|
*/
|
|
3311
3336
|
declare interface IProcessTelemetryUnloadContext extends IBaseProcessingContext {
|
|
3312
3337
|
/**
|
|
@@ -3325,6 +3350,27 @@ declare interface IProcessTelemetryUnloadContext extends IBaseProcessingContext
|
|
|
3325
3350
|
createNew: (plugins?: IPlugin[] | ITelemetryPluginChain, startAt?: IPlugin) => IProcessTelemetryUnloadContext;
|
|
3326
3351
|
}
|
|
3327
3352
|
|
|
3353
|
+
/**
|
|
3354
|
+
* The current context for the current call to the plugin update() implementations, used to support the notifications
|
|
3355
|
+
* for when plugins are added, removed or the configuration was changed.
|
|
3356
|
+
*/
|
|
3357
|
+
declare interface IProcessTelemetryUpdateContext extends IBaseProcessingContext {
|
|
3358
|
+
/**
|
|
3359
|
+
* This Plugin has finished unloading, so unload the next one
|
|
3360
|
+
* @param updateState - The update State
|
|
3361
|
+
* @returns boolean (true) if there is no more plugins to process otherwise false or undefined (void)
|
|
3362
|
+
*/
|
|
3363
|
+
processNext: (updateState: ITelemetryUpdateState) => boolean | void;
|
|
3364
|
+
/**
|
|
3365
|
+
* Create a new context using the core and config from the current instance, returns a new instance of the same type
|
|
3366
|
+
* @param plugins - The execution order to process the plugins, if null or not supplied
|
|
3367
|
+
* then the current execution order will be copied.
|
|
3368
|
+
* @param startAt - The plugin to start processing from, if missing from the execution
|
|
3369
|
+
* order then the next plugin will be NOT set.
|
|
3370
|
+
*/
|
|
3371
|
+
createNew: (plugins?: IPlugin[] | ITelemetryPluginChain, startAt?: IPlugin) => IProcessTelemetryUpdateContext;
|
|
3372
|
+
}
|
|
3373
|
+
|
|
3328
3374
|
declare interface IPropertiesPlugin {
|
|
3329
3375
|
readonly context: ITelemetryContext;
|
|
3330
3376
|
}
|
|
@@ -3721,6 +3767,15 @@ declare interface ITelemetryProcessor {
|
|
|
3721
3767
|
* to later plugins (vs appending items to the telemetry item)
|
|
3722
3768
|
*/
|
|
3723
3769
|
processTelemetry: (env: ITelemetryItem, itemCtx?: IProcessTelemetryContext) => void;
|
|
3770
|
+
/**
|
|
3771
|
+
* The the plugin should re-evaluate configuration and update any cached configuration settings or
|
|
3772
|
+
* plugins. If implemented this method will be called whenever a plugin is added or removed and if
|
|
3773
|
+
* the configuration has bee updated.
|
|
3774
|
+
* @param updateCtx - This is the context that should be used during updating.
|
|
3775
|
+
* @param updateState - The details / state of the update process, it holds details like the current and previous configuration.
|
|
3776
|
+
* @returns boolean - true if the plugin has or will call updateCtx.processNext(), this allows the plugin to perform any asynchronous operations.
|
|
3777
|
+
*/
|
|
3778
|
+
update?: (updateCtx: IProcessTelemetryUpdateContext, updateState: ITelemetryUpdateState) => void | boolean;
|
|
3724
3779
|
}
|
|
3725
3780
|
|
|
3726
3781
|
declare interface ITelemetryTrace {
|
|
@@ -3748,6 +3803,27 @@ declare interface ITelemetryUnloadState {
|
|
|
3748
3803
|
flushComplete?: boolean;
|
|
3749
3804
|
}
|
|
3750
3805
|
|
|
3806
|
+
declare interface ITelemetryUpdateState {
|
|
3807
|
+
/**
|
|
3808
|
+
* Identifies the reason for the update notification, this is a bitwise numeric value
|
|
3809
|
+
*/
|
|
3810
|
+
reason: TelemetryUpdateReason;
|
|
3811
|
+
/**
|
|
3812
|
+
* If this is a configuration update this was the previous configuration that was used
|
|
3813
|
+
*/
|
|
3814
|
+
/**
|
|
3815
|
+
* If this is a configuration update is the new configuration that is being used
|
|
3816
|
+
*/
|
|
3817
|
+
/**
|
|
3818
|
+
* This holds a collection of plugins that have been added (if the reason identifies that one or more plugins have been added)
|
|
3819
|
+
*/
|
|
3820
|
+
added?: IPlugin[];
|
|
3821
|
+
/**
|
|
3822
|
+
* This holds a collection of plugins that have been removed (if the reason identifies that one or more plugins have been removed)
|
|
3823
|
+
*/
|
|
3824
|
+
removed?: IPlugin[];
|
|
3825
|
+
}
|
|
3826
|
+
|
|
3751
3827
|
declare interface ITraceState {
|
|
3752
3828
|
}
|
|
3753
3829
|
|
|
@@ -4193,26 +4269,6 @@ declare class PageViewData extends EventData {
|
|
|
4193
4269
|
constructor();
|
|
4194
4270
|
}
|
|
4195
4271
|
|
|
4196
|
-
/**
|
|
4197
|
-
* Class encapsulates sending page views and page view performance telemetry.
|
|
4198
|
-
*/
|
|
4199
|
-
declare class PageViewManager {
|
|
4200
|
-
constructor(appInsights: IAppInsightsInternal, overridePageViewDuration: boolean, core: IAppInsightsCore, pageViewPerformanceManager: PageViewPerformanceManager);
|
|
4201
|
-
/**
|
|
4202
|
-
* Currently supported cases:
|
|
4203
|
-
* 1) (default case) track page view called with default parameters, overridePageViewDuration = false. Page view is sent with page view performance when navigation timing data is available.
|
|
4204
|
-
* a. If navigation timing is not supported then page view is sent right away with undefined duration. Page view performance is not sent.
|
|
4205
|
-
* 2) overridePageViewDuration = true, custom duration provided. Custom duration is used, page view sends right away.
|
|
4206
|
-
* 3) overridePageViewDuration = true, custom duration NOT provided. Page view is sent right away, duration is time spent from page load till now (or undefined if navigation timing is not supported).
|
|
4207
|
-
* 4) overridePageViewDuration = false, custom duration is provided. Page view is sent right away with custom duration.
|
|
4208
|
-
*
|
|
4209
|
-
* In all cases page view performance is sent once (only for the 1st call of trackPageView), or not sent if navigation timing is not supported.
|
|
4210
|
-
*/
|
|
4211
|
-
trackPageView(pageView: IPageViewTelemetry, customProperties?: {
|
|
4212
|
-
[key: string]: any;
|
|
4213
|
-
}): void;
|
|
4214
|
-
}
|
|
4215
|
-
|
|
4216
4272
|
/**
|
|
4217
4273
|
* An instance of PageViewPerf represents: a page view with no performance data, a page view with performance data, or just the performance data of an earlier page request.
|
|
4218
4274
|
*/
|
|
@@ -4290,81 +4346,6 @@ export declare class PageViewPerformance extends PageViewPerfData implements ISe
|
|
|
4290
4346
|
}, cs4BaseData?: IPageViewPerformanceTelemetry);
|
|
4291
4347
|
}
|
|
4292
4348
|
|
|
4293
|
-
/**
|
|
4294
|
-
* Class encapsulates sending page view performance telemetry.
|
|
4295
|
-
*/
|
|
4296
|
-
declare class PageViewPerformanceManager {
|
|
4297
|
-
private _logger;
|
|
4298
|
-
private MAX_DURATION_ALLOWED;
|
|
4299
|
-
constructor(core: IAppInsightsCore);
|
|
4300
|
-
populatePageViewPerformanceEvent(pageViewPerformance: IPageViewPerformanceTelemetryInternal): void;
|
|
4301
|
-
getPerformanceTiming(): PerformanceTiming | null;
|
|
4302
|
-
getPerformanceNavigationTiming(): PerformanceNavigationTiming | null;
|
|
4303
|
-
/**
|
|
4304
|
-
* Returns true is window PerformanceNavigationTiming API is supported, false otherwise.
|
|
4305
|
-
*/
|
|
4306
|
-
isPerformanceNavigationTimingSupported(): boolean;
|
|
4307
|
-
/**
|
|
4308
|
-
* Returns true is window performance timing API is supported, false otherwise.
|
|
4309
|
-
*/
|
|
4310
|
-
isPerformanceTimingSupported(): PerformanceTiming;
|
|
4311
|
-
/**
|
|
4312
|
-
* As page loads different parts of performance timing numbers get set. When all of them are set we can report it.
|
|
4313
|
-
* Returns true if ready, false otherwise.
|
|
4314
|
-
*/
|
|
4315
|
-
isPerformanceTimingDataReady(): boolean;
|
|
4316
|
-
/**
|
|
4317
|
-
* This method tells if given durations should be excluded from collection.
|
|
4318
|
-
*/
|
|
4319
|
-
shouldCollectDuration(...durations: number[]): boolean;
|
|
4320
|
-
}
|
|
4321
|
-
|
|
4322
|
-
declare class PageVisitData {
|
|
4323
|
-
pageName: string;
|
|
4324
|
-
pageUrl: string;
|
|
4325
|
-
pageVisitStartTime: number;
|
|
4326
|
-
pageVisitTime: number;
|
|
4327
|
-
constructor(pageName: string, pageUrl: string);
|
|
4328
|
-
}
|
|
4329
|
-
|
|
4330
|
-
/**
|
|
4331
|
-
* Used to track page visit durations
|
|
4332
|
-
*/
|
|
4333
|
-
declare class PageVisitTimeManager {
|
|
4334
|
-
private prevPageVisitDataKeyName;
|
|
4335
|
-
private pageVisitTimeTrackingHandler;
|
|
4336
|
-
private _logger;
|
|
4337
|
-
/**
|
|
4338
|
-
* Creates a new instance of PageVisitTimeManager
|
|
4339
|
-
* @param pageVisitTimeTrackingHandler Delegate that will be called to send telemetry data to AI (when trackPreviousPageVisit is called)
|
|
4340
|
-
* @returns {}
|
|
4341
|
-
*/
|
|
4342
|
-
constructor(logger: IDiagnosticLogger, pageVisitTimeTrackingHandler: (pageName: string, pageUrl: string, pageVisitTime: number) => void);
|
|
4343
|
-
/**
|
|
4344
|
-
* Tracks the previous page visit time telemetry (if exists) and starts timing of new page visit time
|
|
4345
|
-
* @param currentPageName Name of page to begin timing for visit duration
|
|
4346
|
-
* @param currentPageUrl Url of page to begin timing for visit duration
|
|
4347
|
-
*/
|
|
4348
|
-
trackPreviousPageVisit(currentPageName: string, currentPageUrl: string): void;
|
|
4349
|
-
/**
|
|
4350
|
-
* Stops timing of current page (if exists) and starts timing for duration of visit to pageName
|
|
4351
|
-
* @param pageName Name of page to begin timing visit duration
|
|
4352
|
-
* @returns {PageVisitData} Page visit data (including duration) of pageName from last call to start or restart, if exists. Null if not.
|
|
4353
|
-
*/
|
|
4354
|
-
restartPageVisitTimer(pageName: string, pageUrl: string): PageVisitData;
|
|
4355
|
-
/**
|
|
4356
|
-
* Starts timing visit duration of pageName
|
|
4357
|
-
* @param pageName
|
|
4358
|
-
* @returns {}
|
|
4359
|
-
*/
|
|
4360
|
-
startPageVisitTimer(pageName: string, pageUrl: string): void;
|
|
4361
|
-
/**
|
|
4362
|
-
* Stops timing of current page, if exists.
|
|
4363
|
-
* @returns {PageVisitData} Page visit data (including duration) of pageName from call to start, if exists. Null if not.
|
|
4364
|
-
*/
|
|
4365
|
-
stopPageVisitTimer(): PageVisitData;
|
|
4366
|
-
}
|
|
4367
|
-
|
|
4368
4349
|
declare function parseConnectionString(connectionString?: string): ConnectionString;
|
|
4369
4350
|
|
|
4370
4351
|
export declare class PerfEvent implements IPerfEvent {
|
|
@@ -4856,6 +4837,27 @@ declare const enum TelemetryUnloadReason {
|
|
|
4856
4837
|
SdkUnload = 50
|
|
4857
4838
|
}
|
|
4858
4839
|
|
|
4840
|
+
/**
|
|
4841
|
+
* The TelemetryUpdateReason enumeration contains a set of bit-wise values that specify the reason for update request.
|
|
4842
|
+
*/
|
|
4843
|
+
declare const enum TelemetryUpdateReason {
|
|
4844
|
+
/**
|
|
4845
|
+
* Unknown.
|
|
4846
|
+
*/
|
|
4847
|
+
Unknown = 0,
|
|
4848
|
+
/**
|
|
4849
|
+
* The configuration has ben updated or changed
|
|
4850
|
+
*/
|
|
4851
|
+
/**
|
|
4852
|
+
* One or more plugins have been added
|
|
4853
|
+
*/
|
|
4854
|
+
PluginAdded = 16,
|
|
4855
|
+
/**
|
|
4856
|
+
* One or more plugins have been removed
|
|
4857
|
+
*/
|
|
4858
|
+
PluginRemoved = 32
|
|
4859
|
+
}
|
|
4860
|
+
|
|
4859
4861
|
export declare class Trace extends MessageData implements ISerializable {
|
|
4860
4862
|
static envelopeType: string;
|
|
4861
4863
|
static dataType: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Web, 2.8.0-beta.2203-
|
|
2
|
+
* Application Insights JavaScript SDK - Web, 2.8.0-beta.2203-06
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
import { AppInsightsDeprecated } from "./ApplicationInsightsDeprecated";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Web, 2.8.0-beta.2203-
|
|
2
|
+
* Application Insights JavaScript SDK - Web, 2.8.0-beta.2203-06
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
import { stringToBoolOrDefault, ProcessLegacy } from "@microsoft/applicationinsights-common";
|
package/dist-esm/Init.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Web, 2.8.0-beta.2203-
|
|
2
|
+
* Application Insights JavaScript SDK - Web, 2.8.0-beta.2203-06
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
export { Initialization as ApplicationInsights, Telemetry } from "./Initialization";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/applicationinsights-web",
|
|
3
|
-
"version": "2.8.0-beta.2203-
|
|
3
|
+
"version": "2.8.0-beta.2203-06",
|
|
4
4
|
"description": "Microsoft Application Insights JavaScript SDK - Web",
|
|
5
5
|
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
6
|
"author": "Microsoft Application Insights Team",
|
|
@@ -66,12 +66,12 @@
|
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@microsoft/dynamicproto-js": "^1.1.4",
|
|
68
68
|
"@microsoft/applicationinsights-shims": "2.0.1",
|
|
69
|
-
"@microsoft/applicationinsights-analytics-js": "2.8.0-beta.2203-
|
|
70
|
-
"@microsoft/applicationinsights-channel-js": "2.8.0-beta.2203-
|
|
71
|
-
"@microsoft/applicationinsights-common": "2.8.0-beta.2203-
|
|
72
|
-
"@microsoft/applicationinsights-core-js": "2.8.0-beta.2203-
|
|
73
|
-
"@microsoft/applicationinsights-dependencies-js": "2.8.0-beta.2203-
|
|
74
|
-
"@microsoft/applicationinsights-properties-js": "2.8.0-beta.2203-
|
|
69
|
+
"@microsoft/applicationinsights-analytics-js": "2.8.0-beta.2203-06",
|
|
70
|
+
"@microsoft/applicationinsights-channel-js": "2.8.0-beta.2203-06",
|
|
71
|
+
"@microsoft/applicationinsights-common": "2.8.0-beta.2203-06",
|
|
72
|
+
"@microsoft/applicationinsights-core-js": "2.8.0-beta.2203-06",
|
|
73
|
+
"@microsoft/applicationinsights-dependencies-js": "2.8.0-beta.2203-06",
|
|
74
|
+
"@microsoft/applicationinsights-properties-js": "2.8.0-beta.2203-06"
|
|
75
75
|
},
|
|
76
76
|
"license": "MIT",
|
|
77
77
|
"publishConfig": {
|
|
@@ -191,7 +191,7 @@ export declare class Initialization implements IApplicationInsights {
|
|
|
191
191
|
}, measurements?: {
|
|
192
192
|
[key: string]: number;
|
|
193
193
|
}): void;
|
|
194
|
-
addTelemetryInitializer(telemetryInitializer: (item: ITelemetryItem) => boolean | void): void;
|
|
194
|
+
addTelemetryInitializer(telemetryInitializer: (item: ITelemetryItem) => boolean | void): void | import("@microsoft/applicationinsights-core-js").ITelemetryInitializerHandler;
|
|
195
195
|
/**
|
|
196
196
|
* Set the authenticated user id and the account id. Used for identifying a specific signed-in user. Parameters must not contain whitespace or ,;=|
|
|
197
197
|
*
|