@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,2562 +0,0 @@
1
- /*
2
- * Microsoft Application Insights Common JavaScript Library, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- *
5
- * Microsoft Application Insights Team
6
- * https://github.com/microsoft/ApplicationInsights-JS#readme
7
- *
8
- * ---------------------------------------------------------------------------
9
- * This is a single combined (rollup) declaration file for the package,
10
- * use this version if your build environment doesn't support the using the
11
- * individual *.d.ts files or default namespace wrapped version.
12
- * - Namespaced version: applicationinsights-common.d.ts
13
- * ---------------------------------------------------------------------------
14
- */
15
-
16
- import { createTraceParent } from '@microsoft/applicationinsights-core-js';
17
- import { _eInternalMessageId } from '@microsoft/applicationinsights-core-js';
18
- import { eLoggingSeverity } from '@microsoft/applicationinsights-core-js';
19
- import { EnumValue } from '@microsoft/applicationinsights-core-js';
20
- import { findW3cTraceParent } from '@microsoft/applicationinsights-core-js';
21
- import { formatTraceParent } from '@microsoft/applicationinsights-core-js';
22
- import { IAppInsightsCore } from '@microsoft/applicationinsights-core-js';
23
- import { IConfiguration } from '@microsoft/applicationinsights-core-js';
24
- import { ICookieMgr } from '@microsoft/applicationinsights-core-js';
25
- import { ICustomProperties } from '@microsoft/applicationinsights-core-js';
26
- import { IDiagnosticLogger } from '@microsoft/applicationinsights-core-js';
27
- import { IDistributedTraceContext } from '@microsoft/applicationinsights-core-js';
28
- import { IPlugin } from '@microsoft/applicationinsights-core-js';
29
- import { isBeaconsSupported as isBeaconApiSupported } from '@microsoft/applicationinsights-core-js';
30
- import { isSampledFlag } from '@microsoft/applicationinsights-core-js';
31
- import { isValidSpanId } from '@microsoft/applicationinsights-core-js';
32
- import { isValidTraceId } from '@microsoft/applicationinsights-core-js';
33
- import { isValidTraceParent } from '@microsoft/applicationinsights-core-js';
34
- import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
35
- import { ITraceParent } from '@microsoft/applicationinsights-core-js';
36
- import { IUnloadHookContainer } from '@microsoft/applicationinsights-core-js';
37
- import { parseTraceParent } from '@microsoft/applicationinsights-core-js';
38
-
39
- /**
40
- * Data struct to contain only C section with custom fields.
41
- */
42
- export declare interface AIBase {
43
- /**
44
- * Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
45
- */
46
- baseType: string;
47
- }
48
-
49
- /**
50
- * Data struct to contain both B and C sections.
51
- */
52
- export declare interface AIData<TDomain> extends AIBase {
53
- /**
54
- * Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
55
- */
56
- baseType: string;
57
- /**
58
- * Container for data item (B section).
59
- */
60
- baseData: TDomain;
61
- }
62
-
63
- export declare const AnalyticsPluginIdentifier = "ApplicationInsightsAnalytics";
64
-
65
- export declare const BreezeChannelIdentifier = "AppInsightsChannelPlugin";
66
-
67
- export declare class ConfigurationManager {
68
- static getConfig(config: IConfiguration & IConfig, field: string, identifier?: string, defaultValue?: number | string | boolean): number | string | boolean;
69
- }
70
-
71
- declare type ConnectionString = {
72
- [key in ConnectionStringKey]?: string;
73
- };
74
-
75
- declare type ConnectionStringKey = "authorization" | "instrumentationkey" | "ingestionendpoint" | "location" | "endpointsuffix";
76
-
77
- export declare const ConnectionStringParser: {
78
- parse: typeof parseConnectionString;
79
- };
80
-
81
- export declare class ContextTagKeys extends ContextTagKeys_base {
82
- constructor();
83
- }
84
-
85
- declare const ContextTagKeys_base: new () => IContextTagKeys;
86
-
87
- /**
88
- * Checks if a request url is not on a excluded domain list and if it is safe to add correlation headers.
89
- * Headers are always included if the current domain matches the request domain. If they do not match (CORS),
90
- * they are regex-ed across correlationHeaderDomains and correlationHeaderExcludedDomains to determine if headers are included.
91
- * Some environments don't give information on currentHost via window.location.host (e.g. Cordova). In these cases, the user must
92
- * manually supply domains to include correlation headers on. Else, no headers will be included at all.
93
- */
94
- export declare function correlationIdCanIncludeCorrelationHeader(config: ICorrelationConfig, requestUrl: string, currentHost?: string): boolean;
95
-
96
- /**
97
- * Combines target appId and target role name from response header.
98
- */
99
- export declare function correlationIdGetCorrelationContext(responseHeader: string): string;
100
-
101
- /**
102
- * Gets key from correlation response header
103
- */
104
- export declare function correlationIdGetCorrelationContextValue(responseHeader: string, key: string): string;
105
-
106
- export declare function correlationIdGetPrefix(): string;
107
-
108
- export declare function correlationIdSetPrefix(prefix: string): void;
109
-
110
- /**
111
- * Creates a IDistributedTraceContext from an optional telemetryTrace
112
- * @param telemetryTrace - The telemetryTrace instance that is being wrapped
113
- * @param parentCtx - An optional parent distributed trace instance, almost always undefined as this scenario is only used in the case of multiple property handlers.
114
- * @returns A new IDistributedTraceContext instance that is backed by the telemetryTrace or temporary object
115
- */
116
- export declare function createDistributedTraceContextFromTrace(telemetryTrace?: ITelemetryTrace, parentCtx?: IDistributedTraceContext): IDistributedTraceContext;
117
-
118
- export declare function createDomEvent(eventName: string): Event;
119
-
120
- /**
121
- * Create a telemetry item that the 1DS channel understands
122
- * @param item - domain specific properties; part B
123
- * @param baseType - telemetry item type. ie PageViewData
124
- * @param envelopeName - name of the envelope. ie Microsoft.ApplicationInsights.<instrumentation key>.PageView
125
- * @param customProperties - user defined custom properties; part C
126
- * @param systemProperties - system properties that are added to the context; part A
127
- * @returns ITelemetryItem that is sent to channel
128
- */
129
- export declare function createTelemetryItem<T>(item: T, baseType: string, envelopeName: string, logger: IDiagnosticLogger, customProperties?: {
130
- [key: string]: any;
131
- }, systemProperties?: {
132
- [key: string]: any;
133
- }): ITelemetryItem;
134
-
135
- export { createTraceParent }
136
-
137
- export declare let CtxTagKeys: ContextTagKeys;
138
-
139
- export declare class Data<TDomain> implements AIData<TDomain>, ISerializable {
140
- /**
141
- * The data contract for serializing this object.
142
- */
143
- aiDataContract: {
144
- baseType: FieldType;
145
- baseData: FieldType;
146
- };
147
- /**
148
- * Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
149
- */
150
- baseType: string;
151
- /**
152
- * Container for data item (B section).
153
- */
154
- baseData: TDomain;
155
- /**
156
- * Constructs a new instance of telemetry data.
157
- */
158
- constructor(baseType: string, data: TDomain);
159
- }
160
-
161
- declare class DataPoint implements IDataPoint, ISerializable {
162
- /**
163
- * The data contract for serializing this object.
164
- */
165
- aiDataContract: {
166
- name: FieldType;
167
- kind: FieldType;
168
- value: FieldType;
169
- count: FieldType;
170
- min: FieldType;
171
- max: FieldType;
172
- stdDev: FieldType;
173
- };
174
- /**
175
- * Name of the metric.
176
- */
177
- name: string;
178
- /**
179
- * Metric type. Single measurement or the aggregated value.
180
- */
181
- kind: DataPointType;
182
- /**
183
- * Single value for measurement. Sum of individual measurements for the aggregation.
184
- */
185
- value: number;
186
- /**
187
- * Metric weight of the aggregated metric. Should not be set for a measurement.
188
- */
189
- count: number;
190
- /**
191
- * Minimum value of the aggregated metric. Should not be set for a measurement.
192
- */
193
- min: number;
194
- /**
195
- * Maximum value of the aggregated metric. Should not be set for a measurement.
196
- */
197
- max: number;
198
- /**
199
- * Standard deviation of the aggregated metric. Should not be set for a measurement.
200
- */
201
- stdDev: number;
202
- }
203
-
204
- /**
205
- * Type of the metric data measurement.
206
- */
207
- declare const enum DataPointType {
208
- Measurement = 0,
209
- Aggregation = 1
210
- }
211
-
212
- export declare function dataSanitizeException(logger: IDiagnosticLogger, exception: any): any;
213
-
214
- export declare function dataSanitizeId(logger: IDiagnosticLogger, id: string): string;
215
-
216
- export declare function dataSanitizeInput(logger: IDiagnosticLogger, input: any, maxLength: number, _msgId: _eInternalMessageId): any;
217
-
218
- export declare function dataSanitizeKey(logger: IDiagnosticLogger, name: any): any;
219
-
220
- export declare function dataSanitizeKeyAndAddUniqueness(logger: IDiagnosticLogger, key: any, map: any): any;
221
-
222
- export declare function dataSanitizeMeasurements(logger: IDiagnosticLogger, measurements: any): any;
223
-
224
- export declare function dataSanitizeMessage(logger: IDiagnosticLogger, message: any): any;
225
-
226
- export declare function dataSanitizeProperties(logger: IDiagnosticLogger, properties: any): any;
227
-
228
- export declare const enum DataSanitizerValues {
229
- /**
230
- * Max length allowed for custom names.
231
- */
232
- MAX_NAME_LENGTH = 150,
233
- /**
234
- * Max length allowed for Id field in page views.
235
- */
236
- MAX_ID_LENGTH = 128,
237
- /**
238
- * Max length allowed for custom values.
239
- */
240
- MAX_PROPERTY_LENGTH = 8192,
241
- /**
242
- * Max length allowed for names
243
- */
244
- MAX_STRING_LENGTH = 1024,
245
- /**
246
- * Max length allowed for url.
247
- */
248
- MAX_URL_LENGTH = 2048,
249
- /**
250
- * Max length allowed for messages.
251
- */
252
- MAX_MESSAGE_LENGTH = 32768,
253
- /**
254
- * Max length allowed for exceptions.
255
- */
256
- MAX_EXCEPTION_LENGTH = 32768
257
- }
258
-
259
- export declare function dataSanitizeString(logger: IDiagnosticLogger, value: any, maxLength?: number): any;
260
-
261
- export declare function dataSanitizeUrl(logger: IDiagnosticLogger, url: any): any;
262
-
263
- export declare function dateTimeUtilsDuration(start: number, end: number): number;
264
-
265
- export declare function dateTimeUtilsNow(): number;
266
-
267
- export declare const DEFAULT_BREEZE_ENDPOINT = "https://dc.services.visualstudio.com";
268
-
269
- export declare const DEFAULT_BREEZE_PATH = "/v2/track";
270
-
271
- /**
272
- * This is an internal property used to cause internal (reporting) requests to be ignored from reporting
273
- * additional telemetry, to handle polyfil implementations ALL urls used with a disabled request will
274
- * also be ignored for future requests even when this property is not provided.
275
- * Tagging as Ignore as this is an internal value and is not expected to be used outside of the SDK
276
- * @ignore
277
- */
278
- export declare const DisabledPropertyName: string;
279
-
280
- export declare const DistributedTracingModes: EnumValue<typeof eDistributedTracingModes>;
281
-
282
- export declare type DistributedTracingModes = number | eDistributedTracingModes;
283
-
284
- export declare function dsPadNumber(num: number): string;
285
-
286
- export declare const enum eDistributedTracingModes {
287
- /**
288
- * (Default) Send Application Insights correlation headers
289
- */
290
- AI = 0,
291
- /**
292
- * Send both W3C Trace Context headers and back-compatibility Application Insights headers
293
- */
294
- AI_AND_W3C = 1,
295
- /**
296
- * Send W3C Trace Context headers
297
- */
298
- W3C = 2
299
- }
300
-
301
- export declare class Envelope implements IEnvelope {
302
- /**
303
- * The data contract for serializing this object.
304
- */
305
- aiDataContract: any;
306
- /**
307
- * 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.
308
- */
309
- ver: number;
310
- /**
311
- * Type name of telemetry data item.
312
- */
313
- name: string;
314
- /**
315
- * 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.
316
- */
317
- time: string;
318
- /**
319
- * Sampling rate used in application. This telemetry item represents 1 / sampleRate actual telemetry items.
320
- */
321
- sampleRate: number;
322
- /**
323
- * Sequence field used to track absolute order of uploaded events.
324
- */
325
- seq: string;
326
- /**
327
- * 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.
328
- */
329
- iKey: string;
330
- /**
331
- * Key/value collection of context properties. See ContextTagKeys for information on available properties.
332
- */
333
- tags: any;
334
- /**
335
- * Telemetry data item.
336
- */
337
- data: AIBase;
338
- /**
339
- * Constructs a new instance of telemetry data.
340
- */
341
- constructor(logger: IDiagnosticLogger, data: AIBase, name: string);
342
- }
343
-
344
- export declare const enum eRequestHeaders {
345
- requestContextHeader = 0,
346
- requestContextTargetKey = 1,
347
- requestContextAppIdFormat = 2,
348
- requestIdHeader = 3,
349
- traceParentHeader = 4,
350
- traceStateHeader = 5,
351
- sdkContextHeader = 6,
352
- sdkContextHeaderAppIdRequest = 7,
353
- requestContextHeaderLowerCase = 8
354
- }
355
-
356
- /**
357
- * Defines the level of severity for the event.
358
- */
359
- export declare const enum eSeverityLevel {
360
- Verbose = 0,
361
- Information = 1,
362
- Warning = 2,
363
- Error = 3,
364
- Critical = 4
365
- }
366
-
367
- declare class Event_2 implements IEventData, ISerializable {
368
- static envelopeType: string;
369
- static dataType: string;
370
- aiDataContract: {
371
- ver: FieldType;
372
- name: FieldType;
373
- properties: FieldType;
374
- measurements: FieldType;
375
- };
376
- /**
377
- * Schema version
378
- */
379
- ver: number;
380
- /**
381
- * Event name. Keep it low cardinality to allow proper grouping and useful metrics.
382
- */
383
- name: string;
384
- /**
385
- * Collection of custom properties.
386
- */
387
- properties: any;
388
- /**
389
- * Collection of custom measurements.
390
- */
391
- measurements: any;
392
- /**
393
- * Constructs a new instance of the EventTelemetry object
394
- */
395
- constructor(logger: IDiagnosticLogger, name: string, properties?: any, measurements?: any);
396
- }
397
- export { Event_2 as Event }
398
-
399
- export declare class Exception implements IExceptionData, ISerializable {
400
- static envelopeType: string;
401
- static dataType: string;
402
- id?: string;
403
- problemGroup?: string;
404
- isManual?: boolean;
405
- aiDataContract: {
406
- ver: FieldType;
407
- exceptions: FieldType;
408
- severityLevel: FieldType;
409
- properties: FieldType;
410
- measurements: FieldType;
411
- };
412
- /**
413
- * Schema version
414
- */
415
- ver: number;
416
- /**
417
- * Exception chain - list of inner exceptions.
418
- */
419
- exceptions: IExceptionDetails[];
420
- /**
421
- * Severity level. Mostly used to indicate exception severity level when it is reported by logging library.
422
- */
423
- severityLevel: SeverityLevel;
424
- /**
425
- * Collection of custom properties.
426
- */
427
- properties: any;
428
- /**
429
- * Collection of custom measurements.
430
- */
431
- measurements: any;
432
- /**
433
- * Constructs a new instance of the ExceptionTelemetry object
434
- */
435
- constructor(logger: IDiagnosticLogger, exception: Error | IExceptionInternal | IAutoExceptionTelemetry, properties?: {
436
- [key: string]: any;
437
- }, measurements?: {
438
- [key: string]: number;
439
- }, severityLevel?: SeverityLevel, id?: string);
440
- static CreateAutoException(message: string | Event, url: string, lineNumber: number, columnNumber: number, error: any, evt?: Event | string, stack?: string, errorSrc?: string): IAutoExceptionTelemetry;
441
- static CreateFromInterface(logger: IDiagnosticLogger, exception: IExceptionInternal, properties?: any, measurements?: {
442
- [key: string]: number;
443
- }): Exception;
444
- toInterface(): IExceptionInternal;
445
- /**
446
- * Creates a simple exception with 1 stack frame. Useful for manual constracting of exception.
447
- */
448
- static CreateSimpleException(message: string, typeName: string, assembly: string, fileName: string, details: string, line: number): Exception;
449
- static formatError: typeof _formatErrorCode;
450
- }
451
-
452
- export declare const Extensions: {
453
- UserExt: string;
454
- DeviceExt: string;
455
- TraceExt: string;
456
- WebExt: string;
457
- AppExt: string;
458
- OSExt: string;
459
- SessionExt: string;
460
- SDKExt: string;
461
- };
462
-
463
- /**
464
- * Enum is used in aiDataContract to describe how fields are serialized.
465
- * For instance: (Fieldtype.Required | FieldType.Array) will mark the field as required and indicate it's an array
466
- */
467
- export declare const enum FieldType {
468
- Default = 0,
469
- Required = 1,
470
- Array = 2,
471
- Hidden = 4
472
- }
473
-
474
- export { findW3cTraceParent }
475
-
476
- /**
477
- * Formats the provided errorObj for display and reporting, it may be a String, Object, integer or undefined depending on the browser.
478
- * @param errorObj - The supplied errorObj
479
- */
480
- declare function _formatErrorCode(errorObj: any): any;
481
-
482
- export { formatTraceParent }
483
-
484
- export declare function getExtensionByName(extensions: IPlugin[], identifier: string): IPlugin | null;
485
-
486
- export declare const HttpMethod = "http.method";
487
-
488
- export declare interface IAppInsights {
489
- /**
490
- * Get the current cookie manager for this instance
491
- */
492
- getCookieMgr(): ICookieMgr;
493
- trackEvent(event: IEventTelemetry, customProperties?: {
494
- [key: string]: any;
495
- }): void;
496
- trackPageView(pageView: IPageViewTelemetry, customProperties?: {
497
- [key: string]: any;
498
- }): void;
499
- trackException(exception: IExceptionTelemetry, customProperties?: {
500
- [key: string]: any;
501
- }): void;
502
- _onerror(exception: IAutoExceptionTelemetry): void;
503
- trackTrace(trace: ITraceTelemetry, customProperties?: {
504
- [key: string]: any;
505
- }): void;
506
- trackMetric(metric: IMetricTelemetry, customProperties?: {
507
- [key: string]: any;
508
- }): void;
509
- startTrackPage(name?: string): void;
510
- stopTrackPage(name?: string, url?: string, customProperties?: Object): void;
511
- startTrackEvent(name: string): void;
512
- stopTrackEvent(name: string, properties?: Object, measurements?: Object): void;
513
- addTelemetryInitializer(telemetryInitializer: (item: ITelemetryItem) => boolean | void): void;
514
- trackPageViewPerformance(pageViewPerformance: IPageViewPerformanceTelemetry, customProperties?: {
515
- [key: string]: any;
516
- }): void;
517
- }
518
-
519
- export declare interface IApplication {
520
- /**
521
- * The application version.
522
- */
523
- ver: string;
524
- /**
525
- * The application build version.
526
- */
527
- build: string;
528
- }
529
-
530
- /**
531
- * @description window.onerror function parameters
532
- * @export
533
- * @interface IAutoExceptionTelemetry
534
- */
535
- export declare interface IAutoExceptionTelemetry {
536
- /**
537
- * @description error message. Available as event in HTML onerror="" handler
538
- * @type {string}
539
- * @memberof IAutoExceptionTelemetry
540
- */
541
- message: string;
542
- /**
543
- * @description URL of the script where the error was raised
544
- * @type {string}
545
- * @memberof IAutoExceptionTelemetry
546
- */
547
- url: string;
548
- /**
549
- * @description Line number where error was raised
550
- * @type {number}
551
- * @memberof IAutoExceptionTelemetry
552
- */
553
- lineNumber: number;
554
- /**
555
- * @description Column number for the line where the error occurred
556
- * @type {number}
557
- * @memberof IAutoExceptionTelemetry
558
- */
559
- columnNumber: number;
560
- /**
561
- * @description Error Object (object)
562
- * @type {any}
563
- * @memberof IAutoExceptionTelemetry
564
- */
565
- error: any;
566
- /**
567
- * @description The event at the time of the exception (object)
568
- * @type {Event|string}
569
- * @memberof IAutoExceptionTelemetry
570
- */
571
- evt?: Event | string;
572
- /**
573
- * @description The provided stack for the error
574
- * @type {IStackDetails}
575
- * @memberof IAutoExceptionTelemetry
576
- */
577
- stackDetails?: IStackDetails;
578
- /**
579
- * @description The calculated type of the error
580
- * @type {string}
581
- * @memberof IAutoExceptionTelemetry
582
- */
583
- typeName?: string;
584
- /**
585
- * @description The descriptive source of the error
586
- * @type {string}
587
- * @memberof IAutoExceptionTelemetry
588
- */
589
- errorSrc?: string;
590
- }
591
-
592
- /**
593
- * Configuration settings for how telemetry is sent
594
- * @export
595
- * @interface IConfig
596
- */
597
- export declare interface IConfig {
598
- /**
599
- * The JSON format (normal vs line delimited). True means line delimited JSON.
600
- */
601
- emitLineDelimitedJson?: boolean;
602
- /**
603
- * An optional account id, if your app groups users into accounts. No spaces, commas, semicolons, equals, or vertical bars.
604
- */
605
- accountId?: string;
606
- /**
607
- * A session is logged if the user is inactive for this amount of time in milliseconds. Default 30 mins.
608
- * @default 30*60*1000
609
- */
610
- sessionRenewalMs?: number;
611
- /**
612
- * A session is logged if it has continued for this amount of time in milliseconds. Default 24h.
613
- * @default 24*60*60*1000
614
- */
615
- sessionExpirationMs?: number;
616
- /**
617
- * Max size of telemetry batch. If batch exceeds limit, it is sent and a new batch is started
618
- * @default 100000
619
- */
620
- maxBatchSizeInBytes?: number;
621
- /**
622
- * How long to batch telemetry for before sending (milliseconds)
623
- * @default 15 seconds
624
- */
625
- maxBatchInterval?: number;
626
- /**
627
- * If true, debugging data is thrown as an exception by the logger. Default false
628
- * @defaultValue false
629
- */
630
- enableDebug?: boolean;
631
- /**
632
- * If true, exceptions are not autocollected. Default is false
633
- * @defaultValue false
634
- */
635
- disableExceptionTracking?: boolean;
636
- /**
637
- * If true, telemetry is not collected or sent. Default is false
638
- * @defaultValue false
639
- */
640
- disableTelemetry?: boolean;
641
- /**
642
- * Percentage of events that will be sent. Default is 100, meaning all events are sent.
643
- * @defaultValue 100
644
- */
645
- samplingPercentage?: number;
646
- /**
647
- * 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.
648
- */
649
- autoTrackPageVisitTime?: boolean;
650
- /**
651
- * Automatically track route changes in Single Page Applications (SPA). If true, each route change will send a new Pageview to Application Insights.
652
- */
653
- enableAutoRouteTracking?: boolean;
654
- /**
655
- * If true, Ajax calls are not autocollected. Default is false
656
- * @defaultValue false
657
- */
658
- disableAjaxTracking?: boolean;
659
- /**
660
- * If true, Fetch requests are not autocollected. Default is false (Since 2.8.0, previously true).
661
- * @defaultValue false
662
- */
663
- disableFetchTracking?: boolean;
664
- /**
665
- * 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.
666
- * @defaultValue undefined.
667
- */
668
- excludeRequestFromAutoTrackingPatterns?: string[] | RegExp[];
669
- /**
670
- * Provide a way to enrich dependencies logs with context at the beginning of api call.
671
- * Default is undefined.
672
- */
673
- addRequestContext?: (requestContext?: IRequestContext) => ICustomProperties;
674
- /**
675
- * 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
676
- * @defaultValue false
677
- */
678
- overridePageViewDuration?: boolean;
679
- /**
680
- * 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.
681
- */
682
- maxAjaxCallsPerView?: number;
683
- /**
684
- * @ignore
685
- * If false, internal telemetry sender buffers will be checked at startup for items not yet sent. Default is true
686
- * @defaultValue true
687
- */
688
- disableDataLossAnalysis?: boolean;
689
- /**
690
- * 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.
691
- * @defaultValue false
692
- */
693
- disableCorrelationHeaders?: boolean;
694
- /**
695
- * 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.
696
- * AI_AND_W3C is provided for back-compatibility with any legacy Application Insights instrumented services
697
- * @defaultValue AI_AND_W3C
698
- */
699
- distributedTracingMode?: DistributedTracingModes;
700
- /**
701
- * Disable correlation headers for specific domain
702
- */
703
- correlationHeaderExcludedDomains?: string[];
704
- /**
705
- * Default false. If true, flush method will not be called when onBeforeUnload, onUnload, onPageHide or onVisibilityChange (hidden state) event(s) trigger.
706
- */
707
- disableFlushOnBeforeUnload?: boolean;
708
- /**
709
- * Default value of {@link #disableFlushOnBeforeUnload}. If true, flush method will not be called when onPageHide or onVisibilityChange (hidden state) event(s) trigger.
710
- */
711
- disableFlushOnUnload?: boolean;
712
- /**
713
- * [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
714
- * 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.
715
- * (Some page unload functionality may be disabled via disableFlushOnBeforeUnload or disableFlushOnUnload config entries)
716
- * Unload events include "beforeunload", "unload", "visibilitychange" (with 'hidden' state) and "pagehide"
717
- */
718
- disablePageUnloadEvents?: string[];
719
- /**
720
- * [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
721
- * 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.
722
- * Page Show events include "pageshow" and "visibilitychange" (with 'visible' state)
723
- */
724
- disablePageShowEvents?: string[];
725
- /**
726
- * If true, the buffer with all unsent telemetry is stored in session storage. The buffer is restored on page load. Default is true.
727
- * @defaultValue true
728
- */
729
- enableSessionStorageBuffer?: boolean;
730
- /**
731
- * @deprecated Use either disableCookiesUsage or specify a cookieCfg with the enabled value set.
732
- * If true, the SDK will not store or read any data from cookies. Default is false. As this field is being deprecated, when both
733
- * isCookieUseDisabled and disableCookiesUsage are used disableCookiesUsage will take precedent.
734
- * @defaultValue false
735
- */
736
- isCookieUseDisabled?: boolean;
737
- /**
738
- * If true, the SDK will not store or read any data from cookies. Default is false.
739
- * If you have also specified a cookieCfg then enabled property (if specified) will take precedent over this value.
740
- * @defaultValue false
741
- */
742
- disableCookiesUsage?: boolean;
743
- /**
744
- * Custom cookie domain. This is helpful if you want to share Application Insights cookies across subdomains.
745
- * @defaultValue ""
746
- */
747
- cookieDomain?: string;
748
- /**
749
- * Custom cookie path. This is helpful if you want to share Application Insights cookies behind an application gateway.
750
- * @defaultValue ""
751
- */
752
- cookiePath?: string;
753
- /**
754
- * 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)
755
- * @description
756
- * @defaultValue false
757
- */
758
- isRetryDisabled?: boolean;
759
- /**
760
- * @deprecated Used when initizialing from snippet only.
761
- * The url from where the JS SDK will be downloaded.
762
- */
763
- url?: string;
764
- /**
765
- * If true, the SDK will not store or read any data from local and session storage. Default is false.
766
- * @defaultValue false
767
- */
768
- isStorageUseDisabled?: boolean;
769
- /**
770
- * If false, the SDK will send all telemetry using the [Beacon API](https://www.w3.org/TR/beacon)
771
- * @defaultValue true
772
- */
773
- isBeaconApiDisabled?: boolean;
774
- /**
775
- * Don't use XMLHttpRequest or XDomainRequest (for IE < 9) by default instead attempt to use fetch() or sendBeacon.
776
- * If no other transport is available it will still use XMLHttpRequest
777
- */
778
- disableXhr?: boolean;
779
- /**
780
- * If fetch keepalive is supported do not use it for sending events during unload, it may still fallback to fetch() without keepalive
781
- */
782
- onunloadDisableFetch?: boolean;
783
- /**
784
- * 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.
785
- * @defaultValue null
786
- */
787
- sdkExtension?: string;
788
- /**
789
- * 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.
790
- * @defaultValue false
791
- */
792
- isBrowserLinkTrackingEnabled?: boolean;
793
- /**
794
- * 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
795
- * @defaultValue null
796
- */
797
- appId?: string;
798
- /**
799
- * 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
800
- * @defaultValue false
801
- */
802
- enableCorsCorrelation?: boolean;
803
- /**
804
- * An optional value that will be used as name postfix for localStorage and session cookie name.
805
- * @defaultValue null
806
- */
807
- namePrefix?: string;
808
- /**
809
- * 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.
810
- * @defaultValue null
811
- */
812
- sessionCookiePostfix?: string;
813
- /**
814
- * An optional value that will be used as name postfix for user cookie name. If undefined, no postfix is added on user cookie name.
815
- * @defaultValue null
816
- */
817
- userCookiePostfix?: string;
818
- /**
819
- * An optional value that will track Request Header through trackDependency function.
820
- * @defaultValue false
821
- */
822
- enableRequestHeaderTracking?: boolean;
823
- /**
824
- * An optional value that will track Response Header through trackDependency function.
825
- * @defaultValue false
826
- */
827
- enableResponseHeaderTracking?: boolean;
828
- /**
829
- * An optional value that will track Response Error data through trackDependency function.
830
- * @defaultValue false
831
- */
832
- enableAjaxErrorStatusText?: boolean;
833
- /**
834
- * Flag to enable looking up and including additional browser window.performance timings
835
- * in the reported ajax (XHR and fetch) reported metrics.
836
- * Defaults to false.
837
- */
838
- enableAjaxPerfTracking?: boolean;
839
- /**
840
- * The maximum number of times to look for the window.performance timings (if available), this
841
- * is required as not all browsers populate the window.performance before reporting the
842
- * end of the XHR request and for fetch requests this is added after its complete
843
- * Defaults to 3
844
- */
845
- maxAjaxPerfLookupAttempts?: number;
846
- /**
847
- * The amount of time to wait before re-attempting to find the windows.performance timings
848
- * for an ajax request, time is in milliseconds and is passed directly to setTimeout()
849
- * Defaults to 25.
850
- */
851
- ajaxPerfLookupDelay?: number;
852
- /**
853
- * Default false. when tab is closed, the SDK will send all remaining telemetry using the [Beacon API](https://www.w3.org/TR/beacon)
854
- * @defaultValue false
855
- */
856
- onunloadDisableBeacon?: boolean;
857
- /**
858
- * @ignore
859
- * Internal only
860
- */
861
- autoExceptionInstrumented?: boolean;
862
- /**
863
- *
864
- */
865
- correlationHeaderDomains?: string[];
866
- /**
867
- * @ignore
868
- * Internal only
869
- */
870
- autoUnhandledPromiseInstrumented?: boolean;
871
- /**
872
- * Default false. Define whether to track unhandled promise rejections and report as JS errors.
873
- * When disableExceptionTracking is enabled (dont track exceptions) this value will be false.
874
- * @defaultValue false
875
- */
876
- enableUnhandledPromiseRejectionTracking?: boolean;
877
- /**
878
- * Disable correlation headers using regular expressions
879
- */
880
- correlationHeaderExcludePatterns?: RegExp[];
881
- /**
882
- * The ability for the user to provide extra headers
883
- */
884
- customHeaders?: [{
885
- header: string;
886
- value: string;
887
- }];
888
- /**
889
- * Provide user an option to convert undefined field to user defined value.
890
- */
891
- convertUndefined?: any;
892
- /**
893
- * [Optional] The number of events that can be kept in memory before the SDK starts to drop events. By default, this is 10,000.
894
- */
895
- eventsLimitInMem?: number;
896
- /**
897
- * [Optional] Disable iKey deprecation error message.
898
- * @defaultValue true
899
- */
900
- disableIkeyDeprecationMessage?: boolean;
901
- /**
902
- * [Optional] Flag to indicate whether the internal looking endpoints should be automatically
903
- * added to the `excludeRequestFromAutoTrackingPatterns` collection. (defaults to true).
904
- * This flag exists as the provided regex is generic and may unexpectedly match a domain that
905
- * should not be excluded.
906
- */
907
- addIntEndpoints?: boolean;
908
- }
909
-
910
- export declare interface IContextTagKeys {
911
- /**
912
- * Application version. Information in the application context fields is always about the application that is sending the telemetry.
913
- */
914
- readonly applicationVersion: string;
915
- /**
916
- * Application build.
917
- */
918
- readonly applicationBuild: string;
919
- /**
920
- * Application type id.
921
- */
922
- readonly applicationTypeId: string;
923
- /**
924
- * Application id.
925
- */
926
- readonly applicationId: string;
927
- /**
928
- * Application layer.
929
- */
930
- readonly applicationLayer: string;
931
- /**
932
- * Unique client device id. Computer name in most cases.
933
- */
934
- readonly deviceId: string;
935
- readonly deviceIp: string;
936
- readonly deviceLanguage: string;
937
- /**
938
- * Device locale using <language>-<REGION> pattern, following RFC 5646. Example 'en-US'.
939
- */
940
- readonly deviceLocale: string;
941
- /**
942
- * Model of the device the end user of the application is using. Used for client scenarios. If this field is empty then it is derived from the user agent.
943
- */
944
- readonly deviceModel: string;
945
- readonly deviceFriendlyName: string;
946
- readonly deviceNetwork: string;
947
- readonly deviceNetworkName: string;
948
- /**
949
- * Client device OEM name taken from the browser.
950
- */
951
- readonly deviceOEMName: string;
952
- readonly deviceOS: string;
953
- /**
954
- * Operating system name and version of the device the end user of the application is using. If this field is empty then it is derived from the user agent. Example 'Windows 10 Pro 10.0.10586.0'
955
- */
956
- readonly deviceOSVersion: string;
957
- /**
958
- * Name of the instance where application is running. Computer name for on-premisis, instance name for Azure.
959
- */
960
- readonly deviceRoleInstance: string;
961
- /**
962
- * Name of the role application is part of. Maps directly to the role name in azure.
963
- */
964
- readonly deviceRoleName: string;
965
- readonly deviceScreenResolution: string;
966
- /**
967
- * The type of the device the end user of the application is using. Used primarily to distinguish JavaScript telemetry from server side telemetry. Examples: 'PC', 'Phone', 'Browser'. 'PC' is the default value.
968
- */
969
- readonly deviceType: string;
970
- readonly deviceMachineName: string;
971
- readonly deviceVMName: string;
972
- readonly deviceBrowser: string;
973
- /**
974
- * The browser name and version as reported by the browser.
975
- */
976
- readonly deviceBrowserVersion: string;
977
- /**
978
- * The IP address of the client device. IPv4 and IPv6 are supported. Information in the location context fields is always about the end user. When telemetry is sent from a service, the location context is about the user that initiated the operation in the service.
979
- */
980
- readonly locationIp: string;
981
- /**
982
- * The country of the client device. If any of Country, Province, or City is specified, those values will be preferred over geolocation of the IP address field. Information in the location context fields is always about the end user. When telemetry is sent from a service, the location context is about the user that initiated the operation in the service.
983
- */
984
- readonly locationCountry: string;
985
- /**
986
- * The province/state of the client device. If any of Country, Province, or City is specified, those values will be preferred over geolocation of the IP address field. Information in the location context fields is always about the end user. When telemetry is sent from a service, the location context is about the user that initiated the operation in the service.
987
- */
988
- readonly locationProvince: string;
989
- /**
990
- * The city of the client device. If any of Country, Province, or City is specified, those values will be preferred over geolocation of the IP address field. Information in the location context fields is always about the end user. When telemetry is sent from a service, the location context is about the user that initiated the operation in the service.
991
- */
992
- readonly locationCity: string;
993
- /**
994
- * A unique identifier for the operation instance. The operation.id is created by either a request or a page view. All other telemetry sets this to the value for the containing request or page view. Operation.id is used for finding all the telemetry items for a specific operation instance.
995
- */
996
- readonly operationId: string;
997
- /**
998
- * The name (group) of the operation. The operation.name is created by either a request or a page view. All other telemetry items set this to the value for the containing request or page view. Operation.name is used for finding all the telemetry items for a group of operations (i.e. 'GET Home/Index').
999
- */
1000
- readonly operationName: string;
1001
- /**
1002
- * The unique identifier of the telemetry item's immediate parent.
1003
- */
1004
- readonly operationParentId: string;
1005
- readonly operationRootId: string;
1006
- /**
1007
- * Name of synthetic source. Some telemetry from the application may represent a synthetic traffic. It may be web crawler indexing the web site, site availability tests or traces from diagnostic libraries like Application Insights SDK itself.
1008
- */
1009
- readonly operationSyntheticSource: string;
1010
- /**
1011
- * The correlation vector is a light weight vector clock which can be used to identify and order related events across clients and services.
1012
- */
1013
- readonly operationCorrelationVector: string;
1014
- /**
1015
- * Session ID - the instance of the user's interaction with the app. Information in the session context fields is always about the end user. When telemetry is sent from a service, the session context is about the user that initiated the operation in the service.
1016
- */
1017
- readonly sessionId: string;
1018
- /**
1019
- * Boolean value indicating whether the session identified by ai.session.id is first for the user or not.
1020
- */
1021
- readonly sessionIsFirst: string;
1022
- readonly sessionIsNew: string;
1023
- readonly userAccountAcquisitionDate: string;
1024
- /**
1025
- * In multi-tenant applications this is the account ID or name which the user is acting with. Examples may be subscription ID for Azure portal or blog name blogging platform.
1026
- */
1027
- readonly userAccountId: string;
1028
- /**
1029
- * The browser's user agent string as reported by the browser. This property will be used to extract informaiton regarding the customer's browser but will not be stored. Use custom properties to store the original user agent.
1030
- */
1031
- readonly userAgent: string;
1032
- /**
1033
- * Anonymous user id. Represents the end user of the application. When telemetry is sent from a service, the user context is about the user that initiated the operation in the service.
1034
- */
1035
- readonly userId: string;
1036
- /**
1037
- * Store region for UWP applications.
1038
- */
1039
- readonly userStoreRegion: string;
1040
- /**
1041
- * Authenticated user id. The opposite of ai.user.id, this represents the user with a friendly name. Since it's PII information it is not collected by default by most SDKs.
1042
- */
1043
- readonly userAuthUserId: string;
1044
- readonly userAnonymousUserAcquisitionDate: string;
1045
- readonly userAuthenticatedUserAcquisitionDate: string;
1046
- readonly cloudName: string;
1047
- /**
1048
- * Name of the role the application is a part of. Maps directly to the role name in azure.
1049
- */
1050
- readonly cloudRole: string;
1051
- readonly cloudRoleVer: string;
1052
- /**
1053
- * Name of the instance where the application is running. Computer name for on-premisis, instance name for Azure.
1054
- */
1055
- readonly cloudRoleInstance: string;
1056
- readonly cloudEnvironment: string;
1057
- readonly cloudLocation: string;
1058
- readonly cloudDeploymentUnit: string;
1059
- /**
1060
- * SDK version. See https://github.com/microsoft/ApplicationInsights-Home/blob/master/SDK-AUTHORING.md#sdk-version-specification for information.
1061
- */
1062
- readonly internalSdkVersion: string;
1063
- /**
1064
- * Agent version. Used to indicate the version of StatusMonitor installed on the computer if it is used for data collection.
1065
- */
1066
- readonly internalAgentVersion: string;
1067
- /**
1068
- * This is the node name used for billing purposes. Use it to override the standard detection of nodes.
1069
- */
1070
- readonly internalNodeName: string;
1071
- /**
1072
- * This identifies the version of the snippet that was used to initialize the SDK
1073
- */
1074
- readonly internalSnippet: string;
1075
- /**
1076
- * This identifies the source of the Sdk script (used to identify whether the SDK was loaded via the CDN)
1077
- */
1078
- readonly internalSdkSrc: string;
1079
- }
1080
-
1081
- export declare interface ICorrelationConfig {
1082
- enableCorsCorrelation: boolean;
1083
- correlationHeaderExcludedDomains: string[];
1084
- correlationHeaderExcludePatterns?: RegExp[];
1085
- disableCorrelationHeaders: boolean;
1086
- distributedTracingMode: DistributedTracingModes;
1087
- maxAjaxCallsPerView: number;
1088
- disableAjaxTracking: boolean;
1089
- disableFetchTracking: boolean;
1090
- appId?: string;
1091
- enableRequestHeaderTracking?: boolean;
1092
- enableResponseHeaderTracking?: boolean;
1093
- enableAjaxErrorStatusText?: boolean;
1094
- /**
1095
- * Flag to enable looking up and including additional browser window.performance timings
1096
- * in the reported ajax (XHR and fetch) reported metrics.
1097
- * Defaults to false.
1098
- */
1099
- enableAjaxPerfTracking?: boolean;
1100
- /**
1101
- * The maximum number of times to look for the window.performance timings (if available), this
1102
- * is required as not all browsers populate the window.performance before reporting the
1103
- * end of the XHR request and for fetch requests this is added after its complete
1104
- * Defaults to 3
1105
- */
1106
- maxAjaxPerfLookupAttempts?: number;
1107
- /**
1108
- * The amount of time to wait before re-attempting to find the windows.performance timings
1109
- * for an ajax request, time is in milliseconds and is passed directly to setTimeout()
1110
- * Defaults to 25.
1111
- */
1112
- ajaxPerfLookupDelay?: number;
1113
- correlationHeaderDomains?: string[];
1114
- /**
1115
- * Response and request headers to be excluded from ajax tracking data.
1116
- */
1117
- ignoreHeaders?: string[];
1118
- /**
1119
- * Provide a way to exclude specific route from automatic tracking for XMLHttpRequest or Fetch request.
1120
- * For an ajax / fetch request that the request url matches with the regex patterns, auto tracking is turned off.
1121
- * Default is undefined.
1122
- */
1123
- excludeRequestFromAutoTrackingPatterns?: string[] | RegExp[];
1124
- /**
1125
- * Provide a way to enrich dependencies logs with context at the beginning of api call.
1126
- * Default is undefined.
1127
- */
1128
- addRequestContext?: (requestContext?: IRequestContext) => ICustomProperties;
1129
- /**
1130
- * [Optional] Flag to indicate whether the internal looking endpoints should be automatically
1131
- * added to the `excludeRequestFromAutoTrackingPatterns` collection. (defaults to true).
1132
- * This flag exists as the provided regex is generic and may unexpectedly match a domain that
1133
- * should not be excluded.
1134
- */
1135
- addIntEndpoints?: boolean;
1136
- }
1137
-
1138
- /**
1139
- * Metric data single measurement.
1140
- */
1141
- declare interface IDataPoint {
1142
- /**
1143
- * Name of the metric.
1144
- */
1145
- name: string;
1146
- /**
1147
- * Metric type. Single measurement or the aggregated value.
1148
- */
1149
- kind: DataPointType;
1150
- /**
1151
- * Single value for measurement. Sum of individual measurements for the aggregation.
1152
- */
1153
- value: number;
1154
- /**
1155
- * Metric weight of the aggregated metric. Should not be set for a measurement.
1156
- */
1157
- count: number;
1158
- /**
1159
- * Minimum value of the aggregated metric. Should not be set for a measurement.
1160
- */
1161
- min: number;
1162
- /**
1163
- * Maximum value of the aggregated metric. Should not be set for a measurement.
1164
- */
1165
- max: number;
1166
- /**
1167
- * Standard deviation of the aggregated metric. Should not be set for a measurement.
1168
- */
1169
- stdDev: number;
1170
- }
1171
-
1172
- /**
1173
- * DependencyTelemetry telemetry interface
1174
- */
1175
- export declare interface IDependencyTelemetry extends IPartC {
1176
- id: string;
1177
- name?: string;
1178
- duration?: number;
1179
- success?: boolean;
1180
- startTime?: Date;
1181
- responseCode: number;
1182
- correlationContext?: string;
1183
- type?: string;
1184
- data?: string;
1185
- target?: string;
1186
- iKey?: string;
1187
- }
1188
-
1189
- export declare interface IDevice {
1190
- /**
1191
- * The type for the current device.
1192
- */
1193
- deviceClass: string;
1194
- /**
1195
- * A device unique ID.
1196
- */
1197
- id: string;
1198
- /**
1199
- * The device model for the current device.
1200
- */
1201
- model: string;
1202
- /**
1203
- * The application screen resolution.
1204
- */
1205
- resolution: string;
1206
- /**
1207
- * The IP address.
1208
- */
1209
- ip: string;
1210
- }
1211
-
1212
- /**
1213
- * The abstract common base of all domains.
1214
- */
1215
- declare interface IDomain {
1216
- }
1217
-
1218
- export declare interface IEnvelope extends ISerializable {
1219
- /**
1220
- * 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.
1221
- */
1222
- ver: number;
1223
- /**
1224
- * Type name of telemetry data item.
1225
- */
1226
- name: string;
1227
- /**
1228
- * 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.
1229
- */
1230
- time: string;
1231
- /**
1232
- * Sampling rate used in application. This telemetry item represents 1 / sampleRate actual telemetry items.
1233
- */
1234
- sampleRate: number;
1235
- /**
1236
- * Sequence field used to track absolute order of uploaded events.
1237
- */
1238
- seq: string;
1239
- /**
1240
- * 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.
1241
- */
1242
- iKey: string;
1243
- /**
1244
- * Key/value collection of context properties. See ContextTagKeys for information on available properties.
1245
- */
1246
- tags: {
1247
- [name: string]: any;
1248
- };
1249
- /**
1250
- * Telemetry data item.
1251
- */
1252
- data: any;
1253
- }
1254
-
1255
- /**
1256
- * Instances of Event represent structured event records that can be grouped and searched by their properties. Event data item also creates a metric of event count by name.
1257
- */
1258
- declare interface IEventData extends IDomain {
1259
- /**
1260
- * Schema version
1261
- */
1262
- ver: number;
1263
- /**
1264
- * Event name. Keep it low cardinality to allow proper grouping and useful metrics.
1265
- */
1266
- name: string;
1267
- /**
1268
- * Collection of custom properties.
1269
- */
1270
- properties: any;
1271
- /**
1272
- * Collection of custom measurements.
1273
- */
1274
- measurements: any;
1275
- }
1276
-
1277
- export declare interface IEventTelemetry extends IPartC {
1278
- /**
1279
- * @description An event name string
1280
- * @type {string}
1281
- * @memberof IEventTelemetry
1282
- */
1283
- name: string;
1284
- /**
1285
- * @description custom defined iKey
1286
- * @type {string}
1287
- * @memberof IEventTelemetry
1288
- */
1289
- iKey?: string;
1290
- }
1291
-
1292
- /**
1293
- * An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application.
1294
- */
1295
- declare interface IExceptionData extends IDomain {
1296
- /**
1297
- * Schema version
1298
- */
1299
- ver: number;
1300
- /**
1301
- * Exception chain - list of inner exceptions.
1302
- */
1303
- exceptions: IExceptionDetails[];
1304
- /**
1305
- * Severity level. Mostly used to indicate exception severity level when it is reported by logging library.
1306
- */
1307
- severityLevel: SeverityLevel;
1308
- /**
1309
- * Collection of custom properties.
1310
- */
1311
- properties: any;
1312
- /**
1313
- * Collection of custom measurements.
1314
- */
1315
- measurements: any;
1316
- }
1317
-
1318
- /**
1319
- * Exception details of the exception in a chain.
1320
- */
1321
- declare interface IExceptionDetails {
1322
- /**
1323
- * In case exception is nested (outer exception contains inner one), the id and outerId properties are used to represent the nesting.
1324
- */
1325
- id: number;
1326
- /**
1327
- * The value of outerId is a reference to an element in ExceptionDetails that represents the outer exception
1328
- */
1329
- outerId: number;
1330
- /**
1331
- * Exception type name.
1332
- */
1333
- typeName: string;
1334
- /**
1335
- * Exception message.
1336
- */
1337
- message: string;
1338
- /**
1339
- * Indicates if full exception stack is provided in the exception. The stack may be trimmed, such as in the case of a StackOverflow exception.
1340
- */
1341
- hasFullStack: boolean;
1342
- /**
1343
- * Text describing the stack. Either stack or parsedStack should have a value.
1344
- */
1345
- stack: string;
1346
- /**
1347
- * List of stack frames. Either stack or parsedStack should have a value.
1348
- */
1349
- parsedStack: IStackFrame[];
1350
- }
1351
-
1352
- declare interface IExceptionDetailsInternal {
1353
- id: number;
1354
- outerId: number;
1355
- typeName: string;
1356
- message: string;
1357
- hasFullStack: boolean;
1358
- stack: string;
1359
- parsedStack: IExceptionStackFrameInternal[];
1360
- }
1361
-
1362
- export declare interface IExceptionInternal extends IPartC {
1363
- ver: string;
1364
- id: string;
1365
- exceptions: IExceptionDetailsInternal[];
1366
- severityLevel?: SeverityLevel | number;
1367
- problemGroup: string;
1368
- isManual: boolean;
1369
- }
1370
-
1371
- declare interface IExceptionStackFrameInternal {
1372
- level: number;
1373
- method: string;
1374
- assembly: string;
1375
- fileName: string;
1376
- line: number;
1377
- pos?: number;
1378
- }
1379
-
1380
- /**
1381
- * @export
1382
- * @interface IExceptionTelemetry
1383
- * @description Exception interface used as primary parameter to trackException
1384
- */
1385
- export declare interface IExceptionTelemetry extends IPartC {
1386
- /**
1387
- * Unique guid identifying this error
1388
- */
1389
- id?: string;
1390
- /**
1391
- * @deprecated
1392
- * @type {Error}
1393
- * @memberof IExceptionTelemetry
1394
- * @description DEPRECATED: Please use exception instead. Behavior/usage for exception remains the same as this field.
1395
- */
1396
- error?: Error;
1397
- /**
1398
- * @type {Error}
1399
- * @memberof IExceptionTelemetry
1400
- * @description Error Object(s)
1401
- */
1402
- exception?: Error | IAutoExceptionTelemetry;
1403
- /**
1404
- * @description Specified severity of exception for use with
1405
- * telemetry filtering in dashboard
1406
- * @type {(SeverityLevel | number)}
1407
- * @memberof IExceptionTelemetry
1408
- */
1409
- severityLevel?: SeverityLevel | number;
1410
- }
1411
-
1412
- export declare interface IInternal {
1413
- /**
1414
- * The SDK version used to create this telemetry item.
1415
- */
1416
- sdkVersion: string;
1417
- /**
1418
- * The SDK agent version.
1419
- */
1420
- agentVersion: string;
1421
- /**
1422
- * The Snippet version used to initialize the sdk instance, this will contain either
1423
- * undefined/null - Snippet not used
1424
- * '-' - Version and legacy mode not determined
1425
- * # - Version # of the snippet
1426
- * #.l - Version # in legacy mode
1427
- * .l - No defined version, but used legacy mode initialization
1428
- */
1429
- snippetVer: string;
1430
- /**
1431
- * Identifies the source of the sdk script
1432
- */
1433
- sdkSrc: string;
1434
- }
1435
-
1436
- export declare interface ILocation {
1437
- /**
1438
- * Client IP address for reverse lookup
1439
- */
1440
- ip: string;
1441
- }
1442
-
1443
- /**
1444
- * Instances of Message represent printf-like trace statements that are text-searched. Log4Net, NLog and other text-based log file entries are translated into intances of this type. The message does not have measurements.
1445
- */
1446
- declare interface IMessageData extends IDomain {
1447
- /**
1448
- * Schema version
1449
- */
1450
- ver: number;
1451
- /**
1452
- * Trace message
1453
- */
1454
- message: string;
1455
- /**
1456
- * Trace severity level.
1457
- */
1458
- severityLevel: SeverityLevel;
1459
- /**
1460
- * Collection of custom properties.
1461
- */
1462
- properties: any;
1463
- /**
1464
- * Collection of custom measurements.
1465
- */
1466
- measurements: any;
1467
- }
1468
-
1469
- /**
1470
- * An instance of the Metric item is a list of measurements (single data points) and/or aggregations.
1471
- */
1472
- declare interface IMetricData extends IDomain {
1473
- /**
1474
- * Schema version
1475
- */
1476
- ver: number;
1477
- /**
1478
- * 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.
1479
- */
1480
- metrics: IDataPoint[];
1481
- /**
1482
- * Collection of custom properties.
1483
- */
1484
- properties: any;
1485
- /**
1486
- * Collection of custom measurements.
1487
- */
1488
- measurements: any;
1489
- }
1490
-
1491
- export declare interface IMetricTelemetry extends IPartC {
1492
- /**
1493
- * @description (required) - name of this metric
1494
- * @type {string}
1495
- * @memberof IMetricTelemetry
1496
- */
1497
- name: string;
1498
- /**
1499
- * @description (required) - Recorded value/average for this metric
1500
- * @type {number}
1501
- * @memberof IMetricTelemetry
1502
- */
1503
- average: number;
1504
- /**
1505
- * @description (optional) Number of samples represented by the average.
1506
- * @type {number=}
1507
- * @memberof IMetricTelemetry
1508
- * @default sampleCount=1
1509
- */
1510
- sampleCount?: number;
1511
- /**
1512
- * @description (optional) The smallest measurement in the sample. Defaults to the average
1513
- * @type {number}
1514
- * @memberof IMetricTelemetry
1515
- * @default min=average
1516
- */
1517
- min?: number;
1518
- /**
1519
- * @description (optional) The largest measurement in the sample. Defaults to the average.
1520
- * @type {number}
1521
- * @memberof IMetricTelemetry
1522
- * @default max=average
1523
- */
1524
- max?: number;
1525
- /**
1526
- * (optional) The standard deviation measurement in the sample, Defaults to undefined which results in zero.
1527
- */
1528
- stdDev?: number;
1529
- /**
1530
- * @description custom defined iKey
1531
- * @type {string}
1532
- * @memberof IMetricTelemetry
1533
- */
1534
- iKey?: string;
1535
- }
1536
-
1537
- export declare interface IOperatingSystem {
1538
- name: string;
1539
- }
1540
-
1541
- /**
1542
- * An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.
1543
- */
1544
- export declare interface IPageViewData extends IEventData {
1545
- /**
1546
- * Request URL with all query string parameters
1547
- */
1548
- url: string;
1549
- /**
1550
- * 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.
1551
- */
1552
- duration: string;
1553
- /**
1554
- * Identifier of a page view instance. Used for correlation between page view and other telemetry items.
1555
- */
1556
- id: string;
1557
- }
1558
-
1559
- /**
1560
- * An instance of PageViewPerf represents: a page view with no performance data, a page view with performance data, or just the performance data of an earlier page request.
1561
- */
1562
- declare interface IPageViewPerfData extends IPageViewData {
1563
- /**
1564
- * Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
1565
- */
1566
- perfTotal: string;
1567
- /**
1568
- * Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
1569
- */
1570
- networkConnect: string;
1571
- /**
1572
- * Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
1573
- */
1574
- sentRequest: string;
1575
- /**
1576
- * Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
1577
- */
1578
- receivedResponse: string;
1579
- /**
1580
- * DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
1581
- */
1582
- domProcessing: string;
1583
- }
1584
-
1585
- export declare interface IPageViewPerformanceTelemetry extends IPartC {
1586
- /**
1587
- * name String - The name of the page. Defaults to the document title.
1588
- */
1589
- name?: string;
1590
- /**
1591
- * url String - a relative or absolute URL that identifies the page or other item. Defaults to the window location.
1592
- */
1593
- uri?: string;
1594
- /**
1595
- * Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff". This is total duration in timespan format.
1596
- */
1597
- perfTotal?: string;
1598
- /**
1599
- * Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff". This represents the total page load time.
1600
- */
1601
- duration?: string;
1602
- /**
1603
- * Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
1604
- */
1605
- networkConnect?: string;
1606
- /**
1607
- * Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff.
1608
- */
1609
- sentRequest?: string;
1610
- /**
1611
- * Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff.
1612
- */
1613
- receivedResponse?: string;
1614
- /**
1615
- * DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
1616
- */
1617
- domProcessing?: string;
1618
- }
1619
-
1620
- export declare interface IPageViewPerformanceTelemetryInternal extends IPageViewPerformanceTelemetry {
1621
- /**
1622
- * An identifier assigned to each distinct impression for the purposes of correlating with pageview.
1623
- * A new id is automatically generated on each pageview. You can manually specify this field if you
1624
- * want to use a specific value instead.
1625
- */
1626
- id?: string;
1627
- /**
1628
- * Version of the part B schema, todo: set this value in trackpageView
1629
- */
1630
- ver?: string;
1631
- /**
1632
- * Field indicating whether this instance of PageViewPerformance is valid and should be sent
1633
- */
1634
- isValid?: boolean;
1635
- /**
1636
- * Duration in miliseconds
1637
- */
1638
- durationMs?: number;
1639
- }
1640
-
1641
- /**
1642
- * Pageview telemetry interface
1643
- */
1644
- export declare interface IPageViewTelemetry extends IPartC {
1645
- /**
1646
- * name String - The string you used as the name in startTrackPage. Defaults to the document title.
1647
- */
1648
- name?: string;
1649
- /**
1650
- * uri String - a relative or absolute URL that identifies the page or other item. Defaults to the window location.
1651
- */
1652
- uri?: string;
1653
- /**
1654
- * refUri String - the URL of the source page where current page is loaded from
1655
- */
1656
- refUri?: string;
1657
- /**
1658
- * pageType String - page type
1659
- */
1660
- pageType?: string;
1661
- /**
1662
- * isLoggedIn - boolean is user logged in
1663
- */
1664
- isLoggedIn?: boolean;
1665
- /**
1666
- * Property bag to contain additional custom properties (Part C)
1667
- */
1668
- properties?: {
1669
- /**
1670
- * The number of milliseconds it took to load the page. Defaults to undefined. If set to default value, page load time is calculated internally.
1671
- */
1672
- duration?: number;
1673
- [key: string]: any;
1674
- };
1675
- /**
1676
- * iKey String - custom defined iKey.
1677
- */
1678
- iKey?: string;
1679
- }
1680
-
1681
- export declare interface IPageViewTelemetryInternal extends IPageViewTelemetry {
1682
- /**
1683
- * An identifier assigned to each distinct impression for the purposes of correlating with pageview.
1684
- * A new id is automatically generated on each pageview. You can manually specify this field if you
1685
- * want to use a specific value instead.
1686
- */
1687
- id?: string;
1688
- /**
1689
- * Version of the part B schema, todo: set this value in trackpageView
1690
- */
1691
- ver?: string;
1692
- }
1693
-
1694
- /**
1695
- * PartC telemetry interface
1696
- */
1697
- declare interface IPartC {
1698
- /**
1699
- * Property bag to contain additional custom properties (Part C)
1700
- */
1701
- properties?: {
1702
- [key: string]: any;
1703
- };
1704
- /**
1705
- * Property bag to contain additional custom measurements (Part C)
1706
- * @deprecated -- please use properties instead
1707
- */
1708
- measurements?: {
1709
- [key: string]: number;
1710
- };
1711
- }
1712
-
1713
- export declare interface IPropertiesPlugin {
1714
- readonly context: ITelemetryContext;
1715
- }
1716
-
1717
- /**
1718
- * An instance of Remote Dependency represents an interaction of the monitored component with a remote component/service like SQL or an HTTP endpoint.
1719
- */
1720
- declare interface IRemoteDependencyData extends IDomain {
1721
- /**
1722
- * Schema version
1723
- */
1724
- ver: number;
1725
- /**
1726
- * Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.
1727
- */
1728
- name: string;
1729
- /**
1730
- * Identifier of a dependency call instance. Used for correlation with the request telemetry item corresponding to this dependency call.
1731
- */
1732
- id: string;
1733
- /**
1734
- * Result code of a dependency call. Examples are SQL error code and HTTP status code.
1735
- */
1736
- resultCode: string;
1737
- /**
1738
- * Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.
1739
- */
1740
- duration: string;
1741
- /**
1742
- * Indication of successful or unsuccessful call.
1743
- */
1744
- success: boolean;
1745
- /**
1746
- * Command initiated by this dependency call. Examples are SQL statement and HTTP URL's with all query parameters.
1747
- */
1748
- data: string;
1749
- /**
1750
- * Target site of a dependency call. Examples are server name, host address.
1751
- */
1752
- target: string;
1753
- /**
1754
- * 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.
1755
- */
1756
- type: string;
1757
- /**
1758
- * Collection of custom properties.
1759
- */
1760
- properties: any;
1761
- /**
1762
- * Collection of custom measurements.
1763
- */
1764
- measurements: any;
1765
- }
1766
-
1767
- export declare interface IRequestContext {
1768
- status?: number;
1769
- xhr?: XMLHttpRequest;
1770
- request?: Request;
1771
- response?: Response | string;
1772
- }
1773
-
1774
- export declare interface IRequestHeaders {
1775
- /**
1776
- * Request-Context header
1777
- */
1778
- requestContextHeader: string;
1779
- /**
1780
- * Target instrumentation header that is added to the response and retrieved by the
1781
- * calling application when processing incoming responses.
1782
- */
1783
- requestContextTargetKey: string;
1784
- /**
1785
- * Request-Context appId format
1786
- */
1787
- requestContextAppIdFormat: string;
1788
- /**
1789
- * Request-Id header
1790
- */
1791
- requestIdHeader: string;
1792
- /**
1793
- * W3C distributed tracing protocol header
1794
- */
1795
- traceParentHeader: string;
1796
- /**
1797
- * W3C distributed tracing protocol state header
1798
- */
1799
- traceStateHeader: string;
1800
- /**
1801
- * Sdk-Context header
1802
- * If this header passed with appId in content then appId will be returned back by the backend.
1803
- */
1804
- sdkContextHeader: string;
1805
- /**
1806
- * String to pass in header for requesting appId back from the backend.
1807
- */
1808
- sdkContextHeaderAppIdRequest: string;
1809
- requestContextHeaderLowerCase: string;
1810
- }
1811
-
1812
- export declare interface ISample {
1813
- /**
1814
- * Sample rate
1815
- */
1816
- sampleRate: number;
1817
- isSampledIn(envelope: ITelemetryItem): boolean;
1818
- }
1819
-
1820
- export { isBeaconApiSupported }
1821
-
1822
- export declare function isCrossOriginError(message: string | Event, url: string, lineNumber: number, columnNumber: number, error: Error | Event): boolean;
1823
-
1824
- export declare interface ISerializable {
1825
- /**
1826
- * The set of fields for a serializable object.
1827
- * This defines the serialization order and a value of true/false
1828
- * for each field defines whether the field is required or not.
1829
- */
1830
- aiDataContract: any;
1831
- }
1832
-
1833
- export declare interface ISession {
1834
- /**
1835
- * The session ID.
1836
- */
1837
- id?: string;
1838
- /**
1839
- * The date at which this guid was genereated.
1840
- * Per the spec the ID will be regenerated if more than acquisitionSpan milliseconds ellapse from this time.
1841
- */
1842
- acquisitionDate?: number;
1843
- /**
1844
- * The date at which this session ID was last reported.
1845
- * This value should be updated whenever telemetry is sent using this ID.
1846
- * Per the spec the ID will be regenerated if more than renewalSpan milliseconds elapse from this time with no activity.
1847
- */
1848
- renewalDate?: number;
1849
- }
1850
-
1851
- export declare function isInternalApplicationInsightsEndpoint(endpointUrl: string): boolean;
1852
-
1853
- export { isSampledFlag }
1854
-
1855
- declare interface IStackDetails {
1856
- src: string;
1857
- obj: string[];
1858
- }
1859
-
1860
- /**
1861
- * Stack frame information.
1862
- */
1863
- declare interface IStackFrame {
1864
- /**
1865
- * Level in the call stack. For the long stacks SDK may not report every function in a call stack.
1866
- */
1867
- level: number;
1868
- /**
1869
- * Method name.
1870
- */
1871
- method: string;
1872
- /**
1873
- * Name of the assembly (dll, jar, etc.) containing this function.
1874
- */
1875
- assembly: string;
1876
- /**
1877
- * File name or URL of the method implementation.
1878
- */
1879
- fileName: string;
1880
- /**
1881
- * Line number of the code implementation.
1882
- */
1883
- line: number;
1884
- }
1885
-
1886
- export { isValidSpanId }
1887
-
1888
- export { isValidTraceId }
1889
-
1890
- export { isValidTraceParent }
1891
-
1892
- export declare interface ITelemetryContext {
1893
- /**
1894
- * The object describing a component tracked by this object.
1895
- */
1896
- readonly application: IApplication;
1897
- /**
1898
- * The object describing a device tracked by this object.
1899
- */
1900
- readonly device: IDevice;
1901
- /**
1902
- * The object describing internal settings.
1903
- */
1904
- readonly internal: IInternal;
1905
- /**
1906
- * The object describing a location tracked by this object.
1907
- */
1908
- readonly location: ILocation;
1909
- /**
1910
- * The object describing a operation tracked by this object.
1911
- */
1912
- readonly telemetryTrace: ITelemetryTrace;
1913
- /**
1914
- * The object describing a user tracked by this object.
1915
- */
1916
- readonly user: IUserContext;
1917
- /**
1918
- * The object describing a session tracked by this object.
1919
- */
1920
- readonly session: ISession;
1921
- /**
1922
- * The object describing os details tracked by this object.
1923
- */
1924
- readonly os?: IOperatingSystem;
1925
- /**
1926
- * The object describing we details tracked by this object.
1927
- */
1928
- readonly web?: IWeb;
1929
- /**
1930
- * application id obtained from breeze responses. Is used if appId is not specified by root config
1931
- */
1932
- appId: () => string;
1933
- /**
1934
- * session id obtained from session manager.
1935
- */
1936
- getSessionId: () => string;
1937
- }
1938
-
1939
- export declare interface ITelemetryTrace {
1940
- /**
1941
- * Trace id
1942
- */
1943
- traceID?: string;
1944
- /**
1945
- * Parent id
1946
- */
1947
- parentID?: string;
1948
- /**
1949
- * @deprecated Never Used
1950
- * Trace state
1951
- */
1952
- traceState?: ITraceState;
1953
- /**
1954
- * An integer representation of the W3C TraceContext trace-flags. https://www.w3.org/TR/trace-context/#trace-flags
1955
- */
1956
- traceFlags?: number;
1957
- /**
1958
- * Name
1959
- */
1960
- name?: string;
1961
- }
1962
-
1963
- /**
1964
- * Identifies frequency of items sent
1965
- * Default: send data on 28th every 3 month each year
1966
- */
1967
- export declare interface IThrottleInterval {
1968
- /**
1969
- * Identifies month interval that items can be sent
1970
- * 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.)
1971
- * If both monthInterval and dayInterval are undefined, it will be set to 3
1972
- */
1973
- monthInterval?: number;
1974
- /**
1975
- * Identifies days Interval from start date that items can be sent
1976
- * Default: undefined
1977
- */
1978
- dayInterval?: number;
1979
- /**
1980
- * Identifies days within each month that items can be sent
1981
- * If both monthInterval and dayInterval are undefined, it will be default to [28]
1982
- */
1983
- daysOfMonth?: number[];
1984
- }
1985
-
1986
- /**
1987
- * Identifies limit number/percentage of items sent per time
1988
- * If both are provided, minimum number between the two will be used
1989
- */
1990
- export declare interface IThrottleLimit {
1991
- /**
1992
- * Identifies sampling percentage of items per time
1993
- * The percentage is set to 4 decimal places, for example: 1 means 0.0001%
1994
- * Default: 100 (0.01%)
1995
- */
1996
- samplingRate?: number;
1997
- /**
1998
- * Identifies limit number of items per time
1999
- * Default: 1
2000
- */
2001
- maxSendNumber?: number;
2002
- }
2003
-
2004
- /**
2005
- * Identifies object for local storage
2006
- */
2007
- export declare interface IThrottleLocalStorageObj {
2008
- /**
2009
- * Identifies start date
2010
- */
2011
- date: Date;
2012
- /**
2013
- * Identifies current count
2014
- */
2015
- count: number;
2016
- /**
2017
- * identifies previous triggered throttle date
2018
- */
2019
- preTriggerDate?: Date;
2020
- }
2021
-
2022
- /**
2023
- * Identifies basic config
2024
- */
2025
- export declare interface IThrottleMgrConfig {
2026
- /**
2027
- * Identifies message key to be used for local storage key
2028
- * Default: IThrottleMsgKey.default
2029
- */
2030
- msgKey?: IThrottleMsgKey;
2031
- /**
2032
- * Identifies if throttle is disabled
2033
- * Default: false
2034
- */
2035
- disabled?: boolean;
2036
- /**
2037
- * Identifies limit number/percentage of items sent per time
2038
- * Default: sampling percentage 0.01% with one item sent per time
2039
- */
2040
- limit?: IThrottleLimit;
2041
- /**
2042
- * Identifies frequency of items sent
2043
- * Default: send data on 28th every 3 month each year
2044
- */
2045
- interval?: IThrottleInterval;
2046
- }
2047
-
2048
- export declare const enum IThrottleMsgKey {
2049
- /**
2050
- * Default Message key for non pre-defined message
2051
- */
2052
- default = 0,
2053
- /**
2054
- * Message key for ikey Deprecation
2055
- */
2056
- ikeyDeprecate = 1,
2057
- /**
2058
- * Message key for cdn Deprecation
2059
- */
2060
- cdnDeprecate = 2
2061
- }
2062
-
2063
- /**
2064
- * Identifies throttle result
2065
- */
2066
- export declare interface IThrottleResult {
2067
- /**
2068
- * Identifies if items are sent
2069
- */
2070
- isThrottled: boolean;
2071
- /**
2072
- * Identifies numbers of items are sent
2073
- * if isThrottled is false, it will be set to 0
2074
- */
2075
- throttleNum: number;
2076
- }
2077
-
2078
- export { ITraceParent }
2079
-
2080
- export declare interface ITraceState {
2081
- }
2082
-
2083
- export declare interface ITraceTelemetry extends IPartC {
2084
- /**
2085
- * @description A message string
2086
- * @type {string}
2087
- * @memberof ITraceTelemetry
2088
- */
2089
- message: string;
2090
- /**
2091
- * @description Severity level of the logging message used for filtering in the portal
2092
- * @type {SeverityLevel}
2093
- * @memberof ITraceTelemetry
2094
- */
2095
- severityLevel?: SeverityLevel;
2096
- /**
2097
- * @description custom defiend iKey
2098
- * @type {SeverityLevel}
2099
- * @memberof ITraceTelemetry
2100
- */
2101
- iKey?: string;
2102
- }
2103
-
2104
- export declare interface IUser {
2105
- /**
2106
- * The telemetry configuration.
2107
- */
2108
- config: any;
2109
- /**
2110
- * The user ID.
2111
- */
2112
- id: string;
2113
- /**
2114
- * Authenticated user id
2115
- */
2116
- authenticatedId: string;
2117
- /**
2118
- * The account ID.
2119
- */
2120
- accountId: string;
2121
- /**
2122
- * The account acquisition date.
2123
- */
2124
- accountAcquisitionDate: string;
2125
- /**
2126
- * The localId
2127
- */
2128
- localId: string;
2129
- /**
2130
- * A flag indicating whether this represents a new user
2131
- */
2132
- isNewUser?: boolean;
2133
- /**
2134
- * A flag indicating whether the user cookie has been set
2135
- */
2136
- isUserCookieSet?: boolean;
2137
- }
2138
-
2139
- export declare interface IUserContext extends IUser {
2140
- setAuthenticatedUserContext(authenticatedUserId: string, accountId?: string, storeInCookie?: boolean): void;
2141
- clearAuthenticatedUserContext(): void;
2142
- update(userId?: string): void;
2143
- }
2144
-
2145
- export declare interface IWeb {
2146
- /**
2147
- * Browser name, set at ingestion
2148
- */
2149
- browser: string;
2150
- /**
2151
- * Browser ver, set at ingestion.
2152
- */
2153
- browserVer: string;
2154
- /**
2155
- * Language
2156
- */
2157
- browserLang: string;
2158
- /**
2159
- * User consent, populated to properties bag
2160
- */
2161
- userConsent: boolean;
2162
- /**
2163
- * Whether event was fired manually, populated to properties bag
2164
- */
2165
- isManual: boolean;
2166
- /**
2167
- * Screen resolution, populated to properties bag
2168
- */
2169
- screenRes: string;
2170
- /**
2171
- * Current domain. Leverages Window.location.hostname. populated to properties bag
2172
- */
2173
- domain: string;
2174
- }
2175
-
2176
- export declare class Metric implements IMetricData, ISerializable {
2177
- static envelopeType: string;
2178
- static dataType: string;
2179
- aiDataContract: {
2180
- ver: FieldType;
2181
- metrics: FieldType;
2182
- properties: FieldType;
2183
- };
2184
- /**
2185
- * Schema version
2186
- */
2187
- ver: number;
2188
- /**
2189
- * 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.
2190
- */
2191
- metrics: DataPoint[];
2192
- /**
2193
- * Collection of custom properties.
2194
- */
2195
- properties: any;
2196
- /**
2197
- * Collection of custom measurements.
2198
- */
2199
- measurements: any;
2200
- /**
2201
- * Constructs a new instance of the MetricTelemetry object
2202
- */
2203
- constructor(logger: IDiagnosticLogger, name: string, value: number, count?: number, min?: number, max?: number, stdDev?: number, properties?: any, measurements?: {
2204
- [key: string]: number;
2205
- });
2206
- }
2207
-
2208
- /**
2209
- * Convert ms to c# time span format
2210
- */
2211
- export declare function msToTimeSpan(totalms: number): string;
2212
-
2213
- export declare class PageView implements IPageViewData, ISerializable {
2214
- static envelopeType: string;
2215
- static dataType: string;
2216
- aiDataContract: {
2217
- ver: FieldType;
2218
- name: FieldType;
2219
- url: FieldType;
2220
- duration: FieldType;
2221
- properties: FieldType;
2222
- measurements: FieldType;
2223
- id: FieldType;
2224
- };
2225
- /**
2226
- * Schema version
2227
- */
2228
- ver: number;
2229
- /**
2230
- * Event name. Keep it low cardinality to allow proper grouping and useful metrics.
2231
- */
2232
- name: string;
2233
- /**
2234
- * Collection of custom properties.
2235
- */
2236
- properties: any;
2237
- /**
2238
- * Collection of custom measurements.
2239
- */
2240
- measurements: any;
2241
- /**
2242
- * Request URL with all query string parameters
2243
- */
2244
- url: string;
2245
- /**
2246
- * 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.
2247
- */
2248
- duration: string;
2249
- /**
2250
- * Identifier of a page view instance. Used for correlation between page view and other telemetry items.
2251
- */
2252
- id: string;
2253
- /**
2254
- * Constructs a new instance of the PageEventTelemetry object
2255
- */
2256
- constructor(logger: IDiagnosticLogger, name?: string, url?: string, durationMs?: number, properties?: {
2257
- [key: string]: string;
2258
- }, measurements?: {
2259
- [key: string]: number;
2260
- }, id?: string);
2261
- }
2262
-
2263
- export declare class PageViewPerformance implements IPageViewPerfData, ISerializable {
2264
- static envelopeType: string;
2265
- static dataType: string;
2266
- aiDataContract: {
2267
- ver: FieldType;
2268
- name: FieldType;
2269
- url: FieldType;
2270
- duration: FieldType;
2271
- perfTotal: FieldType;
2272
- networkConnect: FieldType;
2273
- sentRequest: FieldType;
2274
- receivedResponse: FieldType;
2275
- domProcessing: FieldType;
2276
- properties: FieldType;
2277
- measurements: FieldType;
2278
- };
2279
- /**
2280
- * Schema version
2281
- */
2282
- ver: number;
2283
- /**
2284
- * Event name. Keep it low cardinality to allow proper grouping and useful metrics.
2285
- */
2286
- name: string;
2287
- /**
2288
- * Collection of custom properties.
2289
- */
2290
- properties: any;
2291
- /**
2292
- * Collection of custom measurements.
2293
- */
2294
- measurements: any;
2295
- /**
2296
- * Request URL with all query string parameters
2297
- */
2298
- url: string;
2299
- /**
2300
- * 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.
2301
- */
2302
- duration: string;
2303
- /**
2304
- * Identifier of a page view instance. Used for correlation between page view and other telemetry items.
2305
- */
2306
- id: string;
2307
- /**
2308
- * Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
2309
- */
2310
- perfTotal: string;
2311
- /**
2312
- * Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
2313
- */
2314
- networkConnect: string;
2315
- /**
2316
- * Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
2317
- */
2318
- sentRequest: string;
2319
- /**
2320
- * Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
2321
- */
2322
- receivedResponse: string;
2323
- /**
2324
- * DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
2325
- */
2326
- domProcessing: string;
2327
- /**
2328
- * Constructs a new instance of the PageEventTelemetry object
2329
- */
2330
- constructor(logger: IDiagnosticLogger, name: string, url: string, unused: number, properties?: {
2331
- [key: string]: string;
2332
- }, measurements?: {
2333
- [key: string]: number;
2334
- }, cs4BaseData?: IPageViewPerformanceTelemetry);
2335
- }
2336
-
2337
- export declare function parseConnectionString(connectionString?: string): ConnectionString;
2338
-
2339
- export { parseTraceParent }
2340
-
2341
- export declare const ProcessLegacy = "ProcessLegacy";
2342
-
2343
- export declare const PropertiesPluginIdentifier = "AppInsightsPropertiesPlugin";
2344
-
2345
- export declare class RemoteDependencyData implements IRemoteDependencyData, ISerializable {
2346
- static envelopeType: string;
2347
- static dataType: string;
2348
- aiDataContract: {
2349
- id: FieldType;
2350
- ver: FieldType;
2351
- name: FieldType;
2352
- resultCode: FieldType;
2353
- duration: FieldType;
2354
- success: FieldType;
2355
- data: FieldType;
2356
- target: FieldType;
2357
- type: FieldType;
2358
- properties: FieldType;
2359
- measurements: FieldType;
2360
- kind: FieldType;
2361
- value: FieldType;
2362
- count: FieldType;
2363
- min: FieldType;
2364
- max: FieldType;
2365
- stdDev: FieldType;
2366
- dependencyKind: FieldType;
2367
- dependencySource: FieldType;
2368
- commandName: FieldType;
2369
- dependencyTypeName: FieldType;
2370
- };
2371
- /**
2372
- * Schema version
2373
- */
2374
- ver: number;
2375
- /**
2376
- * Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.
2377
- */
2378
- name: string;
2379
- /**
2380
- * Identifier of a dependency call instance. Used for correlation with the request telemetry item corresponding to this dependency call.
2381
- */
2382
- id: string;
2383
- /**
2384
- * Result code of a dependency call. Examples are SQL error code and HTTP status code.
2385
- */
2386
- resultCode: string;
2387
- /**
2388
- * Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.
2389
- */
2390
- duration: string;
2391
- /**
2392
- * Indication of successful or unsuccessful call.
2393
- */
2394
- success: boolean;
2395
- /**
2396
- * Command initiated by this dependency call. Examples are SQL statement and HTTP URL's with all query parameters.
2397
- */
2398
- data: string;
2399
- /**
2400
- * Target site of a dependency call. Examples are server name, host address.
2401
- */
2402
- target: string;
2403
- /**
2404
- * 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.
2405
- */
2406
- type: string;
2407
- /**
2408
- * Collection of custom properties.
2409
- */
2410
- properties: any;
2411
- /**
2412
- * Collection of custom measurements.
2413
- */
2414
- measurements: any;
2415
- /**
2416
- * Constructs a new instance of the RemoteDependencyData object
2417
- */
2418
- constructor(logger: IDiagnosticLogger, id: string, absoluteUrl: string, commandName: string, value: number, success: boolean, resultCode: number, method?: string, requestAPI?: string, correlationContext?: string, properties?: Object, measurements?: Object);
2419
- }
2420
-
2421
- export declare const RequestHeaders: IRequestHeaders & {
2422
- requestContextHeader: "Request-Context";
2423
- requestContextTargetKey: "appId";
2424
- requestContextAppIdFormat: "appId=cid-v1:";
2425
- requestIdHeader: "Request-Id";
2426
- traceParentHeader: "traceparent";
2427
- traceStateHeader: "tracestate";
2428
- sdkContextHeader: "Sdk-Context";
2429
- sdkContextHeaderAppIdRequest: "appId";
2430
- requestContextHeaderLowerCase: "request-context";
2431
- 0: "Request-Context";
2432
- 1: "appId";
2433
- 2: "appId=cid-v1:";
2434
- 3: "Request-Id";
2435
- 4: "traceparent";
2436
- 5: "tracestate";
2437
- 6: "Sdk-Context";
2438
- 7: "appId";
2439
- 8: "request-context";
2440
- };
2441
-
2442
- export declare const SampleRate = "sampleRate";
2443
-
2444
- /**
2445
- * Defines the level of severity for the event.
2446
- */
2447
- export declare const SeverityLevel: EnumValue<typeof eSeverityLevel>;
2448
-
2449
- export declare type SeverityLevel = number | eSeverityLevel;
2450
-
2451
- export declare function stringToBoolOrDefault(str: any, defaultValue?: boolean): boolean;
2452
-
2453
- export declare const strNotSpecified = "not_specified";
2454
-
2455
- export declare class TelemetryItemCreator {
2456
- /**
2457
- * Create a telemetry item that the 1DS channel understands
2458
- * @param item - domain specific properties; part B
2459
- * @param baseType - telemetry item type. ie PageViewData
2460
- * @param envelopeName - name of the envelope. ie Microsoft.ApplicationInsights.<instrumentation key>.PageView
2461
- * @param customProperties - user defined custom properties; part C
2462
- * @param systemProperties - system properties that are added to the context; part A
2463
- * @returns ITelemetryItem that is sent to channel
2464
- */
2465
- static create: typeof createTelemetryItem;
2466
- }
2467
-
2468
- export declare class ThrottleMgr {
2469
- canThrottle: () => boolean;
2470
- sendMessage: (msgID: _eInternalMessageId, message: string, severity?: eLoggingSeverity) => IThrottleResult | null;
2471
- getConfig: () => IThrottleMgrConfig;
2472
- isTriggered: () => boolean;
2473
- isReady: () => boolean;
2474
- onReadyState: (isReady?: boolean) => boolean;
2475
- flush: () => boolean;
2476
- config: IThrottleMgrConfig;
2477
- constructor(config?: IThrottleMgrConfig, core?: IAppInsightsCore, namePrefix?: string, unloadHookContainer?: IUnloadHookContainer);
2478
- }
2479
-
2480
- export declare class Trace implements IMessageData, ISerializable {
2481
- static envelopeType: string;
2482
- static dataType: string;
2483
- aiDataContract: {
2484
- ver: FieldType;
2485
- message: FieldType;
2486
- severityLevel: FieldType;
2487
- properties: FieldType;
2488
- };
2489
- /**
2490
- * Schema version
2491
- */
2492
- ver: number;
2493
- /**
2494
- * Trace message
2495
- */
2496
- message: string;
2497
- /**
2498
- * Trace severity level.
2499
- */
2500
- severityLevel: SeverityLevel;
2501
- /**
2502
- * Collection of custom properties.
2503
- */
2504
- properties: any;
2505
- /**
2506
- * Collection of custom measurements.
2507
- */
2508
- measurements: any;
2509
- /**
2510
- * Constructs a new instance of the TraceTelemetry object
2511
- */
2512
- constructor(logger: IDiagnosticLogger, message: string, severityLevel?: SeverityLevel, properties?: any, measurements?: {
2513
- [key: string]: number;
2514
- });
2515
- }
2516
-
2517
- export declare function urlGetAbsoluteUrl(url: string): string;
2518
-
2519
- export declare function urlGetCompleteUrl(method: string, absoluteUrl: string): string;
2520
-
2521
- export declare function urlGetPathName(url: string): string;
2522
-
2523
- export declare function urlParseFullHost(url: string, inclPort?: boolean): string;
2524
-
2525
- export declare function urlParseHost(url: string, inclPort?: boolean): string;
2526
-
2527
- export declare function urlParseUrl(url: string): HTMLAnchorElement;
2528
-
2529
- /**
2530
- * Returns whether LocalStorage can be used, if the reset parameter is passed a true this will override
2531
- * any previous disable calls.
2532
- * @param reset - Should the usage be reset and determined only based on whether LocalStorage is available
2533
- */
2534
- export declare function utlCanUseLocalStorage(reset?: boolean): boolean;
2535
-
2536
- export declare function utlCanUseSessionStorage(reset?: boolean): boolean;
2537
-
2538
- /**
2539
- * Disables the global SDK usage of local or session storage if available
2540
- */
2541
- export declare function utlDisableStorage(): void;
2542
-
2543
- /**
2544
- * Re-enables the global SDK usage of local or session storage if available
2545
- */
2546
- export declare function utlEnableStorage(): void;
2547
-
2548
- export declare function utlGetLocalStorage(logger: IDiagnosticLogger, name: string): string;
2549
-
2550
- export declare function utlGetSessionStorage(logger: IDiagnosticLogger, name: string): string;
2551
-
2552
- export declare function utlGetSessionStorageKeys(): string[];
2553
-
2554
- export declare function utlRemoveSessionStorage(logger: IDiagnosticLogger, name: string): boolean;
2555
-
2556
- export declare function utlRemoveStorage(logger: IDiagnosticLogger, name: string): boolean;
2557
-
2558
- export declare function utlSetLocalStorage(logger: IDiagnosticLogger, name: string, data: string): boolean;
2559
-
2560
- export declare function utlSetSessionStorage(logger: IDiagnosticLogger, name: string, data: string): boolean;
2561
-
2562
- export { }