@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
package/src/Telemetry/Metric.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
5
|
-
import { strNotSpecified } from "../Constants";
|
|
6
|
-
import { FieldType } from "../Enums";
|
|
7
|
-
import { IMetricData } from "../Interfaces/Contracts/IMetricData";
|
|
8
|
-
import { ISerializable } from "../Interfaces/Telemetry/ISerializable";
|
|
9
|
-
import { DataPoint } from "./Common/DataPoint";
|
|
10
|
-
import { dataSanitizeMeasurements, dataSanitizeProperties, dataSanitizeString } from "./Common/DataSanitizer";
|
|
11
|
-
|
|
12
|
-
export class Metric implements IMetricData, ISerializable {
|
|
13
|
-
|
|
14
|
-
public static envelopeType = "Microsoft.ApplicationInsights.{0}.Metric";
|
|
15
|
-
public static dataType = "MetricData";
|
|
16
|
-
|
|
17
|
-
public aiDataContract = {
|
|
18
|
-
ver: FieldType.Required,
|
|
19
|
-
metrics: FieldType.Required,
|
|
20
|
-
properties: FieldType.Default
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Schema version
|
|
25
|
-
*/
|
|
26
|
-
public ver: number; /* 2 */
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* List of metrics. Only one metric in the list is currently supported by Application Insights storage. If multiple data points were sent only the first one will be used.
|
|
30
|
-
*/
|
|
31
|
-
public metrics: DataPoint[]; /* [] */
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Collection of custom properties.
|
|
35
|
-
*/
|
|
36
|
-
properties: any; /* {} */
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Collection of custom measurements.
|
|
40
|
-
*/
|
|
41
|
-
measurements: any; /* {} */
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Constructs a new instance of the MetricTelemetry object
|
|
45
|
-
*/
|
|
46
|
-
constructor(logger: IDiagnosticLogger, name: string, value: number, count?: number, min?: number, max?: number, stdDev?: number, properties?: any, measurements?: { [key: string]: number }) {
|
|
47
|
-
let _self = this;
|
|
48
|
-
_self.ver = 2;
|
|
49
|
-
const dataPoint = new DataPoint();
|
|
50
|
-
dataPoint.count = count > 0 ? count : undefined;
|
|
51
|
-
dataPoint.max = isNaN(max) || max === null ? undefined : max;
|
|
52
|
-
dataPoint.min = isNaN(min) || min === null ? undefined : min;
|
|
53
|
-
dataPoint.name = dataSanitizeString(logger, name) || strNotSpecified;
|
|
54
|
-
dataPoint.value = value;
|
|
55
|
-
dataPoint.stdDev = isNaN(stdDev) || stdDev === null ? undefined : stdDev;
|
|
56
|
-
|
|
57
|
-
_self.metrics = [dataPoint];
|
|
58
|
-
_self.properties = dataSanitizeProperties(logger, properties);
|
|
59
|
-
_self.measurements = dataSanitizeMeasurements(logger, measurements);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
5
|
-
import { strNotSpecified } from "../Constants";
|
|
6
|
-
import { FieldType } from "../Enums";
|
|
7
|
-
import { msToTimeSpan } from "../HelperFuncs";
|
|
8
|
-
import { IPageViewData } from "../Interfaces/Contracts/IPageViewData";
|
|
9
|
-
import { ISerializable } from "../Interfaces/Telemetry/ISerializable";
|
|
10
|
-
import {
|
|
11
|
-
dataSanitizeId, dataSanitizeMeasurements, dataSanitizeProperties, dataSanitizeString, dataSanitizeUrl
|
|
12
|
-
} from "./Common/DataSanitizer";
|
|
13
|
-
|
|
14
|
-
export class PageView implements IPageViewData, ISerializable {
|
|
15
|
-
|
|
16
|
-
public static envelopeType = "Microsoft.ApplicationInsights.{0}.Pageview";
|
|
17
|
-
public static dataType = "PageviewData";
|
|
18
|
-
|
|
19
|
-
public aiDataContract = {
|
|
20
|
-
ver: FieldType.Required,
|
|
21
|
-
name: FieldType.Default,
|
|
22
|
-
url: FieldType.Default,
|
|
23
|
-
duration: FieldType.Default,
|
|
24
|
-
properties: FieldType.Default,
|
|
25
|
-
measurements: FieldType.Default,
|
|
26
|
-
id: FieldType.Default
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Schema version
|
|
31
|
-
*/
|
|
32
|
-
public ver: number; // = 2;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Event name. Keep it low cardinality to allow proper grouping and useful metrics.
|
|
36
|
-
*/
|
|
37
|
-
public name: string;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Collection of custom properties.
|
|
41
|
-
*/
|
|
42
|
-
public properties: any; // = {};
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Collection of custom measurements.
|
|
46
|
-
*/
|
|
47
|
-
public measurements: any; // = {};
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Request URL with all query string parameters
|
|
51
|
-
*/
|
|
52
|
-
public url: string;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days.
|
|
56
|
-
*/
|
|
57
|
-
public duration: string;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Identifier of a page view instance. Used for correlation between page view and other telemetry items.
|
|
61
|
-
*/
|
|
62
|
-
public id: string;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Constructs a new instance of the PageEventTelemetry object
|
|
66
|
-
*/
|
|
67
|
-
constructor(logger: IDiagnosticLogger, name?: string, url?: string, durationMs?: number, properties?: {[key: string]: string}, measurements?: {[key: string]: number}, id?: string) {
|
|
68
|
-
let _self = this;
|
|
69
|
-
_self.ver = 2;
|
|
70
|
-
_self.id = dataSanitizeId(logger, id);
|
|
71
|
-
_self.url = dataSanitizeUrl(logger, url);
|
|
72
|
-
_self.name = dataSanitizeString(logger, name) || strNotSpecified;
|
|
73
|
-
if (!isNaN(durationMs)) {
|
|
74
|
-
_self.duration = msToTimeSpan(durationMs);
|
|
75
|
-
}
|
|
76
|
-
_self.properties = dataSanitizeProperties(logger, properties);
|
|
77
|
-
_self.measurements = dataSanitizeMeasurements(logger, measurements);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
5
|
-
import { strNotSpecified } from "../Constants";
|
|
6
|
-
import { FieldType } from "../Enums";
|
|
7
|
-
import { IPageViewPerfData } from "../Interfaces/Contracts/IPageViewPerfData";
|
|
8
|
-
import { IPageViewPerformanceTelemetry } from "../Interfaces/IPageViewPerformanceTelemetry";
|
|
9
|
-
import { ISerializable } from "../Interfaces/Telemetry/ISerializable";
|
|
10
|
-
import { dataSanitizeMeasurements, dataSanitizeProperties, dataSanitizeString, dataSanitizeUrl } from "./Common/DataSanitizer";
|
|
11
|
-
|
|
12
|
-
export class PageViewPerformance implements IPageViewPerfData, ISerializable {
|
|
13
|
-
|
|
14
|
-
public static envelopeType = "Microsoft.ApplicationInsights.{0}.PageviewPerformance";
|
|
15
|
-
public static dataType = "PageviewPerformanceData";
|
|
16
|
-
|
|
17
|
-
public aiDataContract = {
|
|
18
|
-
ver: FieldType.Required,
|
|
19
|
-
name: FieldType.Default,
|
|
20
|
-
url: FieldType.Default,
|
|
21
|
-
duration: FieldType.Default,
|
|
22
|
-
perfTotal: FieldType.Default,
|
|
23
|
-
networkConnect: FieldType.Default,
|
|
24
|
-
sentRequest: FieldType.Default,
|
|
25
|
-
receivedResponse: FieldType.Default,
|
|
26
|
-
domProcessing: FieldType.Default,
|
|
27
|
-
properties: FieldType.Default,
|
|
28
|
-
measurements: FieldType.Default
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Schema version
|
|
33
|
-
*/
|
|
34
|
-
public ver: number; // = 2;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Event name. Keep it low cardinality to allow proper grouping and useful metrics.
|
|
38
|
-
*/
|
|
39
|
-
public name: string;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Collection of custom properties.
|
|
43
|
-
*/
|
|
44
|
-
public properties: any; // = {};
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Collection of custom measurements.
|
|
48
|
-
*/
|
|
49
|
-
public measurements: any; // = {};
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Request URL with all query string parameters
|
|
53
|
-
*/
|
|
54
|
-
public url: string;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days.
|
|
58
|
-
*/
|
|
59
|
-
public duration: string;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Identifier of a page view instance. Used for correlation between page view and other telemetry items.
|
|
63
|
-
*/
|
|
64
|
-
public id: string;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
68
|
-
*/
|
|
69
|
-
public perfTotal: string;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
73
|
-
*/
|
|
74
|
-
public networkConnect: string;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
78
|
-
*/
|
|
79
|
-
public sentRequest: string;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
83
|
-
*/
|
|
84
|
-
public receivedResponse: string;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
88
|
-
*/
|
|
89
|
-
public domProcessing: string;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Constructs a new instance of the PageEventTelemetry object
|
|
93
|
-
*/
|
|
94
|
-
constructor(logger: IDiagnosticLogger, name: string, url: string, unused: number, properties?: { [key: string]: string }, measurements?: { [key: string]: number }, cs4BaseData?: IPageViewPerformanceTelemetry) {
|
|
95
|
-
let _self = this;
|
|
96
|
-
|
|
97
|
-
_self.ver = 2;
|
|
98
|
-
_self.url = dataSanitizeUrl(logger, url);
|
|
99
|
-
_self.name = dataSanitizeString(logger, name) || strNotSpecified;
|
|
100
|
-
|
|
101
|
-
_self.properties = dataSanitizeProperties(logger, properties);
|
|
102
|
-
_self.measurements = dataSanitizeMeasurements(logger, measurements);
|
|
103
|
-
|
|
104
|
-
if (cs4BaseData) {
|
|
105
|
-
_self.domProcessing = cs4BaseData.domProcessing;
|
|
106
|
-
_self.duration = cs4BaseData.duration;
|
|
107
|
-
_self.networkConnect = cs4BaseData.networkConnect;
|
|
108
|
-
_self.perfTotal = cs4BaseData.perfTotal;
|
|
109
|
-
_self.receivedResponse = cs4BaseData.receivedResponse;
|
|
110
|
-
_self.sentRequest = cs4BaseData.sentRequest;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
5
|
-
import { FieldType } from "../Enums";
|
|
6
|
-
import { msToTimeSpan } from "../HelperFuncs";
|
|
7
|
-
import { IRemoteDependencyData } from "../Interfaces/Contracts/IRemoteDependencyData";
|
|
8
|
-
import { ISerializable } from "../Interfaces/Telemetry/ISerializable";
|
|
9
|
-
import { AjaxHelperParseDependencyPath } from "../Util";
|
|
10
|
-
import { dataSanitizeMeasurements, dataSanitizeProperties, dataSanitizeString, dataSanitizeUrl } from "./Common/DataSanitizer";
|
|
11
|
-
|
|
12
|
-
export class RemoteDependencyData implements IRemoteDependencyData, ISerializable {
|
|
13
|
-
|
|
14
|
-
public static envelopeType = "Microsoft.ApplicationInsights.{0}.RemoteDependency";
|
|
15
|
-
public static dataType = "RemoteDependencyData";
|
|
16
|
-
|
|
17
|
-
public aiDataContract = {
|
|
18
|
-
id: FieldType.Required,
|
|
19
|
-
ver: FieldType.Required,
|
|
20
|
-
name: FieldType.Default,
|
|
21
|
-
resultCode: FieldType.Default,
|
|
22
|
-
duration: FieldType.Default,
|
|
23
|
-
success: FieldType.Default,
|
|
24
|
-
data: FieldType.Default,
|
|
25
|
-
target: FieldType.Default,
|
|
26
|
-
type: FieldType.Default,
|
|
27
|
-
properties: FieldType.Default,
|
|
28
|
-
measurements: FieldType.Default,
|
|
29
|
-
|
|
30
|
-
kind: FieldType.Default,
|
|
31
|
-
value: FieldType.Default,
|
|
32
|
-
count: FieldType.Default,
|
|
33
|
-
min: FieldType.Default,
|
|
34
|
-
max: FieldType.Default,
|
|
35
|
-
stdDev: FieldType.Default,
|
|
36
|
-
dependencyKind: FieldType.Default,
|
|
37
|
-
dependencySource: FieldType.Default,
|
|
38
|
-
commandName: FieldType.Default,
|
|
39
|
-
dependencyTypeName: FieldType.Default
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Schema version
|
|
44
|
-
*/
|
|
45
|
-
public ver: number; // = 2;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.
|
|
49
|
-
*/
|
|
50
|
-
public name: string;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Identifier of a dependency call instance. Used for correlation with the request telemetry item corresponding to this dependency call.
|
|
54
|
-
*/
|
|
55
|
-
public id: string;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Result code of a dependency call. Examples are SQL error code and HTTP status code.
|
|
59
|
-
*/
|
|
60
|
-
public resultCode: string;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.
|
|
64
|
-
*/
|
|
65
|
-
public duration: string;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Indication of successful or unsuccessful call.
|
|
69
|
-
*/
|
|
70
|
-
public success: boolean; /* true */
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Command initiated by this dependency call. Examples are SQL statement and HTTP URL's with all query parameters.
|
|
74
|
-
*/
|
|
75
|
-
public data: string;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Target site of a dependency call. Examples are server name, host address.
|
|
79
|
-
*/
|
|
80
|
-
public target: string;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Dependency type name. Very low cardinality value for logical grouping of dependencies and interpretation of other fields like commandName and resultCode. Examples are SQL, Azure table, and HTTP.
|
|
84
|
-
*/
|
|
85
|
-
public type: string;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Collection of custom properties.
|
|
89
|
-
*/
|
|
90
|
-
public properties: any; // = {};
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Collection of custom measurements.
|
|
94
|
-
*/
|
|
95
|
-
public measurements: any; // = {};
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Constructs a new instance of the RemoteDependencyData object
|
|
99
|
-
*/
|
|
100
|
-
constructor(logger: IDiagnosticLogger, id: string, absoluteUrl: string, commandName: string, value: number, success: boolean, resultCode: number, method?: string, requestAPI: string = "Ajax", correlationContext?: string, properties?: Object, measurements?: Object) {
|
|
101
|
-
let _self = this;
|
|
102
|
-
|
|
103
|
-
_self.ver = 2;
|
|
104
|
-
_self.id = id;
|
|
105
|
-
_self.duration = msToTimeSpan(value);
|
|
106
|
-
_self.success = success;
|
|
107
|
-
_self.resultCode = resultCode + "";
|
|
108
|
-
|
|
109
|
-
_self.type = dataSanitizeString(logger, requestAPI);
|
|
110
|
-
|
|
111
|
-
const dependencyFields = AjaxHelperParseDependencyPath(logger, absoluteUrl, method, commandName);
|
|
112
|
-
_self.data = dataSanitizeUrl(logger, commandName) || dependencyFields.data; // get a value from hosturl if commandName not available
|
|
113
|
-
_self.target = dataSanitizeString(logger, dependencyFields.target);
|
|
114
|
-
if (correlationContext) {
|
|
115
|
-
_self.target = `${_self.target} | ${correlationContext}`;
|
|
116
|
-
}
|
|
117
|
-
_self.name = dataSanitizeString(logger, dependencyFields.name);
|
|
118
|
-
|
|
119
|
-
_self.properties = dataSanitizeProperties(logger, properties);
|
|
120
|
-
_self.measurements = dataSanitizeMeasurements(logger, measurements);
|
|
121
|
-
}
|
|
122
|
-
}
|
package/src/Telemetry/Trace.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
5
|
-
import { strNotSpecified } from "../Constants";
|
|
6
|
-
import { FieldType } from "../Enums";
|
|
7
|
-
import { IMessageData } from "../Interfaces/Contracts/IMessageData";
|
|
8
|
-
import { SeverityLevel } from "../Interfaces/Contracts/SeverityLevel";
|
|
9
|
-
import { ISerializable } from "../Interfaces/Telemetry/ISerializable";
|
|
10
|
-
import { dataSanitizeMeasurements, dataSanitizeMessage, dataSanitizeProperties } from "./Common/DataSanitizer";
|
|
11
|
-
|
|
12
|
-
export class Trace implements IMessageData, ISerializable {
|
|
13
|
-
|
|
14
|
-
public static envelopeType = "Microsoft.ApplicationInsights.{0}.Message";
|
|
15
|
-
public static dataType = "MessageData";
|
|
16
|
-
|
|
17
|
-
public aiDataContract = {
|
|
18
|
-
ver: FieldType.Required,
|
|
19
|
-
message: FieldType.Required,
|
|
20
|
-
severityLevel: FieldType.Default,
|
|
21
|
-
properties: FieldType.Default
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Schema version
|
|
26
|
-
*/
|
|
27
|
-
public ver: number; // = 2;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Trace message
|
|
31
|
-
*/
|
|
32
|
-
public message: string;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Trace severity level.
|
|
36
|
-
*/
|
|
37
|
-
public severityLevel: SeverityLevel;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Collection of custom properties.
|
|
41
|
-
*/
|
|
42
|
-
public properties: any;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Collection of custom measurements.
|
|
46
|
-
*/
|
|
47
|
-
public measurements: any;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Constructs a new instance of the TraceTelemetry object
|
|
51
|
-
*/
|
|
52
|
-
constructor(logger: IDiagnosticLogger, message: string, severityLevel?: SeverityLevel, properties?: any, measurements?: { [key: string]: number }) {
|
|
53
|
-
let _self = this;
|
|
54
|
-
_self.ver = 2;
|
|
55
|
-
message = message || strNotSpecified;
|
|
56
|
-
_self.message = dataSanitizeMessage(logger, message);
|
|
57
|
-
_self.properties = dataSanitizeProperties(logger, properties);
|
|
58
|
-
_self.measurements = dataSanitizeMeasurements(logger, measurements);
|
|
59
|
-
|
|
60
|
-
if (severityLevel) {
|
|
61
|
-
_self.severityLevel = severityLevel;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
IDiagnosticLogger, ITelemetryItem, isNullOrUndefined, objForEachKey, throwError, toISOString
|
|
6
|
-
} from "@microsoft/applicationinsights-core-js";
|
|
7
|
-
import { strIkey, strNotSpecified } from "./Constants";
|
|
8
|
-
import { dataSanitizeString } from "./Telemetry/Common/DataSanitizer";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Create a telemetry item that the 1DS channel understands
|
|
12
|
-
* @param item - domain specific properties; part B
|
|
13
|
-
* @param baseType - telemetry item type. ie PageViewData
|
|
14
|
-
* @param envelopeName - name of the envelope. ie Microsoft.ApplicationInsights.<instrumentation key>.PageView
|
|
15
|
-
* @param customProperties - user defined custom properties; part C
|
|
16
|
-
* @param systemProperties - system properties that are added to the context; part A
|
|
17
|
-
* @returns ITelemetryItem that is sent to channel
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
export function createTelemetryItem<T>(item: T,
|
|
21
|
-
baseType: string,
|
|
22
|
-
envelopeName: string,
|
|
23
|
-
logger: IDiagnosticLogger,
|
|
24
|
-
customProperties?: { [key: string]: any },
|
|
25
|
-
systemProperties?: { [key: string]: any }): ITelemetryItem {
|
|
26
|
-
|
|
27
|
-
envelopeName = dataSanitizeString(logger, envelopeName) || strNotSpecified;
|
|
28
|
-
|
|
29
|
-
if (isNullOrUndefined(item) ||
|
|
30
|
-
isNullOrUndefined(baseType) ||
|
|
31
|
-
isNullOrUndefined(envelopeName)) {
|
|
32
|
-
throwError("Input doesn't contain all required fields");
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
let iKey = "";
|
|
36
|
-
if (item[strIkey]) {
|
|
37
|
-
iKey = item[strIkey];
|
|
38
|
-
delete item[strIkey];
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
const telemetryItem: ITelemetryItem = {
|
|
42
|
-
name: envelopeName,
|
|
43
|
-
time: toISOString(new Date()),
|
|
44
|
-
iKey: iKey, // this will be set in TelemetryContext
|
|
45
|
-
ext: systemProperties ? systemProperties : {}, // part A
|
|
46
|
-
tags: [],
|
|
47
|
-
data: {
|
|
48
|
-
},
|
|
49
|
-
baseType,
|
|
50
|
-
baseData: item // Part B
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
// Part C
|
|
54
|
-
if (!isNullOrUndefined(customProperties)) {
|
|
55
|
-
objForEachKey(customProperties, (prop, value) => {
|
|
56
|
-
telemetryItem.data[prop] = value;
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
return telemetryItem;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export class TelemetryItemCreator {
|
|
64
|
-
/**
|
|
65
|
-
* Create a telemetry item that the 1DS channel understands
|
|
66
|
-
* @param item - domain specific properties; part B
|
|
67
|
-
* @param baseType - telemetry item type. ie PageViewData
|
|
68
|
-
* @param envelopeName - name of the envelope. ie Microsoft.ApplicationInsights.<instrumentation key>.PageView
|
|
69
|
-
* @param customProperties - user defined custom properties; part C
|
|
70
|
-
* @param systemProperties - system properties that are added to the context; part A
|
|
71
|
-
* @returns ITelemetryItem that is sent to channel
|
|
72
|
-
*/
|
|
73
|
-
|
|
74
|
-
public static create = createTelemetryItem;
|
|
75
|
-
}
|