@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.
Files changed (371) hide show
  1. package/browser/es5/applicationinsights-common.cjs.js +3965 -0
  2. package/browser/es5/applicationinsights-common.cjs.js.map +1 -0
  3. package/browser/es5/applicationinsights-common.cjs.min.js +6 -0
  4. package/browser/es5/applicationinsights-common.cjs.min.js.map +1 -0
  5. package/browser/es5/applicationinsights-common.gbl.js +3969 -0
  6. package/browser/es5/applicationinsights-common.gbl.js.map +1 -0
  7. package/browser/es5/applicationinsights-common.gbl.min.js +6 -0
  8. package/browser/es5/applicationinsights-common.gbl.min.js.map +1 -0
  9. package/browser/es5/applicationinsights-common.integrity.json +66 -0
  10. package/browser/{applicationinsights-common.js → es5/applicationinsights-common.js} +194 -167
  11. package/browser/es5/applicationinsights-common.js.map +1 -0
  12. package/browser/es5/applicationinsights-common.min.js +6 -0
  13. package/browser/es5/applicationinsights-common.min.js.map +1 -0
  14. package/dist/{applicationinsights-common.js → es5/applicationinsights-common.js} +194 -167
  15. package/dist/es5/applicationinsights-common.js.map +1 -0
  16. package/dist/es5/applicationinsights-common.min.js +6 -0
  17. package/dist/es5/applicationinsights-common.min.js.map +1 -0
  18. package/{dist-esm → dist-es5}/ConnectionStringParser.js +1 -1
  19. package/{dist-esm → dist-es5}/Constants.js +1 -1
  20. package/{dist-esm → dist-es5}/DomHelperFuncs.js +1 -1
  21. package/{dist-esm → dist-es5}/Enums.js +1 -1
  22. package/{dist-esm → dist-es5}/HelperFuncs.js +1 -1
  23. package/dist-es5/Interfaces/ConnectionString.js +6 -0
  24. package/dist-es5/Interfaces/Context/IApplication.js +8 -0
  25. package/dist-es5/Interfaces/Context/IDevice.js +8 -0
  26. package/dist-es5/Interfaces/Context/IInternal.js +8 -0
  27. package/dist-es5/Interfaces/Context/ILocation.js +8 -0
  28. package/dist-es5/Interfaces/Context/IOperatingSystem.js +8 -0
  29. package/dist-es5/Interfaces/Context/ISample.js +8 -0
  30. package/dist-es5/Interfaces/Context/ISession.js +8 -0
  31. package/dist-es5/Interfaces/Context/ITelemetryTrace.js +8 -0
  32. package/dist-es5/Interfaces/Context/IUser.js +8 -0
  33. package/dist-es5/Interfaces/Context/IWeb.js +8 -0
  34. package/{dist-esm → dist-es5}/Interfaces/Contracts/AvailabilityData.js +1 -1
  35. package/{dist-esm → dist-es5}/Interfaces/Contracts/ContextTagKeys.js +1 -1
  36. package/dist-es5/Interfaces/Contracts/DataPointType.js +8 -0
  37. package/dist-es5/Interfaces/Contracts/DependencyKind.js +8 -0
  38. package/dist-es5/Interfaces/Contracts/DependencySourceType.js +8 -0
  39. package/dist-es5/Interfaces/Contracts/IBase.js +8 -0
  40. package/dist-es5/Interfaces/Contracts/IData.js +8 -0
  41. package/dist-es5/Interfaces/Contracts/IDataPoint.js +6 -0
  42. package/dist-es5/Interfaces/Contracts/IDomain.js +8 -0
  43. package/{dist-esm → dist-es5}/Interfaces/Contracts/IEnvelope.js +1 -1
  44. package/dist-es5/Interfaces/Contracts/IEventData.js +8 -0
  45. package/dist-es5/Interfaces/Contracts/IExceptionData.js +8 -0
  46. package/dist-es5/Interfaces/Contracts/IExceptionDetails.js +8 -0
  47. package/dist-es5/Interfaces/Contracts/IMessageData.js +8 -0
  48. package/dist-es5/Interfaces/Contracts/IMetricData.js +8 -0
  49. package/dist-es5/Interfaces/Contracts/IPageViewData.js +8 -0
  50. package/dist-es5/Interfaces/Contracts/IPageViewPerfData.js +8 -0
  51. package/dist-es5/Interfaces/Contracts/IRemoteDependencyData.js +8 -0
  52. package/dist-es5/Interfaces/Contracts/IStackFrame.js +8 -0
  53. package/{dist-esm → dist-es5}/Interfaces/Contracts/RequestData.js +1 -1
  54. package/{dist-esm → dist-es5}/Interfaces/Contracts/SeverityLevel.js +1 -1
  55. package/dist-es5/Interfaces/IAppInsights.js +8 -0
  56. package/{dist-esm → dist-es5}/Interfaces/IConfig.js +1 -1
  57. package/dist-es5/Interfaces/ICorrelationConfig.js +8 -0
  58. package/dist-es5/Interfaces/IDependencyTelemetry.js +8 -0
  59. package/dist-es5/Interfaces/IEventTelemetry.js +6 -0
  60. package/dist-es5/Interfaces/IExceptionTelemetry.js +8 -0
  61. package/dist-es5/Interfaces/IMetricTelemetry.js +6 -0
  62. package/dist-es5/Interfaces/IPageViewPerformanceTelemetry.js +6 -0
  63. package/dist-es5/Interfaces/IPageViewTelemetry.js +6 -0
  64. package/dist-es5/Interfaces/IPartC.js +8 -0
  65. package/dist-es5/Interfaces/IPropertiesPlugin.js +8 -0
  66. package/dist-es5/Interfaces/IRequestContext.js +6 -0
  67. package/dist-es5/Interfaces/ITelemetryContext.js +8 -0
  68. package/dist-es5/Interfaces/IThrottleMgr.js +6 -0
  69. package/dist-es5/Interfaces/ITraceTelemetry.js +8 -0
  70. package/{dist-esm → dist-es5}/Interfaces/PartAExtensions.js +1 -1
  71. package/dist-es5/Interfaces/Telemetry/IEnvelope.js +8 -0
  72. package/dist-es5/Interfaces/Telemetry/ISerializable.js +8 -0
  73. package/{dist-esm → dist-es5}/RequestResponseHeaders.js +1 -1
  74. package/{dist-esm → dist-es5}/StorageHelperFuncs.js +1 -1
  75. package/{dist-esm → dist-es5}/Telemetry/Common/Data.js +1 -1
  76. package/{dist-esm → dist-es5}/Telemetry/Common/DataPoint.js +1 -1
  77. package/{dist-esm → dist-es5}/Telemetry/Common/DataSanitizer.js +3 -2
  78. package/dist-es5/Telemetry/Common/DataSanitizer.js.map +1 -0
  79. package/{dist-esm → dist-es5}/Telemetry/Common/Envelope.js +1 -1
  80. package/{dist-esm → dist-es5}/Telemetry/Event.js +1 -1
  81. package/{dist-esm → dist-es5}/Telemetry/Exception.js +1 -1
  82. package/{dist-esm → dist-es5}/Telemetry/Metric.js +1 -1
  83. package/{dist-esm → dist-es5}/Telemetry/PageView.js +1 -1
  84. package/{dist-esm → dist-es5}/Telemetry/PageViewPerformance.js +1 -1
  85. package/{dist-esm → dist-es5}/Telemetry/RemoteDependencyData.js +1 -1
  86. package/{dist-esm → dist-es5}/Telemetry/Trace.js +1 -1
  87. package/{dist-esm → dist-es5}/TelemetryItemCreator.js +1 -1
  88. package/{dist-esm → dist-es5}/ThrottleMgr.js +1 -1
  89. package/{dist-esm → dist-es5}/UrlHelperFuncs.js +1 -1
  90. package/{dist-esm → dist-es5}/Util.js +1 -1
  91. package/{dist-esm → dist-es5}/__DynamicConstants.js +1 -1
  92. package/{dist-esm → dist-es5}/applicationinsights-common.js +1 -1
  93. package/package.json +18 -17
  94. package/tsconfig.json +4 -3
  95. package/types/applicationinsights-common.d.ts +2561 -58
  96. package/{dist/applicationinsights-common.d.ts → types/applicationinsights-common.namespaced.d.ts} +1 -1
  97. package/browser/applicationinsights-common.integrity.json +0 -26
  98. package/browser/applicationinsights-common.js.map +0 -1
  99. package/browser/applicationinsights-common.min.js +0 -6
  100. package/browser/applicationinsights-common.min.js.map +0 -1
  101. package/dist/applicationinsights-common.api.json +0 -19540
  102. package/dist/applicationinsights-common.api.md +0 -1224
  103. package/dist/applicationinsights-common.js.map +0 -1
  104. package/dist/applicationinsights-common.min.js +0 -6
  105. package/dist/applicationinsights-common.min.js.map +0 -1
  106. package/dist/applicationinsights-common.rollup.d.ts +0 -2562
  107. package/dist-esm/Interfaces/ConnectionString.js +0 -6
  108. package/dist-esm/Interfaces/Context/IApplication.js +0 -8
  109. package/dist-esm/Interfaces/Context/IDevice.js +0 -8
  110. package/dist-esm/Interfaces/Context/IInternal.js +0 -8
  111. package/dist-esm/Interfaces/Context/ILocation.js +0 -8
  112. package/dist-esm/Interfaces/Context/IOperatingSystem.js +0 -8
  113. package/dist-esm/Interfaces/Context/ISample.js +0 -8
  114. package/dist-esm/Interfaces/Context/ISession.js +0 -8
  115. package/dist-esm/Interfaces/Context/ITelemetryTrace.js +0 -8
  116. package/dist-esm/Interfaces/Context/IUser.js +0 -8
  117. package/dist-esm/Interfaces/Context/IWeb.js +0 -8
  118. package/dist-esm/Interfaces/Contracts/DataPointType.js +0 -8
  119. package/dist-esm/Interfaces/Contracts/DependencyKind.js +0 -8
  120. package/dist-esm/Interfaces/Contracts/DependencySourceType.js +0 -8
  121. package/dist-esm/Interfaces/Contracts/IBase.js +0 -8
  122. package/dist-esm/Interfaces/Contracts/IData.js +0 -8
  123. package/dist-esm/Interfaces/Contracts/IDataPoint.js +0 -6
  124. package/dist-esm/Interfaces/Contracts/IDomain.js +0 -8
  125. package/dist-esm/Interfaces/Contracts/IEventData.js +0 -8
  126. package/dist-esm/Interfaces/Contracts/IExceptionData.js +0 -8
  127. package/dist-esm/Interfaces/Contracts/IExceptionDetails.js +0 -8
  128. package/dist-esm/Interfaces/Contracts/IMessageData.js +0 -8
  129. package/dist-esm/Interfaces/Contracts/IMetricData.js +0 -8
  130. package/dist-esm/Interfaces/Contracts/IPageViewData.js +0 -8
  131. package/dist-esm/Interfaces/Contracts/IPageViewPerfData.js +0 -8
  132. package/dist-esm/Interfaces/Contracts/IRemoteDependencyData.js +0 -8
  133. package/dist-esm/Interfaces/Contracts/IStackFrame.js +0 -8
  134. package/dist-esm/Interfaces/IAppInsights.js +0 -8
  135. package/dist-esm/Interfaces/ICorrelationConfig.js +0 -8
  136. package/dist-esm/Interfaces/IDependencyTelemetry.js +0 -8
  137. package/dist-esm/Interfaces/IEventTelemetry.js +0 -6
  138. package/dist-esm/Interfaces/IExceptionTelemetry.js +0 -8
  139. package/dist-esm/Interfaces/IMetricTelemetry.js +0 -6
  140. package/dist-esm/Interfaces/IPageViewPerformanceTelemetry.js +0 -6
  141. package/dist-esm/Interfaces/IPageViewTelemetry.js +0 -6
  142. package/dist-esm/Interfaces/IPartC.js +0 -8
  143. package/dist-esm/Interfaces/IPropertiesPlugin.js +0 -8
  144. package/dist-esm/Interfaces/IRequestContext.js +0 -6
  145. package/dist-esm/Interfaces/ITelemetryContext.js +0 -8
  146. package/dist-esm/Interfaces/IThrottleMgr.js +0 -6
  147. package/dist-esm/Interfaces/ITraceTelemetry.js +0 -8
  148. package/dist-esm/Interfaces/Telemetry/IEnvelope.js +0 -8
  149. package/dist-esm/Interfaces/Telemetry/ISerializable.js +0 -8
  150. package/dist-esm/Telemetry/Common/DataSanitizer.js.map +0 -1
  151. package/src/ConnectionStringParser.ts +0 -47
  152. package/src/Constants.ts +0 -18
  153. package/src/DomHelperFuncs.ts +0 -19
  154. package/src/Enums.ts +0 -65
  155. package/src/HelperFuncs.ts +0 -54
  156. package/src/Interfaces/ConnectionString.ts +0 -3
  157. package/src/Interfaces/Context/IApplication.ts +0 -14
  158. package/src/Interfaces/Context/IDevice.ts +0 -28
  159. package/src/Interfaces/Context/IInternal.ts +0 -29
  160. package/src/Interfaces/Context/ILocation.ts +0 -9
  161. package/src/Interfaces/Context/IOperatingSystem.ts +0 -7
  162. package/src/Interfaces/Context/ISample.ts +0 -13
  163. package/src/Interfaces/Context/ISession.ts +0 -22
  164. package/src/Interfaces/Context/ITelemetryTrace.ts +0 -33
  165. package/src/Interfaces/Context/IUser.ts +0 -50
  166. package/src/Interfaces/Context/IWeb.ts +0 -39
  167. package/src/Interfaces/Contracts/AvailabilityData.ts +0 -57
  168. package/src/Interfaces/Contracts/ContextTagKeys.ts +0 -299
  169. package/src/Interfaces/Contracts/DataPointType.ts +0 -10
  170. package/src/Interfaces/Contracts/DependencyKind.ts +0 -11
  171. package/src/Interfaces/Contracts/DependencySourceType.ts +0 -11
  172. package/src/Interfaces/Contracts/IBase.ts +0 -13
  173. package/src/Interfaces/Contracts/IData.ts +0 -19
  174. package/src/Interfaces/Contracts/IDataPoint.ts +0 -44
  175. package/src/Interfaces/Contracts/IDomain.ts +0 -8
  176. package/src/Interfaces/Contracts/IEnvelope.ts +0 -50
  177. package/src/Interfaces/Contracts/IEventData.ts +0 -30
  178. package/src/Interfaces/Contracts/IExceptionData.ts +0 -37
  179. package/src/Interfaces/Contracts/IExceptionDetails.ts +0 -45
  180. package/src/Interfaces/Contracts/IMessageData.ts +0 -36
  181. package/src/Interfaces/Contracts/IMetricData.ts +0 -31
  182. package/src/Interfaces/Contracts/IPageViewData.ts +0 -26
  183. package/src/Interfaces/Contracts/IPageViewPerfData.ts +0 -35
  184. package/src/Interfaces/Contracts/IRemoteDependencyData.ts +0 -65
  185. package/src/Interfaces/Contracts/IStackFrame.ts +0 -33
  186. package/src/Interfaces/Contracts/RequestData.ts +0 -50
  187. package/src/Interfaces/Contracts/SeverityLevel.ts +0 -28
  188. package/src/Interfaces/IAppInsights.ts +0 -31
  189. package/src/Interfaces/IConfig.ts +0 -396
  190. package/src/Interfaces/ICorrelationConfig.ts +0 -71
  191. package/src/Interfaces/IDependencyTelemetry.ts +0 -22
  192. package/src/Interfaces/IEventTelemetry.ts +0 -20
  193. package/src/Interfaces/IExceptionTelemetry.ts +0 -143
  194. package/src/Interfaces/IMetricTelemetry.ts +0 -56
  195. package/src/Interfaces/IPageViewPerformanceTelemetry.ts +0 -61
  196. package/src/Interfaces/IPageViewTelemetry.ts +0 -65
  197. package/src/Interfaces/IPartC.ts +0 -18
  198. package/src/Interfaces/IPropertiesPlugin.ts +0 -8
  199. package/src/Interfaces/IRequestContext.ts +0 -6
  200. package/src/Interfaces/ITelemetryContext.ts +0 -69
  201. package/src/Interfaces/IThrottleMgr.ts +0 -111
  202. package/src/Interfaces/ITraceTelemetry.ts +0 -28
  203. package/src/Interfaces/PartAExtensions.ts +0 -14
  204. package/src/Interfaces/Telemetry/IEnvelope.ts +0 -47
  205. package/src/Interfaces/Telemetry/ISerializable.ts +0 -11
  206. package/src/RequestResponseHeaders.ts +0 -96
  207. package/src/StorageHelperFuncs.ts +0 -223
  208. package/src/Telemetry/Common/Data.ts +0 -35
  209. package/src/Telemetry/Common/DataPoint.ts +0 -58
  210. package/src/Telemetry/Common/DataSanitizer.ts +0 -197
  211. package/src/Telemetry/Common/Envelope.ts +0 -81
  212. package/src/Telemetry/Event.ts +0 -52
  213. package/src/Telemetry/Exception.ts +0 -681
  214. package/src/Telemetry/Metric.ts +0 -61
  215. package/src/Telemetry/PageView.ts +0 -79
  216. package/src/Telemetry/PageViewPerformance.ts +0 -113
  217. package/src/Telemetry/RemoteDependencyData.ts +0 -122
  218. package/src/Telemetry/Trace.ts +0 -64
  219. package/src/TelemetryItemCreator.ts +0 -75
  220. package/src/ThrottleMgr.ts +0 -345
  221. package/src/UrlHelperFuncs.ts +0 -101
  222. package/src/Util.ts +0 -221
  223. package/src/__DynamicConstants.ts +0 -50
  224. package/src/applicationinsights-common.ts +0 -76
  225. package/types/ConnectionStringParser.d.ts +0 -5
  226. package/types/Constants.d.ts +0 -15
  227. package/types/DomHelperFuncs.d.ts +0 -1
  228. package/types/Enums.d.ts +0 -49
  229. package/types/HelperFuncs.d.ts +0 -8
  230. package/types/Interfaces/ConnectionString.d.ts +0 -4
  231. package/types/Interfaces/Context/IApplication.d.ts +0 -10
  232. package/types/Interfaces/Context/IDevice.d.ts +0 -22
  233. package/types/Interfaces/Context/IInternal.d.ts +0 -23
  234. package/types/Interfaces/Context/ILocation.d.ts +0 -6
  235. package/types/Interfaces/Context/IOperatingSystem.d.ts +0 -3
  236. package/types/Interfaces/Context/ISample.d.ts +0 -8
  237. package/types/Interfaces/Context/ISession.d.ts +0 -17
  238. package/types/Interfaces/Context/ITelemetryTrace.d.ts +0 -25
  239. package/types/Interfaces/Context/IUser.d.ts +0 -39
  240. package/types/Interfaces/Context/IWeb.d.ts +0 -30
  241. package/types/Interfaces/Contracts/AvailabilityData.d.ts +0 -0
  242. package/types/Interfaces/Contracts/ContextTagKeys.d.ts +0 -175
  243. package/types/Interfaces/Contracts/DataPointType.d.ts +0 -7
  244. package/types/Interfaces/Contracts/DependencyKind.d.ts +0 -8
  245. package/types/Interfaces/Contracts/DependencySourceType.d.ts +0 -8
  246. package/types/Interfaces/Contracts/IBase.d.ts +0 -9
  247. package/types/Interfaces/Contracts/IData.d.ts +0 -14
  248. package/types/Interfaces/Contracts/IDataPoint.d.ts +0 -34
  249. package/types/Interfaces/Contracts/IDomain.d.ts +0 -5
  250. package/types/Interfaces/Contracts/IEnvelope.d.ts +0 -0
  251. package/types/Interfaces/Contracts/IEventData.d.ts +0 -22
  252. package/types/Interfaces/Contracts/IExceptionData.d.ts +0 -28
  253. package/types/Interfaces/Contracts/IExceptionDetails.d.ts +0 -34
  254. package/types/Interfaces/Contracts/IMessageData.d.ts +0 -27
  255. package/types/Interfaces/Contracts/IMetricData.d.ts +0 -23
  256. package/types/Interfaces/Contracts/IPageViewData.d.ts +0 -18
  257. package/types/Interfaces/Contracts/IPageViewPerfData.d.ts +0 -26
  258. package/types/Interfaces/Contracts/IRemoteDependencyData.d.ts +0 -50
  259. package/types/Interfaces/Contracts/IStackFrame.d.ts +0 -25
  260. package/types/Interfaces/Contracts/RequestData.d.ts +0 -0
  261. package/types/Interfaces/Contracts/SeverityLevel.d.ts +0 -15
  262. package/types/Interfaces/IAppInsights.d.ts +0 -37
  263. package/types/Interfaces/IConfig.d.ts +0 -323
  264. package/types/Interfaces/ICorrelationConfig.d.ts +0 -59
  265. package/types/Interfaces/IDependencyTelemetry.d.ts +0 -17
  266. package/types/Interfaces/IEventTelemetry.d.ts +0 -15
  267. package/types/Interfaces/IExceptionTelemetry.d.ts +0 -123
  268. package/types/Interfaces/IMetricTelemetry.d.ts +0 -46
  269. package/types/Interfaces/IPageViewPerformanceTelemetry.d.ts +0 -55
  270. package/types/Interfaces/IPageViewTelemetry.d.ts +0 -52
  271. package/types/Interfaces/IPartC.d.ts +0 -18
  272. package/types/Interfaces/IPropertiesPlugin.d.ts +0 -4
  273. package/types/Interfaces/IRequestContext.d.ts +0 -6
  274. package/types/Interfaces/ITelemetryContext.d.ts +0 -55
  275. package/types/Interfaces/IThrottleMgr.d.ts +0 -96
  276. package/types/Interfaces/ITraceTelemetry.d.ts +0 -22
  277. package/types/Interfaces/PartAExtensions.d.ts +0 -12
  278. package/types/Interfaces/Telemetry/IEnvelope.d.ts +0 -37
  279. package/types/Interfaces/Telemetry/ISerializable.d.ts +0 -8
  280. package/types/RequestResponseHeaders.d.ts +0 -68
  281. package/types/StorageHelperFuncs.d.ts +0 -23
  282. package/types/Telemetry/Common/Data.d.ts +0 -24
  283. package/types/Telemetry/Common/DataPoint.d.ts +0 -46
  284. package/types/Telemetry/Common/DataSanitizer.d.ts +0 -42
  285. package/types/Telemetry/Common/Envelope.d.ts +0 -45
  286. package/types/Telemetry/Event.d.ts +0 -34
  287. package/types/Telemetry/Exception.d.ts +0 -150
  288. package/types/Telemetry/Metric.d.ts +0 -36
  289. package/types/Telemetry/PageView.d.ts +0 -53
  290. package/types/Telemetry/PageViewPerformance.d.ts +0 -78
  291. package/types/Telemetry/RemoteDependencyData.d.ts +0 -79
  292. package/types/Telemetry/Trace.d.ts +0 -41
  293. package/types/TelemetryItemCreator.d.ts +0 -27
  294. package/types/ThrottleMgr.d.ts +0 -13
  295. package/types/UrlHelperFuncs.d.ts +0 -6
  296. package/types/Util.d.ts +0 -36
  297. package/types/__DynamicConstants.d.ts +0 -38
  298. package/types/tsdoc-metadata.json +0 -11
  299. /package/{dist-esm → dist-es5}/ConnectionStringParser.js.map +0 -0
  300. /package/{dist-esm → dist-es5}/Constants.js.map +0 -0
  301. /package/{dist-esm → dist-es5}/DomHelperFuncs.js.map +0 -0
  302. /package/{dist-esm → dist-es5}/Enums.js.map +0 -0
  303. /package/{dist-esm → dist-es5}/HelperFuncs.js.map +0 -0
  304. /package/{dist-esm → dist-es5}/Interfaces/ConnectionString.js.map +0 -0
  305. /package/{dist-esm → dist-es5}/Interfaces/Context/IApplication.js.map +0 -0
  306. /package/{dist-esm → dist-es5}/Interfaces/Context/IDevice.js.map +0 -0
  307. /package/{dist-esm → dist-es5}/Interfaces/Context/IInternal.js.map +0 -0
  308. /package/{dist-esm → dist-es5}/Interfaces/Context/ILocation.js.map +0 -0
  309. /package/{dist-esm → dist-es5}/Interfaces/Context/IOperatingSystem.js.map +0 -0
  310. /package/{dist-esm → dist-es5}/Interfaces/Context/ISample.js.map +0 -0
  311. /package/{dist-esm → dist-es5}/Interfaces/Context/ISession.js.map +0 -0
  312. /package/{dist-esm → dist-es5}/Interfaces/Context/ITelemetryTrace.js.map +0 -0
  313. /package/{dist-esm → dist-es5}/Interfaces/Context/IUser.js.map +0 -0
  314. /package/{dist-esm → dist-es5}/Interfaces/Context/IWeb.js.map +0 -0
  315. /package/{dist-esm → dist-es5}/Interfaces/Contracts/AvailabilityData.js.map +0 -0
  316. /package/{dist-esm → dist-es5}/Interfaces/Contracts/ContextTagKeys.js.map +0 -0
  317. /package/{dist-esm → dist-es5}/Interfaces/Contracts/DataPointType.js.map +0 -0
  318. /package/{dist-esm → dist-es5}/Interfaces/Contracts/DependencyKind.js.map +0 -0
  319. /package/{dist-esm → dist-es5}/Interfaces/Contracts/DependencySourceType.js.map +0 -0
  320. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IBase.js.map +0 -0
  321. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IData.js.map +0 -0
  322. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IDataPoint.js.map +0 -0
  323. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IDomain.js.map +0 -0
  324. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IEnvelope.js.map +0 -0
  325. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IEventData.js.map +0 -0
  326. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IExceptionData.js.map +0 -0
  327. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IExceptionDetails.js.map +0 -0
  328. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IMessageData.js.map +0 -0
  329. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IMetricData.js.map +0 -0
  330. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IPageViewData.js.map +0 -0
  331. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IPageViewPerfData.js.map +0 -0
  332. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IRemoteDependencyData.js.map +0 -0
  333. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IStackFrame.js.map +0 -0
  334. /package/{dist-esm → dist-es5}/Interfaces/Contracts/RequestData.js.map +0 -0
  335. /package/{dist-esm → dist-es5}/Interfaces/Contracts/SeverityLevel.js.map +0 -0
  336. /package/{dist-esm → dist-es5}/Interfaces/IAppInsights.js.map +0 -0
  337. /package/{dist-esm → dist-es5}/Interfaces/IConfig.js.map +0 -0
  338. /package/{dist-esm → dist-es5}/Interfaces/ICorrelationConfig.js.map +0 -0
  339. /package/{dist-esm → dist-es5}/Interfaces/IDependencyTelemetry.js.map +0 -0
  340. /package/{dist-esm → dist-es5}/Interfaces/IEventTelemetry.js.map +0 -0
  341. /package/{dist-esm → dist-es5}/Interfaces/IExceptionTelemetry.js.map +0 -0
  342. /package/{dist-esm → dist-es5}/Interfaces/IMetricTelemetry.js.map +0 -0
  343. /package/{dist-esm → dist-es5}/Interfaces/IPageViewPerformanceTelemetry.js.map +0 -0
  344. /package/{dist-esm → dist-es5}/Interfaces/IPageViewTelemetry.js.map +0 -0
  345. /package/{dist-esm → dist-es5}/Interfaces/IPartC.js.map +0 -0
  346. /package/{dist-esm → dist-es5}/Interfaces/IPropertiesPlugin.js.map +0 -0
  347. /package/{dist-esm → dist-es5}/Interfaces/IRequestContext.js.map +0 -0
  348. /package/{dist-esm → dist-es5}/Interfaces/ITelemetryContext.js.map +0 -0
  349. /package/{dist-esm → dist-es5}/Interfaces/IThrottleMgr.js.map +0 -0
  350. /package/{dist-esm → dist-es5}/Interfaces/ITraceTelemetry.js.map +0 -0
  351. /package/{dist-esm → dist-es5}/Interfaces/PartAExtensions.js.map +0 -0
  352. /package/{dist-esm → dist-es5}/Interfaces/Telemetry/IEnvelope.js.map +0 -0
  353. /package/{dist-esm → dist-es5}/Interfaces/Telemetry/ISerializable.js.map +0 -0
  354. /package/{dist-esm → dist-es5}/RequestResponseHeaders.js.map +0 -0
  355. /package/{dist-esm → dist-es5}/StorageHelperFuncs.js.map +0 -0
  356. /package/{dist-esm → dist-es5}/Telemetry/Common/Data.js.map +0 -0
  357. /package/{dist-esm → dist-es5}/Telemetry/Common/DataPoint.js.map +0 -0
  358. /package/{dist-esm → dist-es5}/Telemetry/Common/Envelope.js.map +0 -0
  359. /package/{dist-esm → dist-es5}/Telemetry/Event.js.map +0 -0
  360. /package/{dist-esm → dist-es5}/Telemetry/Exception.js.map +0 -0
  361. /package/{dist-esm → dist-es5}/Telemetry/Metric.js.map +0 -0
  362. /package/{dist-esm → dist-es5}/Telemetry/PageView.js.map +0 -0
  363. /package/{dist-esm → dist-es5}/Telemetry/PageViewPerformance.js.map +0 -0
  364. /package/{dist-esm → dist-es5}/Telemetry/RemoteDependencyData.js.map +0 -0
  365. /package/{dist-esm → dist-es5}/Telemetry/Trace.js.map +0 -0
  366. /package/{dist-esm → dist-es5}/TelemetryItemCreator.js.map +0 -0
  367. /package/{dist-esm → dist-es5}/ThrottleMgr.js.map +0 -0
  368. /package/{dist-esm → dist-es5}/UrlHelperFuncs.js.map +0 -0
  369. /package/{dist-esm → dist-es5}/Util.js.map +0 -0
  370. /package/{dist-esm → dist-es5}/__DynamicConstants.js.map +0 -0
  371. /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
- }