@microsoft/applicationinsights-core-js 3.0.0-beta.2303-11 → 3.0.0-beta.2304-09

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 (260) hide show
  1. package/browser/es5/applicationinsights-core-js.cjs.js +5477 -0
  2. package/browser/es5/applicationinsights-core-js.cjs.js.map +1 -0
  3. package/browser/es5/applicationinsights-core-js.cjs.min.js +6 -0
  4. package/browser/es5/applicationinsights-core-js.cjs.min.js.map +1 -0
  5. package/browser/es5/applicationinsights-core-js.gbl.js +5481 -0
  6. package/browser/es5/applicationinsights-core-js.gbl.js.map +1 -0
  7. package/browser/es5/applicationinsights-core-js.gbl.min.js +6 -0
  8. package/browser/es5/applicationinsights-core-js.gbl.min.js.map +1 -0
  9. package/browser/es5/applicationinsights-core-js.integrity.json +66 -0
  10. package/browser/{applicationinsights-core-js.js → es5/applicationinsights-core-js.js} +259 -223
  11. package/browser/es5/applicationinsights-core-js.js.map +1 -0
  12. package/browser/es5/applicationinsights-core-js.min.js +6 -0
  13. package/browser/es5/applicationinsights-core-js.min.js.map +1 -0
  14. package/dist/{applicationinsights-core-js.js → es5/applicationinsights-core-js.js} +259 -223
  15. package/dist/es5/applicationinsights-core-js.js.map +1 -0
  16. package/dist/es5/applicationinsights-core-js.min.js +6 -0
  17. package/dist/es5/applicationinsights-core-js.min.js.map +1 -0
  18. package/{dist-esm → dist-es5}/Config/ConfigDefaultHelpers.js +1 -1
  19. package/{dist-esm → dist-es5}/Config/ConfigDefaults.js +1 -1
  20. package/{dist-esm → dist-es5}/Config/DynamicConfig.js +1 -1
  21. package/{dist-esm → dist-es5}/Config/DynamicProperty.js +1 -1
  22. package/{dist-esm → dist-es5}/Config/DynamicState.js +1 -1
  23. package/{dist-esm → dist-es5}/Config/DynamicSupport.js +1 -1
  24. package/dist-es5/Config/IConfigDefaults.js +8 -0
  25. package/dist-es5/Config/IDynamicConfigHandler.js +8 -0
  26. package/dist-es5/Config/IDynamicPropertyHandler.js +8 -0
  27. package/dist-es5/Config/IDynamicWatcher.js +8 -0
  28. package/dist-es5/Config/_IDynamicConfigHandlerState.js +6 -0
  29. package/{dist-esm → dist-es5}/JavaScriptSDK/AggregationError.js +2 -2
  30. package/{dist-esm → dist-es5}/JavaScriptSDK/AggregationError.js.map +1 -1
  31. package/{dist-esm → dist-es5}/JavaScriptSDK/AppInsightsCore.js +1 -1
  32. package/{dist-esm → dist-es5}/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
  33. package/{dist-esm → dist-es5}/JavaScriptSDK/Constants.js +1 -1
  34. package/{dist-esm → dist-es5}/JavaScriptSDK/CookieMgr.js +14 -8
  35. package/dist-es5/JavaScriptSDK/CookieMgr.js.map +1 -0
  36. package/{dist-esm → dist-es5}/JavaScriptSDK/CoreUtils.js +1 -1
  37. package/{dist-esm → dist-es5}/JavaScriptSDK/DataCacheHelper.js +2 -2
  38. package/{dist-esm → dist-es5}/JavaScriptSDK/DataCacheHelper.js.map +1 -1
  39. package/{dist-esm → dist-es5}/JavaScriptSDK/DbgExtensionUtils.js +1 -1
  40. package/{dist-esm → dist-es5}/JavaScriptSDK/DiagnosticLogger.js +1 -1
  41. package/{dist-esm → dist-es5}/JavaScriptSDK/EnvUtils.js +1 -1
  42. package/{dist-esm → dist-es5}/JavaScriptSDK/EventHelpers.js +1 -1
  43. package/{dist-esm → dist-es5}/JavaScriptSDK/HelperFuncs.js +1 -1
  44. package/{dist-esm → dist-es5}/JavaScriptSDK/InstrumentHooks.js +1 -1
  45. package/{dist-esm → dist-es5}/JavaScriptSDK/InternalConstants.js +1 -1
  46. package/{dist-esm → dist-es5}/JavaScriptSDK/NotificationManager.js +1 -1
  47. package/{dist-esm → dist-es5}/JavaScriptSDK/PerfManager.js +1 -1
  48. package/{dist-esm → dist-es5}/JavaScriptSDK/ProcessTelemetryContext.js +1 -1
  49. package/{dist-esm → dist-es5}/JavaScriptSDK/RandomHelper.js +7 -5
  50. package/dist-es5/JavaScriptSDK/RandomHelper.js.map +1 -0
  51. package/{dist-esm → dist-es5}/JavaScriptSDK/TelemetryHelpers.js +1 -1
  52. package/{dist-esm → dist-es5}/JavaScriptSDK/TelemetryInitializerPlugin.js +44 -38
  53. package/dist-es5/JavaScriptSDK/TelemetryInitializerPlugin.js.map +1 -0
  54. package/{dist-esm → dist-es5}/JavaScriptSDK/UnloadHandlerContainer.js +1 -1
  55. package/{dist-esm → dist-es5}/JavaScriptSDK/UnloadHookContainer.js +1 -1
  56. package/{dist-esm → dist-es5}/JavaScriptSDK/W3cTraceParent.js +1 -1
  57. package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/EnumHelperFuncs.js +1 -1
  58. package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
  59. package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/LoggingEnums.js +1 -1
  60. package/dist-es5/JavaScriptSDK.Enums/SendRequestReason.js +6 -0
  61. package/dist-es5/JavaScriptSDK.Enums/TelemetryUnloadReason.js +8 -0
  62. package/dist-es5/JavaScriptSDK.Enums/TelemetryUpdateReason.js +8 -0
  63. package/dist-es5/JavaScriptSDK.Interfaces/IAppInsightsCore.js +6 -0
  64. package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
  65. package/dist-es5/JavaScriptSDK.Interfaces/IChannelControlsHost.js +8 -0
  66. package/dist-es5/JavaScriptSDK.Interfaces/IConfiguration.js +7 -0
  67. package/dist-es5/JavaScriptSDK.Interfaces/ICookieMgr.js +8 -0
  68. package/dist-es5/JavaScriptSDK.Interfaces/IDbgExtension.js +8 -0
  69. package/dist-es5/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +6 -0
  70. package/dist-es5/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +8 -0
  71. package/dist-es5/JavaScriptSDK.Interfaces/IInstrumentHooks.js +8 -0
  72. package/dist-es5/JavaScriptSDK.Interfaces/INotificationListener.js +9 -0
  73. package/dist-es5/JavaScriptSDK.Interfaces/INotificationManager.js +6 -0
  74. package/dist-es5/JavaScriptSDK.Interfaces/IPerfEvent.js +8 -0
  75. package/dist-es5/JavaScriptSDK.Interfaces/IPerfManager.js +6 -0
  76. package/dist-es5/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +9 -0
  77. package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +6 -0
  78. package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryItem.js +9 -0
  79. package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +9 -0
  80. package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +8 -0
  81. package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +8 -0
  82. package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +8 -0
  83. package/dist-es5/JavaScriptSDK.Interfaces/ITraceParent.js +8 -0
  84. package/dist-es5/JavaScriptSDK.Interfaces/IUnloadHook.js +8 -0
  85. package/dist-es5/JavaScriptSDK.Interfaces/IUnloadableComponent.js +8 -0
  86. package/{dist-esm → dist-es5}/__DynamicConstants.js +2 -2
  87. package/{dist-esm → dist-es5}/__DynamicConstants.js.map +1 -1
  88. package/{dist-esm → dist-es5}/applicationinsights-core-js.js +2 -2
  89. package/dist-es5/applicationinsights-core-js.js.map +1 -0
  90. package/package.json +15 -14
  91. package/tsconfig.json +5 -4
  92. package/types/applicationinsights-core-js.d.ts +3074 -58
  93. package/{dist/applicationinsights-core-js.d.ts → types/applicationinsights-core-js.namespaced.d.ts} +1 -4
  94. package/browser/applicationinsights-core-js.integrity.json +0 -26
  95. package/browser/applicationinsights-core-js.js.map +0 -1
  96. package/browser/applicationinsights-core-js.min.js +0 -6
  97. package/browser/applicationinsights-core-js.min.js.map +0 -1
  98. package/dist/applicationinsights-core-js.api.json +0 -25423
  99. package/dist/applicationinsights-core-js.api.md +0 -1374
  100. package/dist/applicationinsights-core-js.js.map +0 -1
  101. package/dist/applicationinsights-core-js.min.js +0 -6
  102. package/dist/applicationinsights-core-js.min.js.map +0 -1
  103. package/dist/applicationinsights-core-js.rollup.d.ts +0 -3078
  104. package/dist-esm/Config/IConfigDefaults.js +0 -8
  105. package/dist-esm/Config/IDynamicConfigHandler.js +0 -8
  106. package/dist-esm/Config/IDynamicPropertyHandler.js +0 -8
  107. package/dist-esm/Config/IDynamicWatcher.js +0 -8
  108. package/dist-esm/Config/_IDynamicConfigHandlerState.js +0 -6
  109. package/dist-esm/JavaScriptSDK/CookieMgr.js.map +0 -1
  110. package/dist-esm/JavaScriptSDK/RandomHelper.js.map +0 -1
  111. package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js.map +0 -1
  112. package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +0 -6
  113. package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +0 -8
  114. package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js +0 -8
  115. package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +0 -6
  116. package/dist-esm/JavaScriptSDK.Interfaces/IChannelControlsHost.js +0 -8
  117. package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +0 -7
  118. package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +0 -8
  119. package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +0 -8
  120. package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +0 -6
  121. package/dist-esm/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +0 -8
  122. package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +0 -8
  123. package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +0 -9
  124. package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +0 -6
  125. package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +0 -8
  126. package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +0 -6
  127. package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +0 -9
  128. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +0 -6
  129. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +0 -9
  130. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +0 -9
  131. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +0 -8
  132. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +0 -8
  133. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +0 -8
  134. package/dist-esm/JavaScriptSDK.Interfaces/ITraceParent.js +0 -8
  135. package/dist-esm/JavaScriptSDK.Interfaces/IUnloadHook.js +0 -8
  136. package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js +0 -8
  137. package/dist-esm/applicationinsights-core-js.js.map +0 -1
  138. package/types/Config/ConfigDefaultHelpers.d.ts +0 -47
  139. package/types/Config/ConfigDefaults.d.ts +0 -9
  140. package/types/Config/DynamicConfig.d.ts +0 -23
  141. package/types/Config/DynamicProperty.d.ts +0 -3
  142. package/types/Config/DynamicState.d.ts +0 -3
  143. package/types/Config/DynamicSupport.d.ts +0 -82
  144. package/types/Config/IConfigDefaults.d.ts +0 -63
  145. package/types/Config/IDynamicConfigHandler.d.ts +0 -69
  146. package/types/Config/IDynamicPropertyHandler.d.ts +0 -11
  147. package/types/Config/IDynamicWatcher.d.ts +0 -61
  148. package/types/Config/_IDynamicConfigHandlerState.d.ts +0 -52
  149. package/types/JavaScriptSDK/AggregationError.d.ts +0 -6
  150. package/types/JavaScriptSDK/AppInsightsCore.d.ts +0 -158
  151. package/types/JavaScriptSDK/BaseTelemetryPlugin.d.ts +0 -110
  152. package/types/JavaScriptSDK/Constants.d.ts +0 -1
  153. package/types/JavaScriptSDK/CookieMgr.d.ts +0 -15
  154. package/types/JavaScriptSDK/CoreUtils.d.ts +0 -13
  155. package/types/JavaScriptSDK/DataCacheHelper.d.ts +0 -13
  156. package/types/JavaScriptSDK/DbgExtensionUtils.d.ts +0 -5
  157. package/types/JavaScriptSDK/DiagnosticLogger.d.ts +0 -76
  158. package/types/JavaScriptSDK/EnvUtils.d.ts +0 -81
  159. package/types/JavaScriptSDK/EventHelpers.d.ts +0 -154
  160. package/types/JavaScriptSDK/HelperFuncs.d.ts +0 -106
  161. package/types/JavaScriptSDK/InstrumentHooks.d.ts +0 -43
  162. package/types/JavaScriptSDK/InternalConstants.d.ts +0 -20
  163. package/types/JavaScriptSDK/NotificationManager.d.ts +0 -46
  164. package/types/JavaScriptSDK/PerfManager.d.ts +0 -93
  165. package/types/JavaScriptSDK/ProcessTelemetryContext.d.ts +0 -119
  166. package/types/JavaScriptSDK/RandomHelper.d.ts +0 -29
  167. package/types/JavaScriptSDK/TelemetryHelpers.d.ts +0 -38
  168. package/types/JavaScriptSDK/TelemetryInitializerPlugin.d.ts +0 -16
  169. package/types/JavaScriptSDK/UnloadHandlerContainer.d.ts +0 -8
  170. package/types/JavaScriptSDK/UnloadHookContainer.d.ts +0 -16
  171. package/types/JavaScriptSDK/W3cTraceParent.d.ts +0 -59
  172. package/types/JavaScriptSDK.Enums/EnumHelperFuncs.d.ts +0 -22
  173. package/types/JavaScriptSDK.Enums/EventsDiscardedReason.d.ts +0 -34
  174. package/types/JavaScriptSDK.Enums/LoggingEnums.d.ts +0 -104
  175. package/types/JavaScriptSDK.Enums/SendRequestReason.d.ts +0 -45
  176. package/types/JavaScriptSDK.Enums/TelemetryUnloadReason.d.ts +0 -21
  177. package/types/JavaScriptSDK.Enums/TelemetryUpdateReason.d.ts +0 -21
  178. package/types/JavaScriptSDK.Interfaces/IAppInsightsCore.d.ts +0 -171
  179. package/types/JavaScriptSDK.Interfaces/IChannelControls.d.ts +0 -36
  180. package/types/JavaScriptSDK.Interfaces/IChannelControlsHost.d.ts +0 -9
  181. package/types/JavaScriptSDK.Interfaces/IConfiguration.d.ts +0 -150
  182. package/types/JavaScriptSDK.Interfaces/ICookieMgr.d.ts +0 -97
  183. package/types/JavaScriptSDK.Interfaces/IDbgExtension.d.ts +0 -10
  184. package/types/JavaScriptSDK.Interfaces/IDiagnosticLogger.d.ts +0 -48
  185. package/types/JavaScriptSDK.Interfaces/IDistributedTraceContext.d.ts +0 -43
  186. package/types/JavaScriptSDK.Interfaces/IInstrumentHooks.d.ts +0 -81
  187. package/types/JavaScriptSDK.Interfaces/INotificationListener.d.ts +0 -32
  188. package/types/JavaScriptSDK.Interfaces/INotificationManager.d.ts +0 -43
  189. package/types/JavaScriptSDK.Interfaces/IPerfEvent.d.ts +0 -56
  190. package/types/JavaScriptSDK.Interfaces/IPerfManager.d.ts +0 -45
  191. package/types/JavaScriptSDK.Interfaces/IProcessTelemetryContext.d.ts +0 -129
  192. package/types/JavaScriptSDK.Interfaces/ITelemetryInitializers.d.ts +0 -14
  193. package/types/JavaScriptSDK.Interfaces/ITelemetryItem.d.ts +0 -51
  194. package/types/JavaScriptSDK.Interfaces/ITelemetryPlugin.d.ts +0 -80
  195. package/types/JavaScriptSDK.Interfaces/ITelemetryPluginChain.d.ts +0 -23
  196. package/types/JavaScriptSDK.Interfaces/ITelemetryUnloadState.d.ts +0 -6
  197. package/types/JavaScriptSDK.Interfaces/ITelemetryUpdateState.d.ts +0 -33
  198. package/types/JavaScriptSDK.Interfaces/ITraceParent.d.ts +0 -32
  199. package/types/JavaScriptSDK.Interfaces/IUnloadHook.d.ts +0 -18
  200. package/types/JavaScriptSDK.Interfaces/IUnloadableComponent.d.ts +0 -13
  201. package/types/__DynamicConstants.d.ts +0 -53
  202. package/types/tsdoc-metadata.json +0 -11
  203. /package/{dist-esm → dist-es5}/Config/ConfigDefaultHelpers.js.map +0 -0
  204. /package/{dist-esm → dist-es5}/Config/ConfigDefaults.js.map +0 -0
  205. /package/{dist-esm → dist-es5}/Config/DynamicConfig.js.map +0 -0
  206. /package/{dist-esm → dist-es5}/Config/DynamicProperty.js.map +0 -0
  207. /package/{dist-esm → dist-es5}/Config/DynamicState.js.map +0 -0
  208. /package/{dist-esm → dist-es5}/Config/DynamicSupport.js.map +0 -0
  209. /package/{dist-esm → dist-es5}/Config/IConfigDefaults.js.map +0 -0
  210. /package/{dist-esm → dist-es5}/Config/IDynamicConfigHandler.js.map +0 -0
  211. /package/{dist-esm → dist-es5}/Config/IDynamicPropertyHandler.js.map +0 -0
  212. /package/{dist-esm → dist-es5}/Config/IDynamicWatcher.js.map +0 -0
  213. /package/{dist-esm → dist-es5}/Config/_IDynamicConfigHandlerState.js.map +0 -0
  214. /package/{dist-esm → dist-es5}/JavaScriptSDK/AppInsightsCore.js.map +0 -0
  215. /package/{dist-esm → dist-es5}/JavaScriptSDK/BaseTelemetryPlugin.js.map +0 -0
  216. /package/{dist-esm → dist-es5}/JavaScriptSDK/Constants.js.map +0 -0
  217. /package/{dist-esm → dist-es5}/JavaScriptSDK/CoreUtils.js.map +0 -0
  218. /package/{dist-esm → dist-es5}/JavaScriptSDK/DbgExtensionUtils.js.map +0 -0
  219. /package/{dist-esm → dist-es5}/JavaScriptSDK/DiagnosticLogger.js.map +0 -0
  220. /package/{dist-esm → dist-es5}/JavaScriptSDK/EnvUtils.js.map +0 -0
  221. /package/{dist-esm → dist-es5}/JavaScriptSDK/EventHelpers.js.map +0 -0
  222. /package/{dist-esm → dist-es5}/JavaScriptSDK/HelperFuncs.js.map +0 -0
  223. /package/{dist-esm → dist-es5}/JavaScriptSDK/InstrumentHooks.js.map +0 -0
  224. /package/{dist-esm → dist-es5}/JavaScriptSDK/InternalConstants.js.map +0 -0
  225. /package/{dist-esm → dist-es5}/JavaScriptSDK/NotificationManager.js.map +0 -0
  226. /package/{dist-esm → dist-es5}/JavaScriptSDK/PerfManager.js.map +0 -0
  227. /package/{dist-esm → dist-es5}/JavaScriptSDK/ProcessTelemetryContext.js.map +0 -0
  228. /package/{dist-esm → dist-es5}/JavaScriptSDK/TelemetryHelpers.js.map +0 -0
  229. /package/{dist-esm → dist-es5}/JavaScriptSDK/UnloadHandlerContainer.js.map +0 -0
  230. /package/{dist-esm → dist-es5}/JavaScriptSDK/UnloadHookContainer.js.map +0 -0
  231. /package/{dist-esm → dist-es5}/JavaScriptSDK/W3cTraceParent.js.map +0 -0
  232. /package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/EnumHelperFuncs.js.map +0 -0
  233. /package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/EventsDiscardedReason.js.map +0 -0
  234. /package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/LoggingEnums.js.map +0 -0
  235. /package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/SendRequestReason.js.map +0 -0
  236. /package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/TelemetryUnloadReason.js.map +0 -0
  237. /package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/TelemetryUpdateReason.js.map +0 -0
  238. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IAppInsightsCore.js.map +0 -0
  239. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IChannelControls.js.map +0 -0
  240. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IChannelControlsHost.js.map +0 -0
  241. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IConfiguration.js.map +0 -0
  242. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ICookieMgr.js.map +0 -0
  243. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IDbgExtension.js.map +0 -0
  244. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IDiagnosticLogger.js.map +0 -0
  245. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IDistributedTraceContext.js.map +0 -0
  246. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IInstrumentHooks.js.map +0 -0
  247. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/INotificationListener.js.map +0 -0
  248. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/INotificationManager.js.map +0 -0
  249. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IPerfEvent.js.map +0 -0
  250. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IPerfManager.js.map +0 -0
  251. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js.map +0 -0
  252. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryInitializers.js.map +0 -0
  253. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryItem.js.map +0 -0
  254. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryPlugin.js.map +0 -0
  255. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js.map +0 -0
  256. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js.map +0 -0
  257. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js.map +0 -0
  258. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITraceParent.js.map +0 -0
  259. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IUnloadHook.js.map +0 -0
  260. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IUnloadableComponent.js.map +0 -0
