@microsoft/applicationinsights-common 3.0.0-beta.2303-11 → 3.0.0-nightly3.2304-28
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 +3965 -0
- package/browser/es5/applicationinsights-common.cjs.js.map +1 -0
- package/browser/es5/applicationinsights-common.cjs.min.js +6 -0
- package/browser/es5/applicationinsights-common.cjs.min.js.map +1 -0
- package/browser/es5/applicationinsights-common.gbl.js +3969 -0
- package/browser/es5/applicationinsights-common.gbl.js.map +1 -0
- package/browser/es5/applicationinsights-common.gbl.min.js +6 -0
- package/browser/es5/applicationinsights-common.gbl.min.js.map +1 -0
- package/browser/es5/applicationinsights-common.integrity.json +66 -0
- package/browser/{applicationinsights-common.js → es5/applicationinsights-common.js} +194 -167
- package/browser/es5/applicationinsights-common.js.map +1 -0
- package/browser/es5/applicationinsights-common.min.js +6 -0
- package/browser/es5/applicationinsights-common.min.js.map +1 -0
- package/dist/{applicationinsights-common.js → es5/applicationinsights-common.js} +194 -167
- package/dist/es5/applicationinsights-common.js.map +1 -0
- package/dist/es5/applicationinsights-common.min.js +6 -0
- package/dist/es5/applicationinsights-common.min.js.map +1 -0
- package/{dist-esm → dist-es5}/ConnectionStringParser.js +1 -1
- package/{dist-esm → dist-es5}/Constants.js +1 -1
- package/{dist-esm → dist-es5}/DomHelperFuncs.js +1 -1
- package/{dist-esm → dist-es5}/Enums.js +1 -1
- package/{dist-esm → dist-es5}/HelperFuncs.js +1 -1
- package/dist-es5/Interfaces/ConnectionString.js +6 -0
- package/dist-es5/Interfaces/Context/IApplication.js +8 -0
- package/dist-es5/Interfaces/Context/IDevice.js +8 -0
- package/dist-es5/Interfaces/Context/IInternal.js +8 -0
- package/dist-es5/Interfaces/Context/ILocation.js +8 -0
- package/dist-es5/Interfaces/Context/IOperatingSystem.js +8 -0
- package/dist-es5/Interfaces/Context/ISample.js +8 -0
- package/dist-es5/Interfaces/Context/ISession.js +8 -0
- package/dist-es5/Interfaces/Context/ITelemetryTrace.js +8 -0
- package/dist-es5/Interfaces/Context/IUser.js +8 -0
- package/dist-es5/Interfaces/Context/IWeb.js +8 -0
- package/{dist-esm → dist-es5}/Interfaces/Contracts/AvailabilityData.js +1 -1
- package/{dist-esm → dist-es5}/Interfaces/Contracts/ContextTagKeys.js +1 -1
- package/dist-es5/Interfaces/Contracts/DataPointType.js +8 -0
- package/dist-es5/Interfaces/Contracts/DependencyKind.js +8 -0
- package/dist-es5/Interfaces/Contracts/DependencySourceType.js +8 -0
- package/dist-es5/Interfaces/Contracts/IBase.js +8 -0
- package/dist-es5/Interfaces/Contracts/IData.js +8 -0
- package/dist-es5/Interfaces/Contracts/IDataPoint.js +6 -0
- package/dist-es5/Interfaces/Contracts/IDomain.js +8 -0
- package/{dist-esm → dist-es5}/Interfaces/Contracts/IEnvelope.js +1 -1
- package/dist-es5/Interfaces/Contracts/IEventData.js +8 -0
- package/dist-es5/Interfaces/Contracts/IExceptionData.js +8 -0
- package/dist-es5/Interfaces/Contracts/IExceptionDetails.js +8 -0
- package/dist-es5/Interfaces/Contracts/IMessageData.js +8 -0
- package/dist-es5/Interfaces/Contracts/IMetricData.js +8 -0
- package/dist-es5/Interfaces/Contracts/IPageViewData.js +8 -0
- package/dist-es5/Interfaces/Contracts/IPageViewPerfData.js +8 -0
- package/dist-es5/Interfaces/Contracts/IRemoteDependencyData.js +8 -0
- package/dist-es5/Interfaces/Contracts/IStackFrame.js +8 -0
- package/{dist-esm → dist-es5}/Interfaces/Contracts/RequestData.js +1 -1
- package/{dist-esm → dist-es5}/Interfaces/Contracts/SeverityLevel.js +1 -1
- package/dist-es5/Interfaces/IAppInsights.js +8 -0
- package/{dist-esm → dist-es5}/Interfaces/IConfig.js +1 -1
- package/dist-es5/Interfaces/ICorrelationConfig.js +8 -0
- package/dist-es5/Interfaces/IDependencyTelemetry.js +8 -0
- package/dist-es5/Interfaces/IEventTelemetry.js +6 -0
- package/dist-es5/Interfaces/IExceptionTelemetry.js +8 -0
- package/dist-es5/Interfaces/IMetricTelemetry.js +6 -0
- package/dist-es5/Interfaces/IPageViewPerformanceTelemetry.js +6 -0
- package/dist-es5/Interfaces/IPageViewTelemetry.js +6 -0
- package/dist-es5/Interfaces/IPartC.js +8 -0
- package/dist-es5/Interfaces/IPropertiesPlugin.js +8 -0
- package/dist-es5/Interfaces/IRequestContext.js +6 -0
- package/dist-es5/Interfaces/ITelemetryContext.js +8 -0
- package/dist-es5/Interfaces/IThrottleMgr.js +6 -0
- package/dist-es5/Interfaces/ITraceTelemetry.js +8 -0
- package/{dist-esm → dist-es5}/Interfaces/PartAExtensions.js +1 -1
- package/dist-es5/Interfaces/Telemetry/IEnvelope.js +8 -0
- package/dist-es5/Interfaces/Telemetry/ISerializable.js +8 -0
- package/{dist-esm → dist-es5}/RequestResponseHeaders.js +1 -1
- package/{dist-esm → dist-es5}/StorageHelperFuncs.js +1 -1
- package/{dist-esm → dist-es5}/Telemetry/Common/Data.js +1 -1
- package/{dist-esm → dist-es5}/Telemetry/Common/DataPoint.js +1 -1
- package/{dist-esm → dist-es5}/Telemetry/Common/DataSanitizer.js +3 -2
- package/dist-es5/Telemetry/Common/DataSanitizer.js.map +1 -0
- package/{dist-esm → dist-es5}/Telemetry/Common/Envelope.js +1 -1
- package/{dist-esm → dist-es5}/Telemetry/Event.js +1 -1
- package/{dist-esm → dist-es5}/Telemetry/Exception.js +1 -1
- package/{dist-esm → dist-es5}/Telemetry/Metric.js +1 -1
- package/{dist-esm → dist-es5}/Telemetry/PageView.js +1 -1
- package/{dist-esm → dist-es5}/Telemetry/PageViewPerformance.js +1 -1
- package/{dist-esm → dist-es5}/Telemetry/RemoteDependencyData.js +1 -1
- package/{dist-esm → dist-es5}/Telemetry/Trace.js +1 -1
- package/{dist-esm → dist-es5}/TelemetryItemCreator.js +1 -1
- package/{dist-esm → dist-es5}/ThrottleMgr.js +1 -1
- package/{dist-esm → dist-es5}/UrlHelperFuncs.js +1 -1
- package/{dist-esm → dist-es5}/Util.js +1 -1
- package/{dist-esm → dist-es5}/__DynamicConstants.js +1 -1
- package/{dist-esm → dist-es5}/applicationinsights-common.js +1 -1
- package/package.json +18 -17
- package/tsconfig.json +4 -3
- package/types/applicationinsights-common.d.ts +2561 -58
- package/{dist/applicationinsights-common.d.ts → types/applicationinsights-common.namespaced.d.ts} +1 -1
- package/browser/applicationinsights-common.integrity.json +0 -26
- package/browser/applicationinsights-common.js.map +0 -1
- package/browser/applicationinsights-common.min.js +0 -6
- package/browser/applicationinsights-common.min.js.map +0 -1
- package/dist/applicationinsights-common.api.json +0 -19540
- package/dist/applicationinsights-common.api.md +0 -1224
- package/dist/applicationinsights-common.js.map +0 -1
- package/dist/applicationinsights-common.min.js +0 -6
- package/dist/applicationinsights-common.min.js.map +0 -1
- package/dist/applicationinsights-common.rollup.d.ts +0 -2562
- package/dist-esm/Interfaces/ConnectionString.js +0 -6
- package/dist-esm/Interfaces/Context/IApplication.js +0 -8
- package/dist-esm/Interfaces/Context/IDevice.js +0 -8
- package/dist-esm/Interfaces/Context/IInternal.js +0 -8
- package/dist-esm/Interfaces/Context/ILocation.js +0 -8
- package/dist-esm/Interfaces/Context/IOperatingSystem.js +0 -8
- package/dist-esm/Interfaces/Context/ISample.js +0 -8
- package/dist-esm/Interfaces/Context/ISession.js +0 -8
- package/dist-esm/Interfaces/Context/ITelemetryTrace.js +0 -8
- package/dist-esm/Interfaces/Context/IUser.js +0 -8
- package/dist-esm/Interfaces/Context/IWeb.js +0 -8
- package/dist-esm/Interfaces/Contracts/DataPointType.js +0 -8
- package/dist-esm/Interfaces/Contracts/DependencyKind.js +0 -8
- package/dist-esm/Interfaces/Contracts/DependencySourceType.js +0 -8
- package/dist-esm/Interfaces/Contracts/IBase.js +0 -8
- package/dist-esm/Interfaces/Contracts/IData.js +0 -8
- package/dist-esm/Interfaces/Contracts/IDataPoint.js +0 -6
- package/dist-esm/Interfaces/Contracts/IDomain.js +0 -8
- package/dist-esm/Interfaces/Contracts/IEventData.js +0 -8
- package/dist-esm/Interfaces/Contracts/IExceptionData.js +0 -8
- package/dist-esm/Interfaces/Contracts/IExceptionDetails.js +0 -8
- package/dist-esm/Interfaces/Contracts/IMessageData.js +0 -8
- package/dist-esm/Interfaces/Contracts/IMetricData.js +0 -8
- package/dist-esm/Interfaces/Contracts/IPageViewData.js +0 -8
- package/dist-esm/Interfaces/Contracts/IPageViewPerfData.js +0 -8
- package/dist-esm/Interfaces/Contracts/IRemoteDependencyData.js +0 -8
- package/dist-esm/Interfaces/Contracts/IStackFrame.js +0 -8
- package/dist-esm/Interfaces/IAppInsights.js +0 -8
- package/dist-esm/Interfaces/ICorrelationConfig.js +0 -8
- package/dist-esm/Interfaces/IDependencyTelemetry.js +0 -8
- package/dist-esm/Interfaces/IEventTelemetry.js +0 -6
- package/dist-esm/Interfaces/IExceptionTelemetry.js +0 -8
- package/dist-esm/Interfaces/IMetricTelemetry.js +0 -6
- package/dist-esm/Interfaces/IPageViewPerformanceTelemetry.js +0 -6
- package/dist-esm/Interfaces/IPageViewTelemetry.js +0 -6
- package/dist-esm/Interfaces/IPartC.js +0 -8
- package/dist-esm/Interfaces/IPropertiesPlugin.js +0 -8
- package/dist-esm/Interfaces/IRequestContext.js +0 -6
- package/dist-esm/Interfaces/ITelemetryContext.js +0 -8
- package/dist-esm/Interfaces/IThrottleMgr.js +0 -6
- package/dist-esm/Interfaces/ITraceTelemetry.js +0 -8
- package/dist-esm/Interfaces/Telemetry/IEnvelope.js +0 -8
- package/dist-esm/Interfaces/Telemetry/ISerializable.js +0 -8
- package/dist-esm/Telemetry/Common/DataSanitizer.js.map +0 -1
- package/src/ConnectionStringParser.ts +0 -47
- package/src/Constants.ts +0 -18
- package/src/DomHelperFuncs.ts +0 -19
- package/src/Enums.ts +0 -65
- package/src/HelperFuncs.ts +0 -54
- package/src/Interfaces/ConnectionString.ts +0 -3
- package/src/Interfaces/Context/IApplication.ts +0 -14
- package/src/Interfaces/Context/IDevice.ts +0 -28
- package/src/Interfaces/Context/IInternal.ts +0 -29
- package/src/Interfaces/Context/ILocation.ts +0 -9
- package/src/Interfaces/Context/IOperatingSystem.ts +0 -7
- package/src/Interfaces/Context/ISample.ts +0 -13
- package/src/Interfaces/Context/ISession.ts +0 -22
- package/src/Interfaces/Context/ITelemetryTrace.ts +0 -33
- package/src/Interfaces/Context/IUser.ts +0 -50
- package/src/Interfaces/Context/IWeb.ts +0 -39
- package/src/Interfaces/Contracts/AvailabilityData.ts +0 -57
- package/src/Interfaces/Contracts/ContextTagKeys.ts +0 -299
- package/src/Interfaces/Contracts/DataPointType.ts +0 -10
- package/src/Interfaces/Contracts/DependencyKind.ts +0 -11
- package/src/Interfaces/Contracts/DependencySourceType.ts +0 -11
- package/src/Interfaces/Contracts/IBase.ts +0 -13
- package/src/Interfaces/Contracts/IData.ts +0 -19
- package/src/Interfaces/Contracts/IDataPoint.ts +0 -44
- package/src/Interfaces/Contracts/IDomain.ts +0 -8
- package/src/Interfaces/Contracts/IEnvelope.ts +0 -50
- package/src/Interfaces/Contracts/IEventData.ts +0 -30
- package/src/Interfaces/Contracts/IExceptionData.ts +0 -37
- package/src/Interfaces/Contracts/IExceptionDetails.ts +0 -45
- package/src/Interfaces/Contracts/IMessageData.ts +0 -36
- package/src/Interfaces/Contracts/IMetricData.ts +0 -31
- package/src/Interfaces/Contracts/IPageViewData.ts +0 -26
- package/src/Interfaces/Contracts/IPageViewPerfData.ts +0 -35
- package/src/Interfaces/Contracts/IRemoteDependencyData.ts +0 -65
- package/src/Interfaces/Contracts/IStackFrame.ts +0 -33
- package/src/Interfaces/Contracts/RequestData.ts +0 -50
- package/src/Interfaces/Contracts/SeverityLevel.ts +0 -28
- package/src/Interfaces/IAppInsights.ts +0 -31
- package/src/Interfaces/IConfig.ts +0 -396
- package/src/Interfaces/ICorrelationConfig.ts +0 -71
- package/src/Interfaces/IDependencyTelemetry.ts +0 -22
- package/src/Interfaces/IEventTelemetry.ts +0 -20
- package/src/Interfaces/IExceptionTelemetry.ts +0 -143
- package/src/Interfaces/IMetricTelemetry.ts +0 -56
- package/src/Interfaces/IPageViewPerformanceTelemetry.ts +0 -61
- package/src/Interfaces/IPageViewTelemetry.ts +0 -65
- package/src/Interfaces/IPartC.ts +0 -18
- package/src/Interfaces/IPropertiesPlugin.ts +0 -8
- package/src/Interfaces/IRequestContext.ts +0 -6
- package/src/Interfaces/ITelemetryContext.ts +0 -69
- package/src/Interfaces/IThrottleMgr.ts +0 -111
- package/src/Interfaces/ITraceTelemetry.ts +0 -28
- package/src/Interfaces/PartAExtensions.ts +0 -14
- package/src/Interfaces/Telemetry/IEnvelope.ts +0 -47
- package/src/Interfaces/Telemetry/ISerializable.ts +0 -11
- package/src/RequestResponseHeaders.ts +0 -96
- package/src/StorageHelperFuncs.ts +0 -223
- package/src/Telemetry/Common/Data.ts +0 -35
- package/src/Telemetry/Common/DataPoint.ts +0 -58
- package/src/Telemetry/Common/DataSanitizer.ts +0 -197
- package/src/Telemetry/Common/Envelope.ts +0 -81
- package/src/Telemetry/Event.ts +0 -52
- package/src/Telemetry/Exception.ts +0 -681
- package/src/Telemetry/Metric.ts +0 -61
- package/src/Telemetry/PageView.ts +0 -79
- package/src/Telemetry/PageViewPerformance.ts +0 -113
- package/src/Telemetry/RemoteDependencyData.ts +0 -122
- package/src/Telemetry/Trace.ts +0 -64
- package/src/TelemetryItemCreator.ts +0 -75
- package/src/ThrottleMgr.ts +0 -345
- package/src/UrlHelperFuncs.ts +0 -101
- package/src/Util.ts +0 -221
- package/src/__DynamicConstants.ts +0 -50
- package/src/applicationinsights-common.ts +0 -76
- package/types/ConnectionStringParser.d.ts +0 -5
- package/types/Constants.d.ts +0 -15
- package/types/DomHelperFuncs.d.ts +0 -1
- package/types/Enums.d.ts +0 -49
- package/types/HelperFuncs.d.ts +0 -8
- package/types/Interfaces/ConnectionString.d.ts +0 -4
- package/types/Interfaces/Context/IApplication.d.ts +0 -10
- package/types/Interfaces/Context/IDevice.d.ts +0 -22
- package/types/Interfaces/Context/IInternal.d.ts +0 -23
- package/types/Interfaces/Context/ILocation.d.ts +0 -6
- package/types/Interfaces/Context/IOperatingSystem.d.ts +0 -3
- package/types/Interfaces/Context/ISample.d.ts +0 -8
- package/types/Interfaces/Context/ISession.d.ts +0 -17
- package/types/Interfaces/Context/ITelemetryTrace.d.ts +0 -25
- package/types/Interfaces/Context/IUser.d.ts +0 -39
- package/types/Interfaces/Context/IWeb.d.ts +0 -30
- package/types/Interfaces/Contracts/AvailabilityData.d.ts +0 -0
- package/types/Interfaces/Contracts/ContextTagKeys.d.ts +0 -175
- package/types/Interfaces/Contracts/DataPointType.d.ts +0 -7
- package/types/Interfaces/Contracts/DependencyKind.d.ts +0 -8
- package/types/Interfaces/Contracts/DependencySourceType.d.ts +0 -8
- package/types/Interfaces/Contracts/IBase.d.ts +0 -9
- package/types/Interfaces/Contracts/IData.d.ts +0 -14
- package/types/Interfaces/Contracts/IDataPoint.d.ts +0 -34
- package/types/Interfaces/Contracts/IDomain.d.ts +0 -5
- package/types/Interfaces/Contracts/IEnvelope.d.ts +0 -0
- package/types/Interfaces/Contracts/IEventData.d.ts +0 -22
- package/types/Interfaces/Contracts/IExceptionData.d.ts +0 -28
- package/types/Interfaces/Contracts/IExceptionDetails.d.ts +0 -34
- package/types/Interfaces/Contracts/IMessageData.d.ts +0 -27
- package/types/Interfaces/Contracts/IMetricData.d.ts +0 -23
- package/types/Interfaces/Contracts/IPageViewData.d.ts +0 -18
- package/types/Interfaces/Contracts/IPageViewPerfData.d.ts +0 -26
- package/types/Interfaces/Contracts/IRemoteDependencyData.d.ts +0 -50
- package/types/Interfaces/Contracts/IStackFrame.d.ts +0 -25
- package/types/Interfaces/Contracts/RequestData.d.ts +0 -0
- package/types/Interfaces/Contracts/SeverityLevel.d.ts +0 -15
- package/types/Interfaces/IAppInsights.d.ts +0 -37
- package/types/Interfaces/IConfig.d.ts +0 -323
- package/types/Interfaces/ICorrelationConfig.d.ts +0 -59
- package/types/Interfaces/IDependencyTelemetry.d.ts +0 -17
- package/types/Interfaces/IEventTelemetry.d.ts +0 -15
- package/types/Interfaces/IExceptionTelemetry.d.ts +0 -123
- package/types/Interfaces/IMetricTelemetry.d.ts +0 -46
- package/types/Interfaces/IPageViewPerformanceTelemetry.d.ts +0 -55
- package/types/Interfaces/IPageViewTelemetry.d.ts +0 -52
- package/types/Interfaces/IPartC.d.ts +0 -18
- package/types/Interfaces/IPropertiesPlugin.d.ts +0 -4
- package/types/Interfaces/IRequestContext.d.ts +0 -6
- package/types/Interfaces/ITelemetryContext.d.ts +0 -55
- package/types/Interfaces/IThrottleMgr.d.ts +0 -96
- package/types/Interfaces/ITraceTelemetry.d.ts +0 -22
- package/types/Interfaces/PartAExtensions.d.ts +0 -12
- package/types/Interfaces/Telemetry/IEnvelope.d.ts +0 -37
- package/types/Interfaces/Telemetry/ISerializable.d.ts +0 -8
- package/types/RequestResponseHeaders.d.ts +0 -68
- package/types/StorageHelperFuncs.d.ts +0 -23
- package/types/Telemetry/Common/Data.d.ts +0 -24
- package/types/Telemetry/Common/DataPoint.d.ts +0 -46
- package/types/Telemetry/Common/DataSanitizer.d.ts +0 -42
- package/types/Telemetry/Common/Envelope.d.ts +0 -45
- package/types/Telemetry/Event.d.ts +0 -34
- package/types/Telemetry/Exception.d.ts +0 -150
- package/types/Telemetry/Metric.d.ts +0 -36
- package/types/Telemetry/PageView.d.ts +0 -53
- package/types/Telemetry/PageViewPerformance.d.ts +0 -78
- package/types/Telemetry/RemoteDependencyData.d.ts +0 -79
- package/types/Telemetry/Trace.d.ts +0 -41
- package/types/TelemetryItemCreator.d.ts +0 -27
- package/types/ThrottleMgr.d.ts +0 -13
- package/types/UrlHelperFuncs.d.ts +0 -6
- package/types/Util.d.ts +0 -36
- package/types/__DynamicConstants.d.ts +0 -38
- package/types/tsdoc-metadata.json +0 -11
- /package/{dist-esm → dist-es5}/ConnectionStringParser.js.map +0 -0
- /package/{dist-esm → dist-es5}/Constants.js.map +0 -0
- /package/{dist-esm → dist-es5}/DomHelperFuncs.js.map +0 -0
- /package/{dist-esm → dist-es5}/Enums.js.map +0 -0
- /package/{dist-esm → dist-es5}/HelperFuncs.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/ConnectionString.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Context/IApplication.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Context/IDevice.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Context/IInternal.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Context/ILocation.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Context/IOperatingSystem.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Context/ISample.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Context/ISession.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Context/ITelemetryTrace.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Context/IUser.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Context/IWeb.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/AvailabilityData.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/ContextTagKeys.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/DataPointType.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/DependencyKind.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/DependencySourceType.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IBase.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IData.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IDataPoint.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IDomain.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IEnvelope.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IEventData.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IExceptionData.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IExceptionDetails.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IMessageData.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IMetricData.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IPageViewData.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IPageViewPerfData.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IRemoteDependencyData.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IStackFrame.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/RequestData.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/SeverityLevel.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/IAppInsights.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/IConfig.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/ICorrelationConfig.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/IDependencyTelemetry.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/IEventTelemetry.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/IExceptionTelemetry.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/IMetricTelemetry.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/IPageViewPerformanceTelemetry.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/IPageViewTelemetry.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/IPartC.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/IPropertiesPlugin.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/IRequestContext.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/ITelemetryContext.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/IThrottleMgr.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/ITraceTelemetry.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/PartAExtensions.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Telemetry/IEnvelope.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Telemetry/ISerializable.js.map +0 -0
- /package/{dist-esm → dist-es5}/RequestResponseHeaders.js.map +0 -0
- /package/{dist-esm → dist-es5}/StorageHelperFuncs.js.map +0 -0
- /package/{dist-esm → dist-es5}/Telemetry/Common/Data.js.map +0 -0
- /package/{dist-esm → dist-es5}/Telemetry/Common/DataPoint.js.map +0 -0
- /package/{dist-esm → dist-es5}/Telemetry/Common/Envelope.js.map +0 -0
- /package/{dist-esm → dist-es5}/Telemetry/Event.js.map +0 -0
- /package/{dist-esm → dist-es5}/Telemetry/Exception.js.map +0 -0
- /package/{dist-esm → dist-es5}/Telemetry/Metric.js.map +0 -0
- /package/{dist-esm → dist-es5}/Telemetry/PageView.js.map +0 -0
- /package/{dist-esm → dist-es5}/Telemetry/PageViewPerformance.js.map +0 -0
- /package/{dist-esm → dist-es5}/Telemetry/RemoteDependencyData.js.map +0 -0
- /package/{dist-esm → dist-es5}/Telemetry/Trace.js.map +0 -0
- /package/{dist-esm → dist-es5}/TelemetryItemCreator.js.map +0 -0
- /package/{dist-esm → dist-es5}/ThrottleMgr.js.map +0 -0
- /package/{dist-esm → dist-es5}/UrlHelperFuncs.js.map +0 -0
- /package/{dist-esm → dist-es5}/Util.js.map +0 -0
- /package/{dist-esm → dist-es5}/__DynamicConstants.js.map +0 -0
- /package/{dist-esm → dist-es5}/applicationinsights-common.js.map +0 -0
|
@@ -1,396 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import { IConfiguration, ICustomProperties, isNullOrUndefined } from "@microsoft/applicationinsights-core-js";
|
|
4
|
-
import { DistributedTracingModes } from "../Enums";
|
|
5
|
-
import { IRequestContext } from "./IRequestContext";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Configuration settings for how telemetry is sent
|
|
9
|
-
* @export
|
|
10
|
-
* @interface IConfig
|
|
11
|
-
*/
|
|
12
|
-
export interface IConfig {
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* The JSON format (normal vs line delimited). True means line delimited JSON.
|
|
16
|
-
*/
|
|
17
|
-
emitLineDelimitedJson?: boolean;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* An optional account id, if your app groups users into accounts. No spaces, commas, semicolons, equals, or vertical bars.
|
|
21
|
-
*/
|
|
22
|
-
accountId?: string;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* A session is logged if the user is inactive for this amount of time in milliseconds. Default 30 mins.
|
|
26
|
-
* @default 30*60*1000
|
|
27
|
-
*/
|
|
28
|
-
sessionRenewalMs?: number;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* A session is logged if it has continued for this amount of time in milliseconds. Default 24h.
|
|
32
|
-
* @default 24*60*60*1000
|
|
33
|
-
*/
|
|
34
|
-
sessionExpirationMs?: number;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Max size of telemetry batch. If batch exceeds limit, it is sent and a new batch is started
|
|
38
|
-
* @default 100000
|
|
39
|
-
*/
|
|
40
|
-
maxBatchSizeInBytes?: number;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* How long to batch telemetry for before sending (milliseconds)
|
|
44
|
-
* @default 15 seconds
|
|
45
|
-
*/
|
|
46
|
-
maxBatchInterval?: number;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* If true, debugging data is thrown as an exception by the logger. Default false
|
|
50
|
-
* @defaultValue false
|
|
51
|
-
*/
|
|
52
|
-
enableDebug?: boolean;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* If true, exceptions are not autocollected. Default is false
|
|
56
|
-
* @defaultValue false
|
|
57
|
-
*/
|
|
58
|
-
disableExceptionTracking?: boolean;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* If true, telemetry is not collected or sent. Default is false
|
|
62
|
-
* @defaultValue false
|
|
63
|
-
*/
|
|
64
|
-
disableTelemetry?: boolean;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Percentage of events that will be sent. Default is 100, meaning all events are sent.
|
|
68
|
-
* @defaultValue 100
|
|
69
|
-
*/
|
|
70
|
-
samplingPercentage?: number;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* If true, on a pageview, the previous instrumented page's view time is tracked and sent as telemetry and a new timer is started for the current pageview. It is sent as a custom metric named PageVisitTime in milliseconds and is calculated via the Date now() function (if available) and falls back to (new Date()).getTime() if now() is unavailable (IE8 or less). Default is false.
|
|
74
|
-
*/
|
|
75
|
-
autoTrackPageVisitTime?: boolean;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Automatically track route changes in Single Page Applications (SPA). If true, each route change will send a new Pageview to Application Insights.
|
|
79
|
-
*/
|
|
80
|
-
enableAutoRouteTracking?: boolean;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* If true, Ajax calls are not autocollected. Default is false
|
|
84
|
-
* @defaultValue false
|
|
85
|
-
*/
|
|
86
|
-
disableAjaxTracking?: boolean;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* If true, Fetch requests are not autocollected. Default is false (Since 2.8.0, previously true).
|
|
90
|
-
* @defaultValue false
|
|
91
|
-
*/
|
|
92
|
-
disableFetchTracking?: boolean;
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Provide a way to exclude specific route from automatic tracking for XMLHttpRequest or Fetch request. For an ajax / fetch request that the request url matches with the regex patterns, auto tracking is turned off.
|
|
96
|
-
* @defaultValue undefined.
|
|
97
|
-
*/
|
|
98
|
-
excludeRequestFromAutoTrackingPatterns?: string[] | RegExp[];
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Provide a way to enrich dependencies logs with context at the beginning of api call.
|
|
102
|
-
* Default is undefined.
|
|
103
|
-
*/
|
|
104
|
-
addRequestContext?: (requestContext?: IRequestContext) => ICustomProperties;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* If true, default behavior of trackPageView is changed to record end of page view duration interval when trackPageView is called. If false and no custom duration is provided to trackPageView, the page view performance is calculated using the navigation timing API. Default is false
|
|
108
|
-
* @defaultValue false
|
|
109
|
-
*/
|
|
110
|
-
overridePageViewDuration?: boolean;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Default 500 - controls how many ajax calls will be monitored per page view. Set to -1 to monitor all (unlimited) ajax calls on the page.
|
|
114
|
-
*/
|
|
115
|
-
maxAjaxCallsPerView?: number;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* @ignore
|
|
119
|
-
* If false, internal telemetry sender buffers will be checked at startup for items not yet sent. Default is true
|
|
120
|
-
* @defaultValue true
|
|
121
|
-
*/
|
|
122
|
-
disableDataLossAnalysis?: boolean;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* If false, the SDK will add two headers ('Request-Id' and 'Request-Context') to all dependency requests to correlate them with corresponding requests on the server side. Default is false.
|
|
126
|
-
* @defaultValue false
|
|
127
|
-
*/
|
|
128
|
-
disableCorrelationHeaders?: boolean;
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Sets the distributed tracing mode. If AI_AND_W3C mode or W3C mode is set, W3C trace context headers (traceparent/tracestate) will be generated and included in all outgoing requests.
|
|
132
|
-
* AI_AND_W3C is provided for back-compatibility with any legacy Application Insights instrumented services
|
|
133
|
-
* @defaultValue AI_AND_W3C
|
|
134
|
-
*/
|
|
135
|
-
distributedTracingMode?: DistributedTracingModes;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Disable correlation headers for specific domain
|
|
139
|
-
*/
|
|
140
|
-
correlationHeaderExcludedDomains?: string[];
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Default false. If true, flush method will not be called when onBeforeUnload, onUnload, onPageHide or onVisibilityChange (hidden state) event(s) trigger.
|
|
144
|
-
*/
|
|
145
|
-
disableFlushOnBeforeUnload?: boolean;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Default value of {@link #disableFlushOnBeforeUnload}. If true, flush method will not be called when onPageHide or onVisibilityChange (hidden state) event(s) trigger.
|
|
149
|
-
*/
|
|
150
|
-
disableFlushOnUnload?: boolean;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* [Optional] An array of the page unload events that you would like to be ignored, special note there must be at least one valid unload
|
|
154
|
-
* event hooked, if you list all or the runtime environment only supports a listed "disabled" event it will still be hooked if required by the SDK.
|
|
155
|
-
* (Some page unload functionality may be disabled via disableFlushOnBeforeUnload or disableFlushOnUnload config entries)
|
|
156
|
-
* Unload events include "beforeunload", "unload", "visibilitychange" (with 'hidden' state) and "pagehide"
|
|
157
|
-
*/
|
|
158
|
-
disablePageUnloadEvents?: string[];
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* [Optional] An array of page show events that you would like to be ignored, special note there must be at lease one valid show event
|
|
162
|
-
* hooked, if you list all or the runtime environment only supports a listed (disabled) event it will STILL be hooked if required by the SDK.
|
|
163
|
-
* Page Show events include "pageshow" and "visibilitychange" (with 'visible' state)
|
|
164
|
-
*/
|
|
165
|
-
disablePageShowEvents?: string[];
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* If true, the buffer with all unsent telemetry is stored in session storage. The buffer is restored on page load. Default is true.
|
|
169
|
-
* @defaultValue true
|
|
170
|
-
*/
|
|
171
|
-
enableSessionStorageBuffer?: boolean;
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* @deprecated Use either disableCookiesUsage or specify a cookieCfg with the enabled value set.
|
|
175
|
-
* If true, the SDK will not store or read any data from cookies. Default is false. As this field is being deprecated, when both
|
|
176
|
-
* isCookieUseDisabled and disableCookiesUsage are used disableCookiesUsage will take precedent.
|
|
177
|
-
* @defaultValue false
|
|
178
|
-
*/
|
|
179
|
-
isCookieUseDisabled?: boolean;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* If true, the SDK will not store or read any data from cookies. Default is false.
|
|
183
|
-
* If you have also specified a cookieCfg then enabled property (if specified) will take precedent over this value.
|
|
184
|
-
* @defaultValue false
|
|
185
|
-
*/
|
|
186
|
-
disableCookiesUsage?: boolean;
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Custom cookie domain. This is helpful if you want to share Application Insights cookies across subdomains.
|
|
190
|
-
* @defaultValue ""
|
|
191
|
-
*/
|
|
192
|
-
cookieDomain?: string;
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Custom cookie path. This is helpful if you want to share Application Insights cookies behind an application gateway.
|
|
196
|
-
* @defaultValue ""
|
|
197
|
-
*/
|
|
198
|
-
cookiePath?: string;
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* Default false. If false, retry on 206 (partial success), 408 (timeout), 429 (too many requests), 500 (internal server error), 503 (service unavailable), and 0 (offline, only if detected)
|
|
202
|
-
* @description
|
|
203
|
-
* @defaultValue false
|
|
204
|
-
*/
|
|
205
|
-
isRetryDisabled?: boolean;
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* @deprecated Used when initizialing from snippet only.
|
|
209
|
-
* The url from where the JS SDK will be downloaded.
|
|
210
|
-
*/
|
|
211
|
-
url?: string;
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* If true, the SDK will not store or read any data from local and session storage. Default is false.
|
|
215
|
-
* @defaultValue false
|
|
216
|
-
*/
|
|
217
|
-
isStorageUseDisabled?: boolean;
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* If false, the SDK will send all telemetry using the [Beacon API](https://www.w3.org/TR/beacon)
|
|
221
|
-
* @defaultValue true
|
|
222
|
-
*/
|
|
223
|
-
isBeaconApiDisabled?: boolean;
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* Don't use XMLHttpRequest or XDomainRequest (for IE < 9) by default instead attempt to use fetch() or sendBeacon.
|
|
227
|
-
* If no other transport is available it will still use XMLHttpRequest
|
|
228
|
-
*/
|
|
229
|
-
disableXhr?: boolean;
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* If fetch keepalive is supported do not use it for sending events during unload, it may still fallback to fetch() without keepalive
|
|
233
|
-
*/
|
|
234
|
-
onunloadDisableFetch?: boolean;
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* Sets the sdk extension name. Only alphabetic characters are allowed. The extension name is added as a prefix to the 'ai.internal.sdkVersion' tag (e.g. 'ext_javascript:2.0.0'). Default is null.
|
|
238
|
-
* @defaultValue null
|
|
239
|
-
*/
|
|
240
|
-
sdkExtension?: string;
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* Default is false. If true, the SDK will track all [Browser Link](https://docs.microsoft.com/en-us/aspnet/core/client-side/using-browserlink) requests.
|
|
244
|
-
* @defaultValue false
|
|
245
|
-
*/
|
|
246
|
-
isBrowserLinkTrackingEnabled?: boolean;
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* AppId is used for the correlation between AJAX dependencies happening on the client-side with the server-side requets. When Beacon API is enabled, it cannot be used automatically, but can be set manually in the configuration. Default is null
|
|
250
|
-
* @defaultValue null
|
|
251
|
-
*/
|
|
252
|
-
appId?: string;
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* If true, the SDK will add two headers ('Request-Id' and 'Request-Context') to all CORS requests to correlate outgoing AJAX dependencies with corresponding requests on the server side. Default is false
|
|
256
|
-
* @defaultValue false
|
|
257
|
-
*/
|
|
258
|
-
enableCorsCorrelation?: boolean;
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* An optional value that will be used as name postfix for localStorage and session cookie name.
|
|
262
|
-
* @defaultValue null
|
|
263
|
-
*/
|
|
264
|
-
namePrefix?: string;
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* An optional value that will be used as name postfix for session cookie name. If undefined, namePrefix is used as name postfix for session cookie name.
|
|
268
|
-
* @defaultValue null
|
|
269
|
-
*/
|
|
270
|
-
sessionCookiePostfix?: string;
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* An optional value that will be used as name postfix for user cookie name. If undefined, no postfix is added on user cookie name.
|
|
274
|
-
* @defaultValue null
|
|
275
|
-
*/
|
|
276
|
-
userCookiePostfix?: string;
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* An optional value that will track Request Header through trackDependency function.
|
|
280
|
-
* @defaultValue false
|
|
281
|
-
*/
|
|
282
|
-
enableRequestHeaderTracking?: boolean;
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* An optional value that will track Response Header through trackDependency function.
|
|
286
|
-
* @defaultValue false
|
|
287
|
-
*/
|
|
288
|
-
enableResponseHeaderTracking?: boolean;
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* An optional value that will track Response Error data through trackDependency function.
|
|
292
|
-
* @defaultValue false
|
|
293
|
-
*/
|
|
294
|
-
enableAjaxErrorStatusText?: boolean;
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* Flag to enable looking up and including additional browser window.performance timings
|
|
298
|
-
* in the reported ajax (XHR and fetch) reported metrics.
|
|
299
|
-
* Defaults to false.
|
|
300
|
-
*/
|
|
301
|
-
enableAjaxPerfTracking?:boolean;
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
* The maximum number of times to look for the window.performance timings (if available), this
|
|
305
|
-
* is required as not all browsers populate the window.performance before reporting the
|
|
306
|
-
* end of the XHR request and for fetch requests this is added after its complete
|
|
307
|
-
* Defaults to 3
|
|
308
|
-
*/
|
|
309
|
-
maxAjaxPerfLookupAttempts?: number;
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* The amount of time to wait before re-attempting to find the windows.performance timings
|
|
313
|
-
* for an ajax request, time is in milliseconds and is passed directly to setTimeout()
|
|
314
|
-
* Defaults to 25.
|
|
315
|
-
*/
|
|
316
|
-
ajaxPerfLookupDelay?: number;
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
* Default false. when tab is closed, the SDK will send all remaining telemetry using the [Beacon API](https://www.w3.org/TR/beacon)
|
|
320
|
-
* @defaultValue false
|
|
321
|
-
*/
|
|
322
|
-
onunloadDisableBeacon?: boolean;
|
|
323
|
-
|
|
324
|
-
// Internal
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* @ignore
|
|
328
|
-
* Internal only
|
|
329
|
-
*/
|
|
330
|
-
autoExceptionInstrumented?: boolean;
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
*
|
|
334
|
-
*/
|
|
335
|
-
correlationHeaderDomains?: string[]
|
|
336
|
-
|
|
337
|
-
/**
|
|
338
|
-
* @ignore
|
|
339
|
-
* Internal only
|
|
340
|
-
*/
|
|
341
|
-
autoUnhandledPromiseInstrumented?: boolean;
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* Default false. Define whether to track unhandled promise rejections and report as JS errors.
|
|
345
|
-
* When disableExceptionTracking is enabled (dont track exceptions) this value will be false.
|
|
346
|
-
* @defaultValue false
|
|
347
|
-
*/
|
|
348
|
-
enableUnhandledPromiseRejectionTracking?: boolean;
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* Disable correlation headers using regular expressions
|
|
352
|
-
*/
|
|
353
|
-
correlationHeaderExcludePatterns?: RegExp[];
|
|
354
|
-
|
|
355
|
-
/**
|
|
356
|
-
* The ability for the user to provide extra headers
|
|
357
|
-
*/
|
|
358
|
-
customHeaders?: [{header: string, value: string}];
|
|
359
|
-
|
|
360
|
-
/**
|
|
361
|
-
* Provide user an option to convert undefined field to user defined value.
|
|
362
|
-
*/
|
|
363
|
-
convertUndefined?: any,
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* [Optional] The number of events that can be kept in memory before the SDK starts to drop events. By default, this is 10,000.
|
|
367
|
-
*/
|
|
368
|
-
eventsLimitInMem?: number;
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* [Optional] Disable iKey deprecation error message.
|
|
372
|
-
* @defaultValue true
|
|
373
|
-
*/
|
|
374
|
-
disableIkeyDeprecationMessage?: boolean;
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* [Optional] Flag to indicate whether the internal looking endpoints should be automatically
|
|
378
|
-
* added to the `excludeRequestFromAutoTrackingPatterns` collection. (defaults to true).
|
|
379
|
-
* This flag exists as the provided regex is generic and may unexpectedly match a domain that
|
|
380
|
-
* should not be excluded.
|
|
381
|
-
*/
|
|
382
|
-
addIntEndpoints?: boolean;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
export class ConfigurationManager {
|
|
386
|
-
public static getConfig(config: IConfiguration & IConfig, field: string, identifier?: string, defaultValue: number | string | boolean = false): number | string | boolean {
|
|
387
|
-
let configValue;
|
|
388
|
-
if (identifier && config.extensionConfig && config.extensionConfig[identifier] && !isNullOrUndefined(config.extensionConfig[identifier][field])) {
|
|
389
|
-
configValue = config.extensionConfig[identifier][field];
|
|
390
|
-
} else {
|
|
391
|
-
configValue = config[field];
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
return !isNullOrUndefined(configValue) ? configValue : defaultValue;
|
|
395
|
-
}
|
|
396
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { ICustomProperties } from "@microsoft/applicationinsights-core-js";
|
|
5
|
-
import { DistributedTracingModes } from "../Enums";
|
|
6
|
-
import { IRequestContext } from "./IRequestContext";
|
|
7
|
-
|
|
8
|
-
export interface ICorrelationConfig {
|
|
9
|
-
enableCorsCorrelation: boolean;
|
|
10
|
-
correlationHeaderExcludedDomains: string[];
|
|
11
|
-
correlationHeaderExcludePatterns?: RegExp[];
|
|
12
|
-
disableCorrelationHeaders: boolean;
|
|
13
|
-
distributedTracingMode: DistributedTracingModes;
|
|
14
|
-
maxAjaxCallsPerView: number;
|
|
15
|
-
disableAjaxTracking: boolean;
|
|
16
|
-
disableFetchTracking: boolean;
|
|
17
|
-
appId?: string;
|
|
18
|
-
enableRequestHeaderTracking?: boolean;
|
|
19
|
-
enableResponseHeaderTracking?: boolean;
|
|
20
|
-
enableAjaxErrorStatusText?: boolean;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Flag to enable looking up and including additional browser window.performance timings
|
|
24
|
-
* in the reported ajax (XHR and fetch) reported metrics.
|
|
25
|
-
* Defaults to false.
|
|
26
|
-
*/
|
|
27
|
-
enableAjaxPerfTracking?: boolean;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* The maximum number of times to look for the window.performance timings (if available), this
|
|
31
|
-
* is required as not all browsers populate the window.performance before reporting the
|
|
32
|
-
* end of the XHR request and for fetch requests this is added after its complete
|
|
33
|
-
* Defaults to 3
|
|
34
|
-
*/
|
|
35
|
-
maxAjaxPerfLookupAttempts?: number;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* The amount of time to wait before re-attempting to find the windows.performance timings
|
|
39
|
-
* for an ajax request, time is in milliseconds and is passed directly to setTimeout()
|
|
40
|
-
* Defaults to 25.
|
|
41
|
-
*/
|
|
42
|
-
ajaxPerfLookupDelay?: number;
|
|
43
|
-
|
|
44
|
-
correlationHeaderDomains?: string[];
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Response and request headers to be excluded from ajax tracking data.
|
|
48
|
-
*/
|
|
49
|
-
ignoreHeaders?: string[];
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Provide a way to exclude specific route from automatic tracking for XMLHttpRequest or Fetch request.
|
|
53
|
-
* For an ajax / fetch request that the request url matches with the regex patterns, auto tracking is turned off.
|
|
54
|
-
* Default is undefined.
|
|
55
|
-
*/
|
|
56
|
-
excludeRequestFromAutoTrackingPatterns?: string[] | RegExp[];
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Provide a way to enrich dependencies logs with context at the beginning of api call.
|
|
60
|
-
* Default is undefined.
|
|
61
|
-
*/
|
|
62
|
-
addRequestContext?: (requestContext?: IRequestContext) => ICustomProperties;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* [Optional] Flag to indicate whether the internal looking endpoints should be automatically
|
|
66
|
-
* added to the `excludeRequestFromAutoTrackingPatterns` collection. (defaults to true).
|
|
67
|
-
* This flag exists as the provided regex is generic and may unexpectedly match a domain that
|
|
68
|
-
* should not be excluded.
|
|
69
|
-
*/
|
|
70
|
-
addIntEndpoints?: boolean;
|
|
71
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { IPartC } from "./IPartC";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* DependencyTelemetry telemetry interface
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
export interface IDependencyTelemetry extends IPartC {
|
|
11
|
-
id: string;
|
|
12
|
-
name?: string;
|
|
13
|
-
duration?: number;
|
|
14
|
-
success?: boolean;
|
|
15
|
-
startTime?: Date;
|
|
16
|
-
responseCode: number;
|
|
17
|
-
correlationContext?: string;
|
|
18
|
-
type?: string;
|
|
19
|
-
data?: string;
|
|
20
|
-
target?: string;
|
|
21
|
-
iKey?: string;
|
|
22
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IPartC } from "./IPartC";
|
|
2
|
-
|
|
3
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
-
// Licensed under the MIT License.
|
|
5
|
-
|
|
6
|
-
export interface IEventTelemetry extends IPartC {
|
|
7
|
-
/**
|
|
8
|
-
* @description An event name string
|
|
9
|
-
* @type {string}
|
|
10
|
-
* @memberof IEventTelemetry
|
|
11
|
-
*/
|
|
12
|
-
name: string;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @description custom defined iKey
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof IEventTelemetry
|
|
18
|
-
*/
|
|
19
|
-
iKey?: string;
|
|
20
|
-
}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { SeverityLevel } from "./Contracts/SeverityLevel"
|
|
5
|
-
import { IPartC } from "./IPartC";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @export
|
|
9
|
-
* @interface IExceptionTelemetry
|
|
10
|
-
* @description Exception interface used as primary parameter to trackException
|
|
11
|
-
*/
|
|
12
|
-
export interface IExceptionTelemetry extends IPartC {
|
|
13
|
-
/**
|
|
14
|
-
* Unique guid identifying this error
|
|
15
|
-
*/
|
|
16
|
-
id?: string;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated
|
|
20
|
-
* @type {Error}
|
|
21
|
-
* @memberof IExceptionTelemetry
|
|
22
|
-
* @description DEPRECATED: Please use exception instead. Behavior/usage for exception remains the same as this field.
|
|
23
|
-
*/
|
|
24
|
-
error?: Error;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @type {Error}
|
|
28
|
-
* @memberof IExceptionTelemetry
|
|
29
|
-
* @description Error Object(s)
|
|
30
|
-
*/
|
|
31
|
-
exception?: Error | IAutoExceptionTelemetry;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @description Specified severity of exception for use with
|
|
35
|
-
* telemetry filtering in dashboard
|
|
36
|
-
* @type {(SeverityLevel | number)}
|
|
37
|
-
* @memberof IExceptionTelemetry
|
|
38
|
-
*/
|
|
39
|
-
severityLevel?: SeverityLevel | number;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* @description window.onerror function parameters
|
|
44
|
-
* @export
|
|
45
|
-
* @interface IAutoExceptionTelemetry
|
|
46
|
-
*/
|
|
47
|
-
export interface IAutoExceptionTelemetry {
|
|
48
|
-
/**
|
|
49
|
-
* @description error message. Available as event in HTML onerror="" handler
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof IAutoExceptionTelemetry
|
|
52
|
-
*/
|
|
53
|
-
message: string;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @description URL of the script where the error was raised
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof IAutoExceptionTelemetry
|
|
59
|
-
*/
|
|
60
|
-
url: string;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* @description Line number where error was raised
|
|
64
|
-
* @type {number}
|
|
65
|
-
* @memberof IAutoExceptionTelemetry
|
|
66
|
-
*/
|
|
67
|
-
lineNumber: number;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* @description Column number for the line where the error occurred
|
|
71
|
-
* @type {number}
|
|
72
|
-
* @memberof IAutoExceptionTelemetry
|
|
73
|
-
*/
|
|
74
|
-
columnNumber: number;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* @description Error Object (object)
|
|
78
|
-
* @type {any}
|
|
79
|
-
* @memberof IAutoExceptionTelemetry
|
|
80
|
-
*/
|
|
81
|
-
error: any;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* @description The event at the time of the exception (object)
|
|
85
|
-
* @type {Event|string}
|
|
86
|
-
* @memberof IAutoExceptionTelemetry
|
|
87
|
-
*/
|
|
88
|
-
evt?: Event|string;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* @description The provided stack for the error
|
|
92
|
-
* @type {IStackDetails}
|
|
93
|
-
* @memberof IAutoExceptionTelemetry
|
|
94
|
-
*/
|
|
95
|
-
stackDetails?: IStackDetails;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* @description The calculated type of the error
|
|
99
|
-
* @type {string}
|
|
100
|
-
* @memberof IAutoExceptionTelemetry
|
|
101
|
-
*/
|
|
102
|
-
typeName?: string;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* @description The descriptive source of the error
|
|
106
|
-
* @type {string}
|
|
107
|
-
* @memberof IAutoExceptionTelemetry
|
|
108
|
-
*/
|
|
109
|
-
errorSrc?: string;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export interface IExceptionInternal extends IPartC {
|
|
113
|
-
ver: string;
|
|
114
|
-
id: string;
|
|
115
|
-
exceptions: IExceptionDetailsInternal[];
|
|
116
|
-
severityLevel?: SeverityLevel | number;
|
|
117
|
-
problemGroup: string;
|
|
118
|
-
isManual: boolean;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export interface IExceptionDetailsInternal {
|
|
122
|
-
id: number;
|
|
123
|
-
outerId: number;
|
|
124
|
-
typeName: string;
|
|
125
|
-
message: string;
|
|
126
|
-
hasFullStack: boolean;
|
|
127
|
-
stack: string;
|
|
128
|
-
parsedStack: IExceptionStackFrameInternal[];
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export interface IExceptionStackFrameInternal {
|
|
132
|
-
level: number;
|
|
133
|
-
method: string;
|
|
134
|
-
assembly: string;
|
|
135
|
-
fileName: string;
|
|
136
|
-
line: number;
|
|
137
|
-
pos?: number;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export interface IStackDetails {
|
|
141
|
-
src: string,
|
|
142
|
-
obj: string[],
|
|
143
|
-
}
|