@microsoft/applicationinsights-common 3.1.1-nightly3.2403-03 → 3.1.1-nightly3.2403-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.
- package/browser/es5/applicationinsights-common.cjs.js +389 -1236
- package/browser/es5/applicationinsights-common.cjs.js.map +1 -1
- package/browser/es5/applicationinsights-common.cjs.min.js +2 -2
- package/browser/es5/applicationinsights-common.cjs.min.js.map +1 -1
- package/browser/es5/applicationinsights-common.gbl.js +391 -1238
- package/browser/es5/applicationinsights-common.gbl.js.map +1 -1
- package/browser/es5/applicationinsights-common.gbl.min.js +2 -2
- package/browser/es5/applicationinsights-common.gbl.min.js.map +1 -1
- package/browser/es5/applicationinsights-common.integrity.json +25 -25
- package/browser/es5/applicationinsights-common.js +391 -1238
- package/browser/es5/applicationinsights-common.js.map +1 -1
- package/browser/es5/applicationinsights-common.min.js +2 -2
- package/browser/es5/applicationinsights-common.min.js.map +1 -1
- package/dist/es5/applicationinsights-common.js +389 -1236
- package/dist/es5/applicationinsights-common.js.map +1 -1
- package/dist/es5/applicationinsights-common.min.js +2 -2
- package/dist/es5/applicationinsights-common.min.js.map +1 -1
- package/dist-es5/ConnectionStringParser.js +3 -3
- package/dist-es5/ConnectionStringParser.js.map +1 -1
- package/dist-es5/Constants.js +1 -1
- package/dist-es5/DomHelperFuncs.js +1 -1
- package/dist-es5/Enums.js +1 -1
- package/dist-es5/HelperFuncs.js +1 -1
- package/dist-es5/Interfaces/ConnectionString.js +1 -1
- package/dist-es5/Interfaces/Context/IApplication.js +1 -1
- package/dist-es5/Interfaces/Context/IDevice.js +1 -1
- package/dist-es5/Interfaces/Context/IInternal.js +1 -1
- package/dist-es5/Interfaces/Context/ILocation.js +1 -1
- package/dist-es5/Interfaces/Context/IOperatingSystem.js +1 -1
- package/dist-es5/Interfaces/Context/ISample.js +1 -1
- package/dist-es5/Interfaces/Context/ISession.js +1 -1
- package/dist-es5/Interfaces/Context/ISessionManager.js +1 -1
- package/dist-es5/Interfaces/Context/ITelemetryTrace.js +1 -1
- package/dist-es5/Interfaces/Context/IUser.js +1 -1
- package/dist-es5/Interfaces/Context/IWeb.js +1 -1
- package/dist-es5/Interfaces/Contracts/AvailabilityData.js +1 -1
- package/dist-es5/Interfaces/Contracts/ContextTagKeys.js +1 -1
- package/dist-es5/Interfaces/Contracts/DataPointType.js +1 -1
- package/dist-es5/Interfaces/Contracts/DependencyKind.js +1 -1
- package/dist-es5/Interfaces/Contracts/DependencySourceType.js +1 -1
- package/dist-es5/Interfaces/Contracts/IBase.js +1 -1
- package/dist-es5/Interfaces/Contracts/IData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IDataPoint.js +1 -1
- package/dist-es5/Interfaces/Contracts/IDomain.js +1 -1
- package/dist-es5/Interfaces/Contracts/IEnvelope.js +1 -1
- package/dist-es5/Interfaces/Contracts/IEventData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IExceptionData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IExceptionDetails.js +1 -1
- package/dist-es5/Interfaces/Contracts/IMessageData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IMetricData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IPageViewData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IPageViewPerfData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IRemoteDependencyData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IStackFrame.js +1 -1
- package/dist-es5/Interfaces/Contracts/RequestData.js +1 -1
- package/dist-es5/Interfaces/Contracts/SeverityLevel.js +1 -1
- package/dist-es5/Interfaces/IAppInsights.js +1 -1
- package/dist-es5/Interfaces/IConfig.js +1 -1
- package/dist-es5/Interfaces/ICorrelationConfig.js +1 -1
- package/dist-es5/Interfaces/IDependencyTelemetry.js +1 -1
- package/dist-es5/Interfaces/IEventTelemetry.js +1 -1
- package/dist-es5/Interfaces/IExceptionTelemetry.js +1 -1
- package/dist-es5/Interfaces/IMetricTelemetry.js +1 -1
- package/dist-es5/Interfaces/IPageViewPerformanceTelemetry.js +1 -1
- package/dist-es5/Interfaces/IPageViewTelemetry.js +1 -1
- package/dist-es5/Interfaces/IPartC.js +1 -1
- package/dist-es5/Interfaces/IPropertiesPlugin.js +1 -1
- package/dist-es5/Interfaces/IRequestContext.js +1 -1
- package/dist-es5/Interfaces/IStorageBuffer.js +1 -1
- package/dist-es5/Interfaces/ITelemetryContext.js +1 -1
- package/dist-es5/Interfaces/IThrottleMgr.js +1 -1
- package/dist-es5/Interfaces/ITraceTelemetry.js +1 -1
- package/dist-es5/Interfaces/PartAExtensions.js +1 -1
- package/dist-es5/Interfaces/Telemetry/IEnvelope.js +1 -1
- package/dist-es5/Interfaces/Telemetry/ISerializable.js +1 -1
- package/dist-es5/Offline.js +1 -1
- package/dist-es5/RequestResponseHeaders.js +1 -1
- package/dist-es5/StorageHelperFuncs.js +1 -1
- package/dist-es5/Telemetry/Common/Data.js +1 -1
- package/dist-es5/Telemetry/Common/DataPoint.js +1 -1
- package/dist-es5/Telemetry/Common/DataSanitizer.js +1 -1
- package/dist-es5/Telemetry/Common/Envelope.js +3 -3
- package/dist-es5/Telemetry/Common/Envelope.js.map +1 -1
- package/dist-es5/Telemetry/Event.js +1 -1
- package/dist-es5/Telemetry/Exception.js +4 -4
- package/dist-es5/Telemetry/Exception.js.map +1 -1
- package/dist-es5/Telemetry/Metric.js +1 -1
- package/dist-es5/Telemetry/PageView.js +1 -1
- package/dist-es5/Telemetry/PageViewPerformance.js +1 -1
- package/dist-es5/Telemetry/RemoteDependencyData.js +3 -3
- package/dist-es5/Telemetry/RemoteDependencyData.js.map +1 -1
- package/dist-es5/Telemetry/Trace.js +1 -1
- package/dist-es5/TelemetryItemCreator.js +3 -3
- package/dist-es5/TelemetryItemCreator.js.map +1 -1
- package/dist-es5/ThrottleMgr.js +1 -1
- package/dist-es5/UrlHelperFuncs.js +1 -1
- package/dist-es5/Util.js +4 -57
- package/dist-es5/Util.js.map +1 -1
- package/dist-es5/__DynamicConstants.js +4 -10
- package/dist-es5/__DynamicConstants.js.map +1 -1
- package/dist-es5/applicationinsights-common.js +2 -3
- package/dist-es5/applicationinsights-common.js.map +1 -1
- package/package.json +3 -4
- package/types/applicationinsights-common.d.ts +1 -168
- package/types/applicationinsights-common.namespaced.d.ts +1 -200
- package/dist-es5/Interfaces/ISenderPostManager.js +0 -6
- package/dist-es5/Interfaces/ISenderPostManager.js.map +0 -1
- package/dist-es5/Interfaces/IXDomainRequest.js +0 -6
- package/dist-es5/Interfaces/IXDomainRequest.js.map +0 -1
- package/dist-es5/SenderPostManager.js +0 -456
- package/dist-es5/SenderPostManager.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Common JavaScript Library, 3.1.1-nightly3.2403-
|
|
2
|
+
* Microsoft Application Insights Common JavaScript Library, 3.1.1-nightly3.2403-04
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -24,22 +24,16 @@ import { ICookieMgr } from '@microsoft/applicationinsights-core-js';
|
|
|
24
24
|
import { ICustomProperties } from '@microsoft/applicationinsights-core-js';
|
|
25
25
|
import { IDiagnosticLogger } from '@microsoft/applicationinsights-core-js';
|
|
26
26
|
import { IDistributedTraceContext } from '@microsoft/applicationinsights-core-js';
|
|
27
|
-
import { IPayloadData } from '@microsoft/applicationinsights-core-js';
|
|
28
27
|
import { IPlugin } from '@microsoft/applicationinsights-core-js';
|
|
29
|
-
import { IProcessTelemetryUnloadContext } from '@microsoft/applicationinsights-core-js';
|
|
30
28
|
import { isBeaconsSupported as isBeaconApiSupported } from '@microsoft/applicationinsights-core-js';
|
|
31
29
|
import { isSampledFlag } from '@microsoft/applicationinsights-core-js';
|
|
32
30
|
import { isValidSpanId } from '@microsoft/applicationinsights-core-js';
|
|
33
31
|
import { isValidTraceId } from '@microsoft/applicationinsights-core-js';
|
|
34
32
|
import { isValidTraceParent } from '@microsoft/applicationinsights-core-js';
|
|
35
33
|
import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
|
|
36
|
-
import { ITelemetryUnloadState } from '@microsoft/applicationinsights-core-js';
|
|
37
34
|
import { ITraceParent } from '@microsoft/applicationinsights-core-js';
|
|
38
35
|
import { IUnloadHook } from '@microsoft/applicationinsights-core-js';
|
|
39
|
-
import { IXHROverride } from '@microsoft/applicationinsights-core-js';
|
|
40
|
-
import { OnCompleteCallback } from '@microsoft/applicationinsights-core-js';
|
|
41
36
|
import { parseTraceParent } from '@microsoft/applicationinsights-core-js';
|
|
42
|
-
import { TransportType } from '@microsoft/applicationinsights-core-js';
|
|
43
37
|
|
|
44
38
|
/**
|
|
45
39
|
* Data struct to contain only C section with custom fields.
|
|
@@ -520,16 +514,10 @@ export { findW3cTraceParent }
|
|
|
520
514
|
*/
|
|
521
515
|
declare function _formatErrorCode(errorObj: any): any;
|
|
522
516
|
|
|
523
|
-
export declare function formatErrorMessageXdr(xdr: IXDomainRequest, message?: string): string;
|
|
524
|
-
|
|
525
|
-
export declare function formatErrorMessageXhr(xhr: XMLHttpRequest, message?: string): string;
|
|
526
|
-
|
|
527
517
|
export { formatTraceParent }
|
|
528
518
|
|
|
529
519
|
export declare function getExtensionByName(extensions: IPlugin[], identifier: string): IPlugin | null;
|
|
530
520
|
|
|
531
|
-
export declare function getResponseText(xhr: XMLHttpRequest | IXDomainRequest): string;
|
|
532
|
-
|
|
533
521
|
export declare const HttpMethod = "http.method";
|
|
534
522
|
|
|
535
523
|
export declare interface IAppInsights {
|
|
@@ -644,25 +632,6 @@ export declare interface IAutoExceptionTelemetry {
|
|
|
644
632
|
errorSrc?: string;
|
|
645
633
|
}
|
|
646
634
|
|
|
647
|
-
export declare interface IBackendResponse {
|
|
648
|
-
/**
|
|
649
|
-
* Number of items received by the backend
|
|
650
|
-
*/
|
|
651
|
-
readonly itemsReceived: number;
|
|
652
|
-
/**
|
|
653
|
-
* Number of items succesfuly accepted by the backend
|
|
654
|
-
*/
|
|
655
|
-
readonly itemsAccepted: number;
|
|
656
|
-
/**
|
|
657
|
-
* List of errors for items which were not accepted
|
|
658
|
-
*/
|
|
659
|
-
readonly errors: IResponseError[];
|
|
660
|
-
/**
|
|
661
|
-
* App id returned by the backend - not necessary returned, but we don't need it with each response.
|
|
662
|
-
*/
|
|
663
|
-
readonly appId?: string;
|
|
664
|
-
}
|
|
665
|
-
|
|
666
635
|
/**
|
|
667
636
|
* Configuration settings for how telemetry is sent
|
|
668
637
|
* @export
|
|
@@ -1913,12 +1882,6 @@ export declare interface IRequestHeaders {
|
|
|
1913
1882
|
requestContextHeaderLowerCase: string;
|
|
1914
1883
|
}
|
|
1915
1884
|
|
|
1916
|
-
declare interface IResponseError {
|
|
1917
|
-
readonly index: number;
|
|
1918
|
-
readonly statusCode: number;
|
|
1919
|
-
readonly message: string;
|
|
1920
|
-
}
|
|
1921
|
-
|
|
1922
1885
|
export declare interface ISample {
|
|
1923
1886
|
/**
|
|
1924
1887
|
* Sample rate
|
|
@@ -1931,93 +1894,6 @@ export { isBeaconApiSupported }
|
|
|
1931
1894
|
|
|
1932
1895
|
export declare function isCrossOriginError(message: string | Event, url: string, lineNumber: number, columnNumber: number, error: Error | Event): boolean;
|
|
1933
1896
|
|
|
1934
|
-
/**
|
|
1935
|
-
* internal interface
|
|
1936
|
-
* Define functions when xhr/xdr/fetch requests are successfully returned. If they are not defined, oncomplete with be called instead
|
|
1937
|
-
* @internal for internal use only
|
|
1938
|
-
*/
|
|
1939
|
-
export declare interface _ISenderOnComplete {
|
|
1940
|
-
/**
|
|
1941
|
-
* defined xdr onload function to handle response
|
|
1942
|
-
* @param dxr xdr request object
|
|
1943
|
-
* @param oncomplete oncomplete function
|
|
1944
|
-
* @since version after 3.1.0
|
|
1945
|
-
*/
|
|
1946
|
-
xdrOnComplete?(xdr: IXDomainRequest, onComplete: OnCompleteCallback, payload?: IPayloadData): void;
|
|
1947
|
-
/**
|
|
1948
|
-
* defined fetch on complete function to handle response
|
|
1949
|
-
* @param response response object
|
|
1950
|
-
* @param onComplete oncomplete function
|
|
1951
|
-
* @param resValue response.text().value
|
|
1952
|
-
* @since version after 3.1.0
|
|
1953
|
-
*/
|
|
1954
|
-
fetchOnComplete?(response: Response, onComplete: OnCompleteCallback, resValue?: string, payload?: IPayloadData): void;
|
|
1955
|
-
/**
|
|
1956
|
-
* defined xhr onreadystatechange function to handle response
|
|
1957
|
-
* @param request request object
|
|
1958
|
-
* @param oncomplete oncomplete function
|
|
1959
|
-
* @since version after 3.1.0
|
|
1960
|
-
*/
|
|
1961
|
-
xhrOnComplete?(request: XMLHttpRequest, onComplete: OnCompleteCallback, payload?: IPayloadData): void;
|
|
1962
|
-
/**
|
|
1963
|
-
* Define functions during beacon can not send payload after first attempt. If not defined, will be apyload will be retried with fallback sender.
|
|
1964
|
-
* @param data payload data
|
|
1965
|
-
* @param onComplete oncomplete function
|
|
1966
|
-
* @param canSend can the current data sent by beacon sender
|
|
1967
|
-
* @since version after 3.1.0
|
|
1968
|
-
*/
|
|
1969
|
-
beaconOnRetry?(data: IPayloadData, onComplete: OnCompleteCallback, canSend: (payload: IPayloadData, oncomplete: OnCompleteCallback, sync?: boolean) => boolean): void;
|
|
1970
|
-
}
|
|
1971
|
-
|
|
1972
|
-
/**
|
|
1973
|
-
* Internal interface for SendPostMnager
|
|
1974
|
-
* @internal for internal use only
|
|
1975
|
-
*/
|
|
1976
|
-
export declare interface _ISendPostMgrConfig {
|
|
1977
|
-
/**
|
|
1978
|
-
* Enable the sender interface to return a promise
|
|
1979
|
-
* Note: Enabling this may cause unhandled promise rejection errors to occur if you do not listen and handle any rejection response,
|
|
1980
|
-
* Defaults to false
|
|
1981
|
-
* @since version after 3.1.0
|
|
1982
|
-
*/
|
|
1983
|
-
enableSendPromise?: boolean;
|
|
1984
|
-
/**
|
|
1985
|
-
* Identifies if the sender is 1ds post channel
|
|
1986
|
-
* Default is false
|
|
1987
|
-
* @since version after 3.1.0
|
|
1988
|
-
*/
|
|
1989
|
-
isOneDs?: boolean;
|
|
1990
|
-
/**
|
|
1991
|
-
* Identify if Credentials should be disabled for 1ds post channel, application insights sender will igore this config
|
|
1992
|
-
* Default is false
|
|
1993
|
-
* @since version after 3.1.0
|
|
1994
|
-
*/
|
|
1995
|
-
disableCredentials?: boolean;
|
|
1996
|
-
/**
|
|
1997
|
-
* Identifies if XMLHttpRequest or XDomainRequest (for IE < 9) should be used
|
|
1998
|
-
* Default: false
|
|
1999
|
-
* @since version after 3.1.0
|
|
2000
|
-
*/
|
|
2001
|
-
disableXhr?: boolean;
|
|
2002
|
-
/**
|
|
2003
|
-
* Is beacon disabled during asunc sending
|
|
2004
|
-
* Default: false
|
|
2005
|
-
* @since version after 3.1.0
|
|
2006
|
-
*/
|
|
2007
|
-
disableBeacon?: boolean;
|
|
2008
|
-
/**
|
|
2009
|
-
* Is beacon disabled during sync sending
|
|
2010
|
-
* Default: false
|
|
2011
|
-
* @since version after 3.1.0
|
|
2012
|
-
*/
|
|
2013
|
-
disableBeaconSync?: boolean;
|
|
2014
|
-
/**
|
|
2015
|
-
* Identifies functions when xhr/xdr/fetch requests are successfully returned. If they are not defined, oncomplete with be called instead
|
|
2016
|
-
* @since version after 3.1.0
|
|
2017
|
-
*/
|
|
2018
|
-
senderOnCompleteCallBack?: _ISenderOnComplete;
|
|
2019
|
-
}
|
|
2020
|
-
|
|
2021
1897
|
export declare interface ISerializable {
|
|
2022
1898
|
/**
|
|
2023
1899
|
* The set of fields for a serializable object.
|
|
@@ -2393,12 +2269,6 @@ export declare interface IWeb {
|
|
|
2393
2269
|
domain: string;
|
|
2394
2270
|
}
|
|
2395
2271
|
|
|
2396
|
-
export declare interface IXDomainRequest extends XMLHttpRequestEventTarget {
|
|
2397
|
-
readonly responseText: string;
|
|
2398
|
-
send(payload: string): void;
|
|
2399
|
-
open(method: string, url: string): void;
|
|
2400
|
-
}
|
|
2401
|
-
|
|
2402
2272
|
export declare class Metric implements IMetricData, ISerializable {
|
|
2403
2273
|
static envelopeType: string;
|
|
2404
2274
|
static dataType: string;
|
|
@@ -2568,16 +2438,8 @@ export declare class PageViewPerformance implements IPageViewPerfData, ISerializ
|
|
|
2568
2438
|
|
|
2569
2439
|
export declare function parseConnectionString(connectionString?: string): ConnectionString;
|
|
2570
2440
|
|
|
2571
|
-
/**
|
|
2572
|
-
* Parses the response from the backend.
|
|
2573
|
-
* @param response - XMLHttpRequest or XDomainRequest response
|
|
2574
|
-
*/
|
|
2575
|
-
export declare function parseResponse(response: any, diagLog?: IDiagnosticLogger): IBackendResponse;
|
|
2576
|
-
|
|
2577
2441
|
export { parseTraceParent }
|
|
2578
2442
|
|
|
2579
|
-
export declare function prependTransports(theTransports: TransportType[], newTransports: TransportType | TransportType[]): TransportType[];
|
|
2580
|
-
|
|
2581
2443
|
export declare const ProcessLegacy = "ProcessLegacy";
|
|
2582
2444
|
|
|
2583
2445
|
export declare const PropertiesPluginIdentifier = "AppInsightsPropertiesPlugin";
|
|
@@ -2681,35 +2543,6 @@ export declare const RequestHeaders: IRequestHeaders & {
|
|
|
2681
2543
|
|
|
2682
2544
|
export declare const SampleRate = "sampleRate";
|
|
2683
2545
|
|
|
2684
|
-
/**
|
|
2685
|
-
* This Internal component
|
|
2686
|
-
* Manager SendPost functions
|
|
2687
|
-
* SendPostManger
|
|
2688
|
-
* @internal for internal use only
|
|
2689
|
-
*/
|
|
2690
|
-
export declare class SenderPostManager {
|
|
2691
|
-
constructor();
|
|
2692
|
-
initialize(config: _ISendPostMgrConfig, diagLog: IDiagnosticLogger): void;
|
|
2693
|
-
/**
|
|
2694
|
-
* Get size of current sync fetch payload
|
|
2695
|
-
*/
|
|
2696
|
-
getSyncFetchPayload(): number;
|
|
2697
|
-
/**
|
|
2698
|
-
* reset Config
|
|
2699
|
-
* @returns True if set is successfully
|
|
2700
|
-
*/
|
|
2701
|
-
SetConfig(config: _ISendPostMgrConfig): boolean;
|
|
2702
|
-
/**
|
|
2703
|
-
* Get current xhr instance
|
|
2704
|
-
*/
|
|
2705
|
-
getXhrInst(transports: TransportType[], sync?: boolean): IXHROverride;
|
|
2706
|
-
/**
|
|
2707
|
-
* Get current fallback sender instance
|
|
2708
|
-
*/
|
|
2709
|
-
getFallbackInst(): IXHROverride;
|
|
2710
|
-
_doTeardown(unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState): void;
|
|
2711
|
-
}
|
|
2712
|
-
|
|
2713
2546
|
/**
|
|
2714
2547
|
* Defines the level of severity for the event.
|
|
2715
2548
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Common JavaScript Library, 3.1.1-nightly3.2403-
|
|
2
|
+
* Microsoft Application Insights Common JavaScript Library, 3.1.1-nightly3.2403-04
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -645,10 +645,6 @@ declare namespace ApplicationInsights {
|
|
|
645
645
|
*/
|
|
646
646
|
function _formatErrorCode(errorObj: any): any;
|
|
647
647
|
|
|
648
|
-
function formatErrorMessageXdr(xdr: IXDomainRequest, message?: string): string;
|
|
649
|
-
|
|
650
|
-
function formatErrorMessageXhr(xhr: XMLHttpRequest, message?: string): string;
|
|
651
|
-
|
|
652
648
|
/**
|
|
653
649
|
* Format the ITraceParent value as a string using the supported and know version formats.
|
|
654
650
|
* So even if the passed traceParent is a later version the string value returned from this
|
|
@@ -661,8 +657,6 @@ declare namespace ApplicationInsights {
|
|
|
661
657
|
|
|
662
658
|
function getExtensionByName(extensions: IPlugin[], identifier: string): IPlugin | null;
|
|
663
659
|
|
|
664
|
-
function getResponseText(xhr: XMLHttpRequest | IXDomainRequest): string;
|
|
665
|
-
|
|
666
660
|
const HttpMethod = "http.method";
|
|
667
661
|
|
|
668
662
|
interface IAppInsights {
|
|
@@ -921,25 +915,6 @@ declare namespace ApplicationInsights {
|
|
|
921
915
|
errorSrc?: string;
|
|
922
916
|
}
|
|
923
917
|
|
|
924
|
-
interface IBackendResponse {
|
|
925
|
-
/**
|
|
926
|
-
* Number of items received by the backend
|
|
927
|
-
*/
|
|
928
|
-
readonly itemsReceived: number;
|
|
929
|
-
/**
|
|
930
|
-
* Number of items succesfuly accepted by the backend
|
|
931
|
-
*/
|
|
932
|
-
readonly itemsAccepted: number;
|
|
933
|
-
/**
|
|
934
|
-
* List of errors for items which were not accepted
|
|
935
|
-
*/
|
|
936
|
-
readonly errors: IResponseError[];
|
|
937
|
-
/**
|
|
938
|
-
* App id returned by the backend - not necessary returned, but we don't need it with each response.
|
|
939
|
-
*/
|
|
940
|
-
readonly appId?: string;
|
|
941
|
-
}
|
|
942
|
-
|
|
943
918
|
interface IBaseProcessingContext {
|
|
944
919
|
/**
|
|
945
920
|
* The current core instance for the request
|
|
@@ -3405,12 +3380,6 @@ declare namespace ApplicationInsights {
|
|
|
3405
3380
|
requestContextHeaderLowerCase: string;
|
|
3406
3381
|
}
|
|
3407
3382
|
|
|
3408
|
-
interface IResponseError {
|
|
3409
|
-
readonly index: number;
|
|
3410
|
-
readonly statusCode: number;
|
|
3411
|
-
readonly message: string;
|
|
3412
|
-
}
|
|
3413
|
-
|
|
3414
3383
|
interface ISample {
|
|
3415
3384
|
/**
|
|
3416
3385
|
* Sample rate
|
|
@@ -3429,93 +3398,6 @@ declare namespace ApplicationInsights {
|
|
|
3429
3398
|
|
|
3430
3399
|
function isCrossOriginError(message: string | Event, url: string, lineNumber: number, columnNumber: number, error: Error | Event): boolean;
|
|
3431
3400
|
|
|
3432
|
-
/**
|
|
3433
|
-
* internal interface
|
|
3434
|
-
* Define functions when xhr/xdr/fetch requests are successfully returned. If they are not defined, oncomplete with be called instead
|
|
3435
|
-
* @internal for internal use only
|
|
3436
|
-
*/
|
|
3437
|
-
interface _ISenderOnComplete {
|
|
3438
|
-
/**
|
|
3439
|
-
* defined xdr onload function to handle response
|
|
3440
|
-
* @param dxr xdr request object
|
|
3441
|
-
* @param oncomplete oncomplete function
|
|
3442
|
-
* @since version after 3.1.0
|
|
3443
|
-
*/
|
|
3444
|
-
xdrOnComplete?(xdr: IXDomainRequest, onComplete: OnCompleteCallback, payload?: IPayloadData): void;
|
|
3445
|
-
/**
|
|
3446
|
-
* defined fetch on complete function to handle response
|
|
3447
|
-
* @param response response object
|
|
3448
|
-
* @param onComplete oncomplete function
|
|
3449
|
-
* @param resValue response.text().value
|
|
3450
|
-
* @since version after 3.1.0
|
|
3451
|
-
*/
|
|
3452
|
-
fetchOnComplete?(response: Response, onComplete: OnCompleteCallback, resValue?: string, payload?: IPayloadData): void;
|
|
3453
|
-
/**
|
|
3454
|
-
* defined xhr onreadystatechange function to handle response
|
|
3455
|
-
* @param request request object
|
|
3456
|
-
* @param oncomplete oncomplete function
|
|
3457
|
-
* @since version after 3.1.0
|
|
3458
|
-
*/
|
|
3459
|
-
xhrOnComplete?(request: XMLHttpRequest, onComplete: OnCompleteCallback, payload?: IPayloadData): void;
|
|
3460
|
-
/**
|
|
3461
|
-
* Define functions during beacon can not send payload after first attempt. If not defined, will be apyload will be retried with fallback sender.
|
|
3462
|
-
* @param data payload data
|
|
3463
|
-
* @param onComplete oncomplete function
|
|
3464
|
-
* @param canSend can the current data sent by beacon sender
|
|
3465
|
-
* @since version after 3.1.0
|
|
3466
|
-
*/
|
|
3467
|
-
beaconOnRetry?(data: IPayloadData, onComplete: OnCompleteCallback, canSend: (payload: IPayloadData, oncomplete: OnCompleteCallback, sync?: boolean) => boolean): void;
|
|
3468
|
-
}
|
|
3469
|
-
|
|
3470
|
-
/**
|
|
3471
|
-
* Internal interface for SendPostMnager
|
|
3472
|
-
* @internal for internal use only
|
|
3473
|
-
*/
|
|
3474
|
-
interface _ISendPostMgrConfig {
|
|
3475
|
-
/**
|
|
3476
|
-
* Enable the sender interface to return a promise
|
|
3477
|
-
* Note: Enabling this may cause unhandled promise rejection errors to occur if you do not listen and handle any rejection response,
|
|
3478
|
-
* Defaults to false
|
|
3479
|
-
* @since version after 3.1.0
|
|
3480
|
-
*/
|
|
3481
|
-
enableSendPromise?: boolean;
|
|
3482
|
-
/**
|
|
3483
|
-
* Identifies if the sender is 1ds post channel
|
|
3484
|
-
* Default is false
|
|
3485
|
-
* @since version after 3.1.0
|
|
3486
|
-
*/
|
|
3487
|
-
isOneDs?: boolean;
|
|
3488
|
-
/**
|
|
3489
|
-
* Identify if Credentials should be disabled for 1ds post channel, application insights sender will igore this config
|
|
3490
|
-
* Default is false
|
|
3491
|
-
* @since version after 3.1.0
|
|
3492
|
-
*/
|
|
3493
|
-
disableCredentials?: boolean;
|
|
3494
|
-
/**
|
|
3495
|
-
* Identifies if XMLHttpRequest or XDomainRequest (for IE < 9) should be used
|
|
3496
|
-
* Default: false
|
|
3497
|
-
* @since version after 3.1.0
|
|
3498
|
-
*/
|
|
3499
|
-
disableXhr?: boolean;
|
|
3500
|
-
/**
|
|
3501
|
-
* Is beacon disabled during asunc sending
|
|
3502
|
-
* Default: false
|
|
3503
|
-
* @since version after 3.1.0
|
|
3504
|
-
*/
|
|
3505
|
-
disableBeacon?: boolean;
|
|
3506
|
-
/**
|
|
3507
|
-
* Is beacon disabled during sync sending
|
|
3508
|
-
* Default: false
|
|
3509
|
-
* @since version after 3.1.0
|
|
3510
|
-
*/
|
|
3511
|
-
disableBeaconSync?: boolean;
|
|
3512
|
-
/**
|
|
3513
|
-
* Identifies functions when xhr/xdr/fetch requests are successfully returned. If they are not defined, oncomplete with be called instead
|
|
3514
|
-
* @since version after 3.1.0
|
|
3515
|
-
*/
|
|
3516
|
-
senderOnCompleteCallBack?: _ISenderOnComplete;
|
|
3517
|
-
}
|
|
3518
|
-
|
|
3519
3401
|
interface ISerializable {
|
|
3520
3402
|
/**
|
|
3521
3403
|
* The set of fields for a serializable object.
|
|
@@ -4248,19 +4130,6 @@ declare namespace ApplicationInsights {
|
|
|
4248
4130
|
domain: string;
|
|
4249
4131
|
}
|
|
4250
4132
|
|
|
4251
|
-
interface IXDomainRequest extends XMLHttpRequestEventTarget {
|
|
4252
|
-
readonly responseText: string;
|
|
4253
|
-
send(payload: string): void;
|
|
4254
|
-
open(method: string, url: string): void;
|
|
4255
|
-
}
|
|
4256
|
-
|
|
4257
|
-
/**
|
|
4258
|
-
* The IXHROverride interface overrides the way HTTP requests are sent.
|
|
4259
|
-
*/
|
|
4260
|
-
interface IXHROverride {
|
|
4261
|
-
sendPOST: SendPOSTFunction;
|
|
4262
|
-
}
|
|
4263
|
-
|
|
4264
4133
|
const LoggingSeverity: EnumValue<typeof eLoggingSeverity>;
|
|
4265
4134
|
|
|
4266
4135
|
type LoggingSeverity = number | eLoggingSeverity;
|
|
@@ -4308,10 +4177,6 @@ declare namespace ApplicationInsights {
|
|
|
4308
4177
|
*/
|
|
4309
4178
|
type OfflineCallback = (onlineState: IOfflineState) => void;
|
|
4310
4179
|
|
|
4311
|
-
type OnCompleteCallback = (status: number, headers: {
|
|
4312
|
-
[headerName: string]: string;
|
|
4313
|
-
}, response?: string) => void;
|
|
4314
|
-
|
|
4315
4180
|
class PageView implements IPageViewData, ISerializable {
|
|
4316
4181
|
static envelopeType: string;
|
|
4317
4182
|
static dataType: string;
|
|
@@ -4438,12 +4303,6 @@ declare namespace ApplicationInsights {
|
|
|
4438
4303
|
|
|
4439
4304
|
function parseConnectionString(connectionString?: string): ConnectionString;
|
|
4440
4305
|
|
|
4441
|
-
/**
|
|
4442
|
-
* Parses the response from the backend.
|
|
4443
|
-
* @param response - XMLHttpRequest or XDomainRequest response
|
|
4444
|
-
*/
|
|
4445
|
-
function parseResponse(response: any, diagLog?: IDiagnosticLogger): IBackendResponse;
|
|
4446
|
-
|
|
4447
4306
|
/**
|
|
4448
4307
|
* Attempt to parse the provided string as a W3C TraceParent header value (https://www.w3.org/TR/trace-context/#traceparent-header)
|
|
4449
4308
|
*
|
|
@@ -4453,8 +4312,6 @@ declare namespace ApplicationInsights {
|
|
|
4453
4312
|
*/
|
|
4454
4313
|
function parseTraceParent(value: string, selectIdx?: number): ITraceParent;
|
|
4455
4314
|
|
|
4456
|
-
function prependTransports(theTransports: TransportType[], newTransports: TransportType | TransportType[]): TransportType[];
|
|
4457
|
-
|
|
4458
4315
|
const ProcessLegacy = "ProcessLegacy";
|
|
4459
4316
|
|
|
4460
4317
|
const PropertiesPluginIdentifier = "AppInsightsPropertiesPlugin";
|
|
@@ -4572,43 +4429,6 @@ declare namespace ApplicationInsights {
|
|
|
4572
4429
|
|
|
4573
4430
|
const SampleRate = "sampleRate";
|
|
4574
4431
|
|
|
4575
|
-
/**
|
|
4576
|
-
* This Internal component
|
|
4577
|
-
* Manager SendPost functions
|
|
4578
|
-
* SendPostManger
|
|
4579
|
-
* @internal for internal use only
|
|
4580
|
-
*/
|
|
4581
|
-
class SenderPostManager {
|
|
4582
|
-
constructor();
|
|
4583
|
-
initialize(config: _ISendPostMgrConfig, diagLog: IDiagnosticLogger): void;
|
|
4584
|
-
/**
|
|
4585
|
-
* Get size of current sync fetch payload
|
|
4586
|
-
*/
|
|
4587
|
-
getSyncFetchPayload(): number;
|
|
4588
|
-
/**
|
|
4589
|
-
* reset Config
|
|
4590
|
-
* @returns True if set is successfully
|
|
4591
|
-
*/
|
|
4592
|
-
SetConfig(config: _ISendPostMgrConfig): boolean;
|
|
4593
|
-
/**
|
|
4594
|
-
* Get current xhr instance
|
|
4595
|
-
*/
|
|
4596
|
-
getXhrInst(transports: TransportType[], sync?: boolean): IXHROverride;
|
|
4597
|
-
/**
|
|
4598
|
-
* Get current fallback sender instance
|
|
4599
|
-
*/
|
|
4600
|
-
getFallbackInst(): IXHROverride;
|
|
4601
|
-
_doTeardown(unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState): void;
|
|
4602
|
-
}
|
|
4603
|
-
|
|
4604
|
-
/**
|
|
4605
|
-
* SendPOSTFunction type defines how an HTTP POST request is sent to an ingestion server
|
|
4606
|
-
* @param payload - The payload object that should be sent, contains the url, bytes/string and headers for the request
|
|
4607
|
-
* @param oncomplete - The function to call once the request has completed whether a success, failure or timeout
|
|
4608
|
-
* @param sync - A boolean flag indicating whether the request should be sent as a synchronous request.
|
|
4609
|
-
*/
|
|
4610
|
-
type SendPOSTFunction = (payload: IPayloadData, oncomplete: OnCompleteCallback, sync?: boolean) => void | IPromise<boolean>;
|
|
4611
|
-
|
|
4612
4432
|
/**
|
|
4613
4433
|
* The EventsDiscardedReason enumeration contains a set of values that specify the reason for discarding an event.
|
|
4614
4434
|
*/
|
|
@@ -4779,25 +4599,6 @@ declare namespace ApplicationInsights {
|
|
|
4779
4599
|
});
|
|
4780
4600
|
}
|
|
4781
4601
|
|
|
4782
|
-
const enum TransportType {
|
|
4783
|
-
/**
|
|
4784
|
-
* Use the default available api
|
|
4785
|
-
*/
|
|
4786
|
-
NotSet = 0,
|
|
4787
|
-
/**
|
|
4788
|
-
* Use XMLHttpRequest or XMLDomainRequest if available
|
|
4789
|
-
*/
|
|
4790
|
-
Xhr = 1,
|
|
4791
|
-
/**
|
|
4792
|
-
* Use the Fetch api if available
|
|
4793
|
-
*/
|
|
4794
|
-
Fetch = 2,
|
|
4795
|
-
/**
|
|
4796
|
-
* Use sendBeacon api if available
|
|
4797
|
-
*/
|
|
4798
|
-
Beacon = 3
|
|
4799
|
-
}
|
|
4800
|
-
|
|
4801
4602
|
type UnloadHandler = (itemCtx: IProcessTelemetryUnloadContext, unloadState: ITelemetryUnloadState) => void;
|
|
4802
4603
|
|
|
4803
4604
|
function urlGetAbsoluteUrl(url: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ISenderPostManager.js.map","sources":["ISenderPostManager.js"],"sourcesContent":["export {};\r\n//# sourceMappingURL=ISenderPostManager.js.map"],"names":[],"mappings":";;;;AAAA;AACA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IXDomainRequest.js.map","sources":["IXDomainRequest.js"],"sourcesContent":["export {};\r\n//# sourceMappingURL=IXDomainRequest.js.map"],"names":[],"mappings":";;;;AAAA;AACA"}
|