@@ -1,32 +0,0 @@
1
- import { ITelemetryItem } from "./ITelemetryItem";
2
- import { IPerfEvent } from "./IPerfEvent";
3
- /**
4
- * An interface used for the notification listener.
5
- * @interface
6
- */
7
- export interface INotificationListener {
8
- /**
9
- * [Optional] A function called when events are sent.
10
- * @param events - The array of events that have been sent.
11
- */
12
- eventsSent?: (events: ITelemetryItem[]) => void;
13
- /**
14
- * [Optional] A function called when events are discarded.
15
- * @param events - The array of events that have been discarded.
16
- * @param reason - The reason for discarding the events. The EventsDiscardedReason
17
- * constant should be used to check the different values.
18
- */
19
- eventsDiscarded?: (events: ITelemetryItem[], reason: number) => void;
20
- /**
21
- * [Optional] A function called when the events have been requested to be sent to the sever.
22
- * @param sendReason - The reason why the event batch is being sent.
23
- * @param isAsync - A flag which identifies whether the requests are being sent in an async or sync manner.
24
- */
25
- eventsSendRequest?: (sendReason: number, isAsync?: boolean) => void;
26
- /**
27
- * [Optional] This event is sent if you have enabled perf events, they are primarily used to track internal performance testing and debugging
28
- * the event can be displayed via the debug plugin extension.
29
- * @param perfEvent
30
- */
31
- perfEvent?: (perfEvent: IPerfEvent) => void;
32
- }
@@ -1,43 +0,0 @@
1
- import { ITelemetryItem } from "../JavaScriptSDK.Interfaces/ITelemetryItem";
2
- import { INotificationListener } from "../JavaScriptSDK.Interfaces/INotificationListener";
3
- import { IPerfEvent } from "./IPerfEvent";
4
- /**
5
- * Class to manage sending notifications to all the listeners.
6
- */
7
- export interface INotificationManager {
8
- listeners: INotificationListener[];
9
- /**
10
- * Adds a notification listener.
11
- * @param listener - The notification listener to be added.
12
- */
13
- addNotificationListener(listener: INotificationListener): void;
14
- /**
15
- * Removes all instances of the listener.
16
- * @param listener - AWTNotificationListener to remove.
17
- */
18
- removeNotificationListener(listener: INotificationListener): void;
19
- /**
20
- * Notification for events sent.
21
- * @param events - The array of events that have been sent.
22
- */
23
- eventsSent(events: ITelemetryItem[]): void;
24
- /**
25
- * Notification for events being discarded.
26
- * @param events - The array of events that have been discarded by the SDK.
27
- * @param reason - The reason for which the SDK discarded the events. The EventsDiscardedReason
28
- * constant should be used to check the different values.
29
- */
30
- eventsDiscarded(events: ITelemetryItem[], reason: number): void;
31
- /**
32
- * [Optional] A function called when the events have been requested to be sent to the sever.
33
- * @param sendReason - The reason why the event batch is being sent.
34
- * @param isAsync - A flag which identifies whether the requests are being sent in an async or sync manner.
35
- */
36
- eventsSendRequest?(sendReason: number, isAsync: boolean): void;
37
- /**
38
- * [Optional] This event is sent if you have enabled perf events, they are primarily used to track internal performance testing and debugging
39
- * the event can be displayed via the debug plugin extension.
40
- * @param perfEvent - The perf event details
41
- */
42
- perfEvent?(perfEvent: IPerfEvent): void;
43
- }
@@ -1,56 +0,0 @@
1
- /**
2
- * This interface identifies the details of an internal performance event - it does not represent an outgoing reported event
3
- */
4
- export interface IPerfEvent {
5
- /**
6
- * The name of the performance event
7
- */
8
- name: string;
9
- /**
10
- * The start time of the performance event
11
- */
12
- start: number;
13
- /**
14
- * The payload (contents) of the perfEvent, may be null or only set after the event has completed depending on
15
- * the runtime environment.
16
- */
17
- payload: any;
18
- /**
19
- * Is this occurring from an asynchronous event
20
- */
21
- isAsync: boolean;
22
- /**
23
- * Identifies the total inclusive time spent for this event, including the time spent for child events,
24
- * this will be undefined until the event is completed
25
- */
26
- time?: number;
27
- /**
28
- * Identifies the exclusive time spent in for this event (not including child events),
29
- * this will be undefined until the event is completed.
30
- */
31
- exTime?: number;
32
- /**
33
- * The Parent event that was started before this event was created
34
- */
35
- parent?: IPerfEvent;
36
- /**
37
- * The child perf events that are contained within the total time of this event.
38
- */
39
- childEvts?: IPerfEvent[];
40
- /**
41
- * Identifies whether this event is a child event of a parent
42
- */
43
- isChildEvt: () => boolean;
44
- /**
45
- * Get the names additional context associated with this perf event
46
- */
47
- getCtx?: (key: string) => any;
48
- /**
49
- * Set the named additional context to be associated with this perf event, this will replace any existing value
50
- */
51
- setCtx?: (key: string, value: any) => void;
52
- /**
53
- * Mark this event as completed, calculating the total execution time.
54
- */
55
- complete: () => void;
56
- }
@@ -1,45 +0,0 @@
1
- import { IPerfEvent } from "./../JavaScriptSDK.Interfaces/IPerfEvent";
2
- /**
3
- * Identifies an interface to a host that can provide an IPerfManager implementation
4
- */
5
- export interface IPerfManagerProvider {
6
- /**
7
- * Get the current performance manager
8
- */
9
- getPerfMgr(): IPerfManager;
10
- /**
11
- * Set the current performance manager
12
- * @param perfMgr - The performance manager
13
- */
14
- setPerfMgr(perfMgr: IPerfManager): void;
15
- }
16
- /**
17
- * This defines an internal performance manager for tracking and reporting the internal performance of the SDK -- It does
18
- * not represent or report any event to the server.
19
- */
20
- export interface IPerfManager {
21
- /**
22
- * Create a new event and start timing, the manager may return null/undefined to indicate that it does not
23
- * want to monitor this source event.
24
- * @param src - The source name of the event
25
- * @param payloadDetails - An optional callback function to fetch the payload details for the event.
26
- * @param isAsync - Is the event occurring from a async event
27
- */
28
- create(src: string, payloadDetails?: () => any, isAsync?: boolean): IPerfEvent | null | undefined;
29
- /**
30
- * Complete the perfEvent and fire any notifications.
31
- * @param perfEvent - Fire the event which will also complete the passed event
32
- */
33
- fire(perfEvent: IPerfEvent): void;
34
- /**
35
- * Set an execution context value
36
- * @param key - The context key name
37
- * @param value - The value
38
- */
39
- setCtx(key: string, value: any): void;
40
- /**
41
- * Get the execution context value
42
- * @param key - The context key
43
- */
44
- getCtx(key: string): any;
45
- }
@@ -1,129 +0,0 @@
1
- import { IConfigDefaults } from "../Config/IConfigDefaults";
2
- import { IAppInsightsCore } from "./IAppInsightsCore";
3
- import { IConfiguration } from "./IConfiguration";
4
- import { IDiagnosticLogger } from "./IDiagnosticLogger";
5
- import { ITelemetryItem } from "./ITelemetryItem";
6
- import { IPlugin, ITelemetryPlugin } from "./ITelemetryPlugin";
7
- import { ITelemetryPluginChain } from "./ITelemetryPluginChain";
8
- import { ITelemetryUnloadState } from "./ITelemetryUnloadState";
9
- import { ITelemetryUpdateState } from "./ITelemetryUpdateState";
10
- export interface IBaseProcessingContext {
11
- /**
12
- * The current core instance for the request
13
- */
14
- core: () => IAppInsightsCore;
15
- /**
16
- * THe current diagnostic logger for the request
17
- */
18
- diagLog: () => IDiagnosticLogger;
19
- /**
20
- * Gets the current core config instance
21
- */
22
- getCfg: () => IConfiguration;
23
- /**
24
- * Gets the named extension config
25
- */
26
- getExtCfg: <T>(identifier: string, defaultValue?: IConfigDefaults<T>) => T;
27
- /**
28
- * Gets the named config from either the named identifier extension or core config if neither exist then the
29
- * default value is returned
30
- * @param identifier - The named extension identifier
31
- * @param field - The config field name
32
- * @param defaultValue - The default value to return if no defined config exists
33
- */
34
- getConfig: (identifier: string, field: string, defaultValue?: number | string | boolean | string[] | RegExp[] | Function) => number | string | boolean | string[] | RegExp[] | Function;
35
- /**
36
- * Helper to allow plugins to check and possibly shortcut executing code only
37
- * required if there is a nextPlugin
38
- */
39
- hasNext: () => boolean;
40
- /**
41
- * Returns the next configured plugin proxy
42
- */
43
- getNext: () => ITelemetryPluginChain;
44
- /**
45
- * Helper to set the next plugin proxy
46
- */
47
- setNext: (nextCtx: ITelemetryPluginChain) => void;
48
- /**
49
- * Synchronously iterate over the context chain running the callback for each plugin, once
50
- * every plugin has been executed via the callback, any associated onComplete will be called.
51
- * @param callback - The function call for each plugin in the context chain
52
- */
53
- iterate: <T extends ITelemetryPlugin = ITelemetryPlugin>(callback: (plugin: T) => void) => void;
54
- /**
55
- * Set the function to call when the current chain has executed all processNext or unloadNext items.
56
- * @param onComplete - The onComplete to call
57
- * @param that - The "this" value to use for the onComplete call, if not provided or undefined defaults to the current context
58
- * @param args - Any additional arguments to pass to the onComplete function
59
- */
60
- onComplete: (onComplete: () => void, that?: any, ...args: any[]) => void;
61
- /**
62
- * Create a new context using the core and config from the current instance, returns a new instance of the same type
63
- * @param plugins - The execution order to process the plugins, if null or not supplied
64
- * then the current execution order will be copied.
65
- * @param startAt - The plugin to start processing from, if missing from the execution
66
- * order then the next plugin will be NOT set.
67
- */
68
- createNew: (plugins?: IPlugin[] | ITelemetryPluginChain, startAt?: IPlugin) => IBaseProcessingContext;
69
- }
70
- /**
71
- * The current context for the current call to processTelemetry(), used to support sharing the same plugin instance
72
- * between multiple AppInsights instances
73
- */
74
- export interface IProcessTelemetryContext extends IBaseProcessingContext {
75
- /**
76
- * Call back for telemetry processing before it it is sent
77
- * @param env - This is the current event being reported
78
- * @returns boolean (true) if there is no more plugins to process otherwise false or undefined (void)
79
- */
80
- processNext: (env: ITelemetryItem) => boolean | void;
81
- /**
82
- * Create a new context using the core and config from the current instance, returns a new instance of the same type
83
- * @param plugins - The execution order to process the plugins, if null or not supplied
84
- * then the current execution order will be copied.
85
- * @param startAt - The plugin to start processing from, if missing from the execution
86
- * order then the next plugin will be NOT set.
87
- */
88
- createNew: (plugins?: IPlugin[] | ITelemetryPluginChain, startAt?: IPlugin) => IProcessTelemetryContext;
89
- }
90
- /**
91
- * The current context for the current call to teardown() implementations, used to support when plugins are being removed
92
- * or the SDK is being unloaded.
93
- */
94
- export interface IProcessTelemetryUnloadContext extends IBaseProcessingContext {
95
- /**
96
- * This Plugin has finished unloading, so unload the next one
97
- * @param uploadState - The state of the unload process
98
- * @returns boolean (true) if there is no more plugins to process otherwise false or undefined (void)
99
- */
100
- processNext: (unloadState: ITelemetryUnloadState) => boolean | void;
101
- /**
102
- * Create a new context using the core and config from the current instance, returns a new instance of the same type
103
- * @param plugins - The execution order to process the plugins, if null or not supplied
104
- * then the current execution order will be copied.
105
- * @param startAt - The plugin to start processing from, if missing from the execution
106
- * order then the next plugin will be NOT set.
107
- */
108
- createNew: (plugins?: IPlugin[] | ITelemetryPluginChain, startAt?: IPlugin) => IProcessTelemetryUnloadContext;
109
- }
110
- /**
111
- * The current context for the current call to the plugin update() implementations, used to support the notifications
112
- * for when plugins are added, removed or the configuration was changed.
113
- */
114
- export interface IProcessTelemetryUpdateContext extends IBaseProcessingContext {
115
- /**
116
- * This Plugin has finished unloading, so unload the next one
117
- * @param updateState - The update State
118
- * @returns boolean (true) if there is no more plugins to process otherwise false or undefined (void)
119
- */
120
- processNext: (updateState: ITelemetryUpdateState) => boolean | void;
121
- /**
122
- * Create a new context using the core and config from the current instance, returns a new instance of the same type
123
- * @param plugins - The execution order to process the plugins, if null or not supplied
124
- * then the current execution order will be copied.
125
- * @param startAt - The plugin to start processing from, if missing from the execution
126
- * order then the next plugin will be NOT set.
127
- */
128
- createNew: (plugins?: IPlugin[] | ITelemetryPluginChain, startAt?: IPlugin) => IProcessTelemetryUpdateContext;
129
- }
@@ -1,14 +0,0 @@
1
- import { ITelemetryItem } from "./ITelemetryItem";
2
- import { ILegacyUnloadHook } from "./IUnloadHook";
3
- export declare type TelemetryInitializerFunction = <T extends ITelemetryItem>(item: T) => boolean | void;
4
- export interface ITelemetryInitializerHandler extends ILegacyUnloadHook {
5
- remove(): void;
6
- }
7
- export interface ITelemetryInitializerContainer {
8
- /**
9
- * Add a telemetry processor to decorate or drop telemetry events.
10
- * @param telemetryInitializer - The Telemetry Initializer function
11
- * @returns - A ITelemetryInitializerHandler to enable the initializer to be removed
12
- */
13
- addTelemetryInitializer(telemetryInitializer: TelemetryInitializerFunction): ITelemetryInitializerHandler | void;
14
- }
@@ -1,51 +0,0 @@
1
- /**
2
- * Telemety item supported in Core
3
- */
4
- export interface ITelemetryItem {
5
- /**
6
- * CommonSchema Version of this SDK
7
- */
8
- ver?: string;
9
- /**
10
- * Unique name of the telemetry item
11
- */
12
- name: string;
13
- /**
14
- * Timestamp when item was sent
15
- */
16
- time?: string;
17
- /**
18
- * Identifier of the resource that uniquely identifies which resource data is sent to
19
- */
20
- iKey?: string;
21
- /**
22
- * System context properties of the telemetry item, example: ip address, city etc
23
- */
24
- ext?: {
25
- [key: string]: any;
26
- };
27
- /**
28
- * System context property extensions that are not global (not in ctx)
29
- */
30
- tags?: Tags & Tags[];
31
- /**
32
- * Custom data
33
- */
34
- data?: ICustomProperties;
35
- /**
36
- * Telemetry type used for part B
37
- */
38
- baseType?: string;
39
- /**
40
- * Based on schema for part B
41
- */
42
- baseData?: {
43
- [key: string]: any;
44
- };
45
- }
46
- export interface Tags {
47
- [key: string]: any;
48
- }
49
- export interface ICustomProperties {
50
- [key: string]: any;
51
- }
@@ -1,80 +0,0 @@
1
- import { IAppInsightsCore } from "./IAppInsightsCore";
2
- import { IConfiguration } from "./IConfiguration";
3
- import { IProcessTelemetryContext, IProcessTelemetryUnloadContext, IProcessTelemetryUpdateContext } from "./IProcessTelemetryContext";
4
- import { ITelemetryItem } from "./ITelemetryItem";
5
- import { ITelemetryPluginChain } from "./ITelemetryPluginChain";
6
- import { ITelemetryUnloadState } from "./ITelemetryUnloadState";
7
- import { ITelemetryUpdateState } from "./ITelemetryUpdateState";
8
- export interface ITelemetryProcessor {
9
- /**
10
- * Call back for telemetry processing before it it is sent
11
- * @param env - This is the current event being reported
12
- * @param itemCtx - This is the context for the current request, ITelemetryPlugin instances
13
- * can optionally use this to access the current core instance or define / pass additional information
14
- * to later plugins (vs appending items to the telemetry item)
15
- */
16
- processTelemetry: (env: ITelemetryItem, itemCtx?: IProcessTelemetryContext) => void;
17
- /**
18
- * The the plugin should re-evaluate configuration and update any cached configuration settings or
19
- * plugins. If implemented this method will be called whenever a plugin is added or removed and if
20
- * the configuration has bee updated.
21
- * @param updateCtx - This is the context that should be used during updating.
22
- * @param updateState - The details / state of the update process, it holds details like the current and previous configuration.
23
- * @returns boolean - true if the plugin has or will call updateCtx.processNext(), this allows the plugin to perform any asynchronous operations.
24
- */
25
- update?: (updateCtx: IProcessTelemetryUpdateContext, updateState: ITelemetryUpdateState) => void | boolean;
26
- }
27
- /**
28
- * Configuration provided to SDK core
29
- */
30
- export interface ITelemetryPlugin extends ITelemetryProcessor, IPlugin {
31
- /**
32
- * Set next extension for telemetry processing, this is not optional as plugins should use the
33
- * processNext() function of the passed IProcessTelemetryContext instead. It is being kept for
34
- * now for backward compatibility only.
35
- */
36
- setNextPlugin?: (next: ITelemetryPlugin | ITelemetryPluginChain) => void;
37
- /**
38
- * Priority of the extension
39
- */
40
- readonly priority: number;
41
- }
42
- export interface IPlugin {
43
- /**
44
- * Initialize plugin loaded by SDK
45
- * @param config - The config for the plugin to use
46
- * @param core - The current App Insights core to use for initializing this plugin instance
47
- * @param extensions - The complete set of extensions to be used for initializing the plugin
48
- * @param pluginChain - [Optional] specifies the current plugin chain which identifies the
49
- * set of plugins and the order they should be executed for the current request.
50
- */
51
- initialize: (config: IConfiguration, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain) => void;
52
- /**
53
- * Returns a value that indicates whether the plugin has already been previously initialized.
54
- * New plugins should implement this method to avoid being initialized more than once.
55
- */
56
- isInitialized?: () => boolean;
57
- /**
58
- * Tear down the plugin and remove any hooked value, the plugin should be removed so that it is no longer initialized and
59
- * therefore could be re-initialized after being torn down. The plugin should ensure that once this has been called any further
60
- * processTelemetry calls are ignored and it just calls the processNext() with the provided context.
61
- * @param unloadCtx - This is the context that should be used during unloading.
62
- * @param unloadState - The details / state of the unload process, it holds details like whether it should be unloaded synchronously or asynchronously and the reason for the unload.
63
- * @returns boolean - true if the plugin has or will call processNext(), this for backward compatibility as previously teardown was synchronous and returned nothing.
64
- */
65
- teardown?: (unloadCtx: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState) => void | boolean;
66
- /**
67
- * Extension name
68
- */
69
- readonly identifier: string;
70
- /**
71
- * Plugin version (available in data.properties.version in common schema)
72
- */
73
- readonly version?: string;
74
- /**
75
- * The App Insights core to use for backward compatibility.
76
- * Therefore the interface will be able to access the core without needing to cast to "any".
77
- * [optional] any 3rd party plugins which are already implementing this interface don't fail to compile.
78
- */
79
- core?: IAppInsightsCore;
80
- }
@@ -1,23 +0,0 @@
1
- import { IProcessTelemetryUnloadContext } from "./IProcessTelemetryContext";
2
- import { ITelemetryPlugin, ITelemetryProcessor } from "./ITelemetryPlugin";
3
- import { ITelemetryUnloadState } from "./ITelemetryUnloadState";
4
- /**
5
- * Configuration provided to SDK core
6
- */
7
- export interface ITelemetryPluginChain extends ITelemetryProcessor {
8
- /**
9
- * Returns the underlying plugin that is being proxied for the processTelemetry call
10
- */
11
- getPlugin: () => ITelemetryPlugin;
12
- /**
13
- * Returns the next plugin
14
- */
15
- getNext: () => ITelemetryPluginChain;
16
- /**
17
- * This plugin is being unloaded and should remove any hooked events and cleanup any global/scoped values, after this
18
- * call the plugin will be removed from the telemetry processing chain and will no longer receive any events..
19
- * @param unloadCtx - The unload context to use for this call.
20
- * @param unloadState - The details of the unload operation
21
- */
22
- unload?: (unloadCtx: IProcessTelemetryUnloadContext, unloadState: ITelemetryUnloadState) => void;
23
- }
@@ -1,6 +0,0 @@
1
- import { TelemetryUnloadReason } from "../JavaScriptSDK.Enums/TelemetryUnloadReason";
2
- export interface ITelemetryUnloadState {
3
- reason: TelemetryUnloadReason;
4
- isAsync: boolean;
5
- flushComplete?: boolean;
6
- }
@@ -1,33 +0,0 @@
1
- import { TelemetryUpdateReason } from "../JavaScriptSDK.Enums/TelemetryUpdateReason";
2
- import { IConfiguration } from "./IConfiguration";
3
- import { IPlugin } from "./ITelemetryPlugin";
4
- export interface ITelemetryUpdateState {
5
- /**
6
- * Identifies the reason for the update notification, this is a bitwise numeric value
7
- */
8
- reason: TelemetryUpdateReason;
9
- /**
10
- * This is a new active configuration that should be used
11
- */
12
- cfg?: IConfiguration;
13
- /**
14
- * The detected changes
15
- */
16
- oldCfg?: IConfiguration;
17
- /**
18
- * If this is a configuration update this was the previous configuration that was used
19
- */
20
- newConfig?: IConfiguration;
21
- /**
22
- * Was the new config requested to be merged with the existing config
23
- */
24
- merge?: boolean;
25
- /**
26
- * This holds a collection of plugins that have been added (if the reason identifies that one or more plugins have been added)
27
- */
28
- added?: IPlugin[];
29
- /**
30
- * This holds a collection of plugins that have been removed (if the reason identifies that one or more plugins have been removed)
31
- */
32
- removed?: IPlugin[];
33
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * This interface represents the components of a W3C traceparent header
3
- */
4
- export interface ITraceParent {
5
- /**
6
- * The version of the definition, this MUST be a string with a length of 2 and only contain lowercase
7
- * hexadecimal characters. A value of 'ff' is considered to be an invalid version.
8
- */
9
- version: string;
10
- /**
11
- * This is the ID of the whole trace forest and is used to uniquely identify a distributed trace
12
- * through a system. It is represented as a 32-character string of lowercase hexadecimal characters,
13
- * for example, 4bf92f3577b34da6a3ce929d0e0e4736.
14
- * All characters as zero (00000000000000000000000000000000) is considered an invalid value.
15
- */
16
- traceId: string;
17
- /**
18
- * This is the ID of the current request as known by the caller (in some tracing systems, this is also
19
- * known as the parent-id, where a span is the execution of a client request). It is represented as an
20
- * 16-character string of lowercase hexadecimal characters, for example, 00f067aa0ba902b7.
21
- * All bytes as zero (0000000000000000) is considered an invalid value.
22
- */
23
- spanId: string;
24
- /**
25
- * An 8-bit value of flags that controls tracing such as sampling, trace level, etc. These flags are
26
- * recommendations given by the caller rather than strict rules to follow.
27
- * As this is a bit field, you cannot interpret flags by decoding the hex value and looking at the resulting
28
- * number. For example, a flag 00000001 could be encoded as 01 in hex, or 09 in hex if present with the flag
29
- * 00001000. A common mistake in bit fields is forgetting to mask when interpreting flags.
30
- */
31
- traceFlags: number;
32
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * An interface which provides automatic removal during unloading of the component
3
- */
4
- export interface IUnloadHook {
5
- /**
6
- * Self remove the referenced component
7
- */
8
- rm: () => void;
9
- }
10
- /**
11
- * An alternate interface which provides automatic removal during unloading of the component
12
- */
13
- export interface ILegacyUnloadHook {
14
- /**
15
- * Legacy Self remove the referenced component
16
- */
17
- remove: () => void;
18
- }
@@ -1,13 +0,0 @@
1
- import { IProcessTelemetryUnloadContext } from "./IProcessTelemetryContext";
2
- import { ITelemetryUnloadState } from "./ITelemetryUnloadState";
3
- export interface IUnloadableComponent {
4
- /**
5
- * Teardown / Unload hook to allow implementations to perform some additional unload operations before the BaseTelemetryPlugin
6
- * finishes it's removal.
7
- * @param unloadCtx - This is the context that should be used during unloading.
8
- * @param unloadState - The details / state of the unload process, it holds details like whether it should be unloaded synchronously or asynchronously and the reason for the unload.
9
- * @param asyncCallback - An optional callback that the plugin must call if it returns true to inform the caller that it has completed any async unload/teardown operations.
10
- * @returns boolean - true if the plugin has or will call asyncCallback, this allows the plugin to perform any asynchronous operations.
11
- */
12
- _doUnload?: (unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState, asyncCallback?: () => void) => void | boolean;
13
- }
@@ -1,53 +0,0 @@
1
- export declare const _DYN_TO_LOWER_CASE = "toLowerCase";
2
- export declare const _DYN_LENGTH = "length";
3
- export declare const _DYN_RD_ONLY = "rdOnly";
4
- export declare const _DYN_NOTIFY = "notify";
5
- export declare const _DYN_THROW_INTERNAL = "throwInternal";
6
- export declare const _DYN_SET_DF = "setDf";
7
- export declare const _DYN_WATCH = "watch";
8
- export declare const _DYN_LOGGER = "logger";
9
- export declare const _DYN_APPLY = "apply";
10
- export declare const _DYN_PUSH = "push";
11
- export declare const _DYN_SPLICE = "splice";
12
- export declare const _DYN_CANCEL = "cancel";
13
- export declare const _DYN_INITIALIZE = "initialize";
14
- export declare const _DYN_IDENTIFIER = "identifier";
15
- export declare const _DYN_IS_INITIALIZED = "isInitialized";
16
- export declare const _DYN_GET_PLUGIN = "getPlugin";
17
- export declare const _DYN_POLL_INTERNAL_LOGS = "pollInternalLogs";
18
- export declare const _DYN_NAME = "name";
19
- export declare const _DYN_TIME = "time";
20
- export declare const _DYN_PROCESS_NEXT = "processNext";
21
- export declare const _DYN_GET_PROCESS_TEL_CONT0 = "getProcessTelContext";
22
- export declare const _DYN_GET_NOTIFY_MGR = "getNotifyMgr";
23
- export declare const _DYN_ADD_NOTIFICATION_LIS1 = "addNotificationListener";
24
- export declare const _DYN_REMOVE_NOTIFICATION_2 = "removeNotificationListener";
25
- export declare const _DYN_STOP_POLLING_INTERNA3 = "stopPollingInternalLogs";
26
- export declare const _DYN_ON_COMPLETE = "onComplete";
27
- export declare const _DYN_VERSION = "version";
28
- export declare const _DYN_LOGGING_LEVEL_CONSOL4 = "loggingLevelConsole";
29
- export declare const _DYN_CREATE_NEW = "createNew";
30
- export declare const _DYN_TEARDOWN = "teardown";
31
- export declare const _DYN_MESSAGE_ID = "messageId";
32
- export declare const _DYN_MESSAGE = "message";
33
- export declare const _DYN_IS_ASYNC = "isAsync";
34
- export declare const _DYN_DIAG_LOG = "diagLog";
35
- export declare const _DYN__DO_TEARDOWN = "_doTeardown";
36
- export declare const _DYN_UPDATE = "update";
37
- export declare const _DYN_GET_NEXT = "getNext";
38
- export declare const _DYN_SET_NEXT_PLUGIN = "setNextPlugin";
39
- export declare const _DYN_USER_AGENT = "userAgent";
40
- export declare const _DYN_SPLIT = "split";
41
- export declare const _DYN_NODE_TYPE = "nodeType";
42
- export declare const _DYN_REPLACE = "replace";
43
- export declare const _DYN_LOG_INTERNAL_MESSAGE = "logInternalMessage";
44
- export declare const _DYN_TYPE = "type";
45
- export declare const _DYN_HANDLER = "handler";
46
- export declare const _DYN_LISTENERS = "listeners";
47
- export declare const _DYN_IS_CHILD_EVT = "isChildEvt";
48
- export declare const _DYN_GET_CTX = "getCtx";
49
- export declare const _DYN_SET_CTX = "setCtx";
50
- export declare const _DYN_COMPLETE = "complete";
51
- export declare const _DYN_TRACE_ID = "traceId";
52
- export declare const _DYN_SPAN_ID = "spanId";
53
- export declare const _DYN_TRACE_FLAGS = "traceFlags";
@@ -1,11 +0,0 @@
1
- // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
- // It should be published with your NPM package. It should not be tracked by Git.
3
- {
4
- "tsdocVersion": "0.12",
5
- "toolPackages": [
6
- {
7
- "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.34.4"
9
- }
10
- ]
11
- }