@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,56 +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 IMetricTelemetry extends IPartC {
|
|
7
|
-
/**
|
|
8
|
-
* @description (required) - name of this metric
|
|
9
|
-
* @type {string}
|
|
10
|
-
* @memberof IMetricTelemetry
|
|
11
|
-
*/
|
|
12
|
-
name: string;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @description (required) - Recorded value/average for this metric
|
|
16
|
-
* @type {number}
|
|
17
|
-
* @memberof IMetricTelemetry
|
|
18
|
-
*/
|
|
19
|
-
average: number;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @description (optional) Number of samples represented by the average.
|
|
23
|
-
* @type {number=}
|
|
24
|
-
* @memberof IMetricTelemetry
|
|
25
|
-
* @default sampleCount=1
|
|
26
|
-
*/
|
|
27
|
-
sampleCount?: number;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* @description (optional) The smallest measurement in the sample. Defaults to the average
|
|
31
|
-
* @type {number}
|
|
32
|
-
* @memberof IMetricTelemetry
|
|
33
|
-
* @default min=average
|
|
34
|
-
*/
|
|
35
|
-
min?: number;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @description (optional) The largest measurement in the sample. Defaults to the average.
|
|
39
|
-
* @type {number}
|
|
40
|
-
* @memberof IMetricTelemetry
|
|
41
|
-
* @default max=average
|
|
42
|
-
*/
|
|
43
|
-
max?: number;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* (optional) The standard deviation measurement in the sample, Defaults to undefined which results in zero.
|
|
47
|
-
*/
|
|
48
|
-
stdDev?: number;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* @description custom defined iKey
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof IMetricTelemetry
|
|
54
|
-
*/
|
|
55
|
-
iKey?: string;
|
|
56
|
-
}
|
|
@@ -1,61 +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 IPageViewPerformanceTelemetry extends IPartC {
|
|
7
|
-
/**
|
|
8
|
-
* name String - The name of the page. Defaults to the document title.
|
|
9
|
-
*/
|
|
10
|
-
name?: string;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* url String - a relative or absolute URL that identifies the page or other item. Defaults to the window location.
|
|
14
|
-
*/
|
|
15
|
-
uri?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff". This is total duration in timespan format.
|
|
18
|
-
*/
|
|
19
|
-
perfTotal?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff". This represents the total page load time.
|
|
22
|
-
*/
|
|
23
|
-
duration?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
26
|
-
*/
|
|
27
|
-
networkConnect?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff.
|
|
30
|
-
*/
|
|
31
|
-
sentRequest?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff.
|
|
34
|
-
*/
|
|
35
|
-
receivedResponse?: string;
|
|
36
|
-
/**
|
|
37
|
-
* DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
38
|
-
*/
|
|
39
|
-
domProcessing?: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface IPageViewPerformanceTelemetryInternal extends IPageViewPerformanceTelemetry {
|
|
43
|
-
/**
|
|
44
|
-
* An identifier assigned to each distinct impression for the purposes of correlating with pageview.
|
|
45
|
-
* A new id is automatically generated on each pageview. You can manually specify this field if you
|
|
46
|
-
* want to use a specific value instead.
|
|
47
|
-
*/
|
|
48
|
-
id?: string;
|
|
49
|
-
/**
|
|
50
|
-
* Version of the part B schema, todo: set this value in trackpageView
|
|
51
|
-
*/
|
|
52
|
-
ver?: string;
|
|
53
|
-
/**
|
|
54
|
-
* Field indicating whether this instance of PageViewPerformance is valid and should be sent
|
|
55
|
-
*/
|
|
56
|
-
isValid?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Duration in miliseconds
|
|
59
|
-
*/
|
|
60
|
-
durationMs?: number;
|
|
61
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { IPartC } from "./IPartC";
|
|
2
|
-
|
|
3
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
-
// Licensed under the MIT License.
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Pageview telemetry interface
|
|
8
|
-
*/
|
|
9
|
-
export interface IPageViewTelemetry extends IPartC {
|
|
10
|
-
/**
|
|
11
|
-
* name String - The string you used as the name in startTrackPage. Defaults to the document title.
|
|
12
|
-
*/
|
|
13
|
-
name?: string;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* uri String - a relative or absolute URL that identifies the page or other item. Defaults to the window location.
|
|
17
|
-
*/
|
|
18
|
-
uri?: string;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* refUri String - the URL of the source page where current page is loaded from
|
|
22
|
-
*/
|
|
23
|
-
refUri?: string;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* pageType String - page type
|
|
27
|
-
*/
|
|
28
|
-
pageType?: string;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* isLoggedIn - boolean is user logged in
|
|
32
|
-
*/
|
|
33
|
-
isLoggedIn?: boolean;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Property bag to contain additional custom properties (Part C)
|
|
37
|
-
*/
|
|
38
|
-
properties?: {
|
|
39
|
-
/**
|
|
40
|
-
* The number of milliseconds it took to load the page. Defaults to undefined. If set to default value, page load time is calculated internally.
|
|
41
|
-
*/
|
|
42
|
-
duration?: number;
|
|
43
|
-
[key: string]: any;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* iKey String - custom defined iKey.
|
|
48
|
-
*/
|
|
49
|
-
iKey?: string;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
export interface IPageViewTelemetryInternal extends IPageViewTelemetry {
|
|
54
|
-
/**
|
|
55
|
-
* An identifier assigned to each distinct impression for the purposes of correlating with pageview.
|
|
56
|
-
* A new id is automatically generated on each pageview. You can manually specify this field if you
|
|
57
|
-
* want to use a specific value instead.
|
|
58
|
-
*/
|
|
59
|
-
id?: string;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Version of the part B schema, todo: set this value in trackpageView
|
|
63
|
-
*/
|
|
64
|
-
ver?: string;
|
|
65
|
-
}
|
package/src/Interfaces/IPartC.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* PartC telemetry interface
|
|
6
|
-
*/
|
|
7
|
-
export interface IPartC {
|
|
8
|
-
/**
|
|
9
|
-
* Property bag to contain additional custom properties (Part C)
|
|
10
|
-
*/
|
|
11
|
-
properties?: { [key: string]: any };
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Property bag to contain additional custom measurements (Part C)
|
|
15
|
-
* @deprecated -- please use properties instead
|
|
16
|
-
*/
|
|
17
|
-
measurements?: { [key: string]: number };
|
|
18
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { IApplication } from "./Context/IApplication";
|
|
5
|
-
import { IDevice } from "./Context/IDevice";
|
|
6
|
-
import { IInternal } from "./Context/IInternal";
|
|
7
|
-
import { ILocation } from "./Context/ILocation";
|
|
8
|
-
import { IUserContext } from "./Context/IUser";
|
|
9
|
-
import { ISession } from "./Context/ISession";
|
|
10
|
-
import { ITelemetryTrace } from "./Context/ITelemetryTrace";
|
|
11
|
-
import { IOperatingSystem } from "./Context/IOperatingSystem";
|
|
12
|
-
import { IWeb } from "./Context/IWeb";
|
|
13
|
-
|
|
14
|
-
export interface ITelemetryContext {
|
|
15
|
-
/**
|
|
16
|
-
* The object describing a component tracked by this object.
|
|
17
|
-
*/
|
|
18
|
-
readonly application: IApplication;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* The object describing a device tracked by this object.
|
|
22
|
-
*/
|
|
23
|
-
readonly device: IDevice;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* The object describing internal settings.
|
|
27
|
-
*/
|
|
28
|
-
readonly internal: IInternal;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* The object describing a location tracked by this object.
|
|
32
|
-
*/
|
|
33
|
-
readonly location: ILocation;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* The object describing a operation tracked by this object.
|
|
37
|
-
*/
|
|
38
|
-
readonly telemetryTrace: ITelemetryTrace;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* The object describing a user tracked by this object.
|
|
42
|
-
*/
|
|
43
|
-
readonly user: IUserContext;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* The object describing a session tracked by this object.
|
|
47
|
-
*/
|
|
48
|
-
readonly session: ISession;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* The object describing os details tracked by this object.
|
|
52
|
-
*/
|
|
53
|
-
readonly os?: IOperatingSystem;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* The object describing we details tracked by this object.
|
|
57
|
-
*/
|
|
58
|
-
readonly web?: IWeb;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* application id obtained from breeze responses. Is used if appId is not specified by root config
|
|
62
|
-
*/
|
|
63
|
-
appId: () => string;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* session id obtained from session manager.
|
|
67
|
-
*/
|
|
68
|
-
getSessionId: () => string;
|
|
69
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { IThrottleMsgKey } from "../Enums";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Identifies limit number/percentage of items sent per time
|
|
5
|
-
* If both are provided, minimum number between the two will be used
|
|
6
|
-
*/
|
|
7
|
-
export interface IThrottleLimit {
|
|
8
|
-
/**
|
|
9
|
-
* Identifies sampling percentage of items per time
|
|
10
|
-
* The percentage is set to 4 decimal places, for example: 1 means 0.0001%
|
|
11
|
-
* Default: 100 (0.01%)
|
|
12
|
-
*/
|
|
13
|
-
samplingRate?: number;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Identifies limit number of items per time
|
|
17
|
-
* Default: 1
|
|
18
|
-
*/
|
|
19
|
-
maxSendNumber?: number;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Identifies frequency of items sent
|
|
24
|
-
* Default: send data on 28th every 3 month each year
|
|
25
|
-
*/
|
|
26
|
-
export interface IThrottleInterval {
|
|
27
|
-
/**
|
|
28
|
-
* Identifies month interval that items can be sent
|
|
29
|
-
* For example, if it is set to 2 and start date is in Jan, items will be sent out every two months (Jan, March, May etc.)
|
|
30
|
-
* If both monthInterval and dayInterval are undefined, it will be set to 3
|
|
31
|
-
*/
|
|
32
|
-
monthInterval?: number;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Identifies days Interval from start date that items can be sent
|
|
36
|
-
* Default: undefined
|
|
37
|
-
*/
|
|
38
|
-
dayInterval?: number;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Identifies days within each month that items can be sent
|
|
42
|
-
* If both monthInterval and dayInterval are undefined, it will be default to [28]
|
|
43
|
-
*/
|
|
44
|
-
daysOfMonth?: number[];
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Identifies basic config
|
|
49
|
-
*/
|
|
50
|
-
export interface IThrottleMgrConfig {
|
|
51
|
-
/**
|
|
52
|
-
* Identifies message key to be used for local storage key
|
|
53
|
-
* Default: IThrottleMsgKey.default
|
|
54
|
-
*/
|
|
55
|
-
msgKey?: IThrottleMsgKey;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Identifies if throttle is disabled
|
|
59
|
-
* Default: false
|
|
60
|
-
*/
|
|
61
|
-
disabled?: boolean;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Identifies limit number/percentage of items sent per time
|
|
65
|
-
* Default: sampling percentage 0.01% with one item sent per time
|
|
66
|
-
*/
|
|
67
|
-
limit?: IThrottleLimit;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Identifies frequency of items sent
|
|
71
|
-
* Default: send data on 28th every 3 month each year
|
|
72
|
-
*/
|
|
73
|
-
interval?: IThrottleInterval;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Identifies object for local storage
|
|
78
|
-
*/
|
|
79
|
-
export interface IThrottleLocalStorageObj {
|
|
80
|
-
/**
|
|
81
|
-
* Identifies start date
|
|
82
|
-
*/
|
|
83
|
-
date: Date;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Identifies current count
|
|
87
|
-
*/
|
|
88
|
-
|
|
89
|
-
count: number;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* identifies previous triggered throttle date
|
|
93
|
-
*/
|
|
94
|
-
preTriggerDate?: Date;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Identifies throttle result
|
|
99
|
-
*/
|
|
100
|
-
export interface IThrottleResult {
|
|
101
|
-
/**
|
|
102
|
-
* Identifies if items are sent
|
|
103
|
-
*/
|
|
104
|
-
isThrottled: boolean;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Identifies numbers of items are sent
|
|
108
|
-
* if isThrottled is false, it will be set to 0
|
|
109
|
-
*/
|
|
110
|
-
throttleNum: number;
|
|
111
|
-
}
|
|
@@ -1,28 +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
|
-
export interface ITraceTelemetry extends IPartC {
|
|
8
|
-
/**
|
|
9
|
-
* @description A message string
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof ITraceTelemetry
|
|
12
|
-
*/
|
|
13
|
-
message: string;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @description Severity level of the logging message used for filtering in the portal
|
|
17
|
-
* @type {SeverityLevel}
|
|
18
|
-
* @memberof ITraceTelemetry
|
|
19
|
-
*/
|
|
20
|
-
severityLevel?: SeverityLevel;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @description custom defiend iKey
|
|
24
|
-
* @type {SeverityLevel}
|
|
25
|
-
* @memberof ITraceTelemetry
|
|
26
|
-
*/
|
|
27
|
-
iKey?: string;
|
|
28
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ContextTagKeys } from "./Contracts/ContextTagKeys";
|
|
2
|
-
|
|
3
|
-
export const Extensions = {
|
|
4
|
-
UserExt: "user",
|
|
5
|
-
DeviceExt: "device",
|
|
6
|
-
TraceExt: "trace",
|
|
7
|
-
WebExt: "web",
|
|
8
|
-
AppExt: "app",
|
|
9
|
-
OSExt: "os",
|
|
10
|
-
SessionExt: "ses",
|
|
11
|
-
SDKExt: "sdk"
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export let CtxTagKeys = new ContextTagKeys();
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { ISerializable } from "./ISerializable";
|
|
5
|
-
|
|
6
|
-
export interface IEnvelope extends ISerializable {
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Envelope version. For internal use only. By assigning this the default, it will not be serialized within the payload unless changed to a value other than #1.
|
|
10
|
-
*/
|
|
11
|
-
ver: number; /* 1 */
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Type name of telemetry data item.
|
|
15
|
-
*/
|
|
16
|
-
name: string;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Event date time when telemetry item was created. This is the wall clock time on the client when the event was generated. There is no guarantee that the client's time is accurate. This field must be formatted in UTC ISO 8601 format, with a trailing 'Z' character, as described publicly on https://en.wikipedia.org/wiki/ISO_8601#UTC. Note: the number of decimal seconds digits provided are variable (and unspecified). Consumers should handle this, i.e. managed code consumers should not use format 'O' for parsing as it specifies a fixed length. Example: 2009-06-15T13:45:30.0000000Z.
|
|
20
|
-
*/
|
|
21
|
-
time: string;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Sampling rate used in application. This telemetry item represents 1 / sampleRate actual telemetry items.
|
|
25
|
-
*/
|
|
26
|
-
sampleRate: number; /* 100.0 */
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Sequence field used to track absolute order of uploaded events.
|
|
30
|
-
*/
|
|
31
|
-
seq: string;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* The application's instrumentation key. The key is typically represented as a GUID, but there are cases when it is not a guid. No code should rely on iKey being a GUID. Instrumentation key is case insensitive.
|
|
35
|
-
*/
|
|
36
|
-
iKey: string;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Key/value collection of context properties. See ContextTagKeys for information on available properties.
|
|
40
|
-
*/
|
|
41
|
-
tags: { [name: string]: any }; /* {} */
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Telemetry data item.
|
|
45
|
-
*/
|
|
46
|
-
data: any;
|
|
47
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
export interface ISerializable {
|
|
5
|
-
/**
|
|
6
|
-
* The set of fields for a serializable object.
|
|
7
|
-
* This defines the serialization order and a value of true/false
|
|
8
|
-
* for each field defines whether the field is required or not.
|
|
9
|
-
*/
|
|
10
|
-
aiDataContract: any;
|
|
11
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { createValueMap } from "@microsoft/applicationinsights-core-js";
|
|
5
|
-
|
|
6
|
-
export interface IRequestHeaders {
|
|
7
|
-
/**
|
|
8
|
-
* Request-Context header
|
|
9
|
-
*/
|
|
10
|
-
requestContextHeader: string,
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Target instrumentation header that is added to the response and retrieved by the
|
|
14
|
-
* calling application when processing incoming responses.
|
|
15
|
-
*/
|
|
16
|
-
requestContextTargetKey: string,
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Request-Context appId format
|
|
20
|
-
*/
|
|
21
|
-
requestContextAppIdFormat: string,
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Request-Id header
|
|
25
|
-
*/
|
|
26
|
-
requestIdHeader: string,
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* W3C distributed tracing protocol header
|
|
30
|
-
*/
|
|
31
|
-
traceParentHeader: string,
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* W3C distributed tracing protocol state header
|
|
35
|
-
*/
|
|
36
|
-
traceStateHeader: string, // currently not used
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Sdk-Context header
|
|
40
|
-
* If this header passed with appId in content then appId will be returned back by the backend.
|
|
41
|
-
*/
|
|
42
|
-
sdkContextHeader: string,
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* String to pass in header for requesting appId back from the backend.
|
|
46
|
-
*/
|
|
47
|
-
sdkContextHeaderAppIdRequest: string,
|
|
48
|
-
|
|
49
|
-
requestContextHeaderLowerCase: string
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export const enum eRequestHeaders {
|
|
53
|
-
requestContextHeader = 0,
|
|
54
|
-
requestContextTargetKey = 1,
|
|
55
|
-
requestContextAppIdFormat = 2,
|
|
56
|
-
requestIdHeader = 3,
|
|
57
|
-
traceParentHeader = 4,
|
|
58
|
-
traceStateHeader = 5, // currently not used
|
|
59
|
-
sdkContextHeader = 6,
|
|
60
|
-
sdkContextHeaderAppIdRequest = 7,
|
|
61
|
-
requestContextHeaderLowerCase = 8
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export const RequestHeaders = createValueMap<typeof eRequestHeaders, IRequestHeaders & {
|
|
65
|
-
// Defined the enum lookups
|
|
66
|
-
[eRequestHeaders.requestContextHeader]: "Request-Context",
|
|
67
|
-
[eRequestHeaders.requestContextTargetKey]: "appId",
|
|
68
|
-
[eRequestHeaders.requestContextAppIdFormat]: "appId=cid-v1:",
|
|
69
|
-
[eRequestHeaders.requestIdHeader]: "Request-Id",
|
|
70
|
-
[eRequestHeaders.traceParentHeader]: "traceparent",
|
|
71
|
-
[eRequestHeaders.traceStateHeader]: "tracestate", // currently not used
|
|
72
|
-
[eRequestHeaders.sdkContextHeader]: "Sdk-Context",
|
|
73
|
-
[eRequestHeaders.sdkContextHeaderAppIdRequest]: "appId",
|
|
74
|
-
[eRequestHeaders.requestContextHeaderLowerCase]: "request-context",
|
|
75
|
-
// Defined Named reference
|
|
76
|
-
requestContextHeader: "Request-Context",
|
|
77
|
-
requestContextTargetKey: "appId",
|
|
78
|
-
requestContextAppIdFormat: "appId=cid-v1:",
|
|
79
|
-
requestIdHeader: "Request-Id",
|
|
80
|
-
traceParentHeader: "traceparent",
|
|
81
|
-
traceStateHeader: "tracestate", // currently not used
|
|
82
|
-
sdkContextHeader: "Sdk-Context",
|
|
83
|
-
sdkContextHeaderAppIdRequest: "appId",
|
|
84
|
-
requestContextHeaderLowerCase: "request-context"
|
|
85
|
-
}>({
|
|
86
|
-
requestContextHeader: [ eRequestHeaders.requestContextHeader, "Request-Context" ],
|
|
87
|
-
requestContextTargetKey: [ eRequestHeaders.requestContextTargetKey, "appId"],
|
|
88
|
-
requestContextAppIdFormat: [ eRequestHeaders.requestContextAppIdFormat, "appId=cid-v1:"],
|
|
89
|
-
requestIdHeader: [ eRequestHeaders.requestIdHeader, "Request-Id"],
|
|
90
|
-
traceParentHeader: [ eRequestHeaders.traceParentHeader, "traceparent"],
|
|
91
|
-
traceStateHeader: [ eRequestHeaders.traceStateHeader, "tracestate"], // currently not used
|
|
92
|
-
sdkContextHeader: [ eRequestHeaders.sdkContextHeader, "Sdk-Context"],
|
|
93
|
-
sdkContextHeaderAppIdRequest: [ eRequestHeaders.sdkContextHeaderAppIdRequest, "appId"],
|
|
94
|
-
requestContextHeaderLowerCase: [ eRequestHeaders.requestContextHeaderLowerCase, "request-context"]
|
|
95
|
-
});
|
|
96
|
-
|