@azure/monitor-opentelemetry-exporter 1.0.0-beta.3 → 1.0.0-beta.31

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 (389) hide show
  1. package/README.md +119 -44
  2. package/dist/commonjs/Declarations/Constants.d.ts +149 -0
  3. package/dist/commonjs/Declarations/Constants.d.ts.map +1 -0
  4. package/dist/commonjs/Declarations/Constants.js +167 -0
  5. package/dist/commonjs/Declarations/Constants.js.map +1 -0
  6. package/dist/commonjs/Declarations/Contracts/Constants.d.ts +14 -0
  7. package/dist/commonjs/Declarations/Contracts/Constants.d.ts.map +1 -0
  8. package/dist/commonjs/Declarations/Contracts/Constants.js +5 -0
  9. package/dist/commonjs/Declarations/Contracts/Constants.js.map +1 -0
  10. package/dist/commonjs/Declarations/Contracts/index.d.ts +2 -0
  11. package/dist/commonjs/Declarations/Contracts/index.d.ts.map +1 -0
  12. package/dist/commonjs/Declarations/Contracts/index.js +7 -0
  13. package/dist/commonjs/Declarations/Contracts/index.js.map +1 -0
  14. package/dist/commonjs/config.d.ts +30 -0
  15. package/dist/commonjs/config.d.ts.map +1 -0
  16. package/dist/commonjs/config.js +3 -0
  17. package/dist/commonjs/config.js.map +1 -0
  18. package/dist/commonjs/export/base.d.ts +36 -0
  19. package/dist/commonjs/export/base.d.ts.map +1 -0
  20. package/dist/commonjs/export/base.js +59 -0
  21. package/dist/commonjs/export/base.js.map +1 -0
  22. package/dist/commonjs/export/log.d.ts +30 -0
  23. package/dist/commonjs/export/log.d.ts.map +1 -0
  24. package/dist/commonjs/export/log.js +68 -0
  25. package/dist/commonjs/export/log.js.map +1 -0
  26. package/dist/commonjs/export/metric.d.ts +39 -0
  27. package/dist/commonjs/export/metric.d.ts.map +1 -0
  28. package/dist/commonjs/export/metric.js +79 -0
  29. package/dist/commonjs/export/metric.js.map +1 -0
  30. package/dist/commonjs/export/statsbeat/longIntervalStatsbeatMetrics.d.ts +39 -0
  31. package/dist/commonjs/export/statsbeat/longIntervalStatsbeatMetrics.d.ts.map +1 -0
  32. package/dist/commonjs/export/statsbeat/longIntervalStatsbeatMetrics.js +127 -0
  33. package/dist/commonjs/export/statsbeat/longIntervalStatsbeatMetrics.js.map +1 -0
  34. package/dist/commonjs/export/statsbeat/networkStatsbeatMetrics.d.ts +51 -0
  35. package/dist/commonjs/export/statsbeat/networkStatsbeatMetrics.d.ts.map +1 -0
  36. package/dist/commonjs/export/statsbeat/networkStatsbeatMetrics.js +289 -0
  37. package/dist/commonjs/export/statsbeat/networkStatsbeatMetrics.js.map +1 -0
  38. package/dist/commonjs/export/statsbeat/statsbeatExporter.d.ts +32 -0
  39. package/dist/commonjs/export/statsbeat/statsbeatExporter.d.ts.map +1 -0
  40. package/dist/commonjs/export/statsbeat/statsbeatExporter.js +62 -0
  41. package/dist/commonjs/export/statsbeat/statsbeatExporter.js.map +1 -0
  42. package/dist/commonjs/export/statsbeat/statsbeatMetrics.d.ts +11 -0
  43. package/dist/commonjs/export/statsbeat/statsbeatMetrics.d.ts.map +1 -0
  44. package/dist/commonjs/export/statsbeat/statsbeatMetrics.js +106 -0
  45. package/dist/commonjs/export/statsbeat/statsbeatMetrics.js.map +1 -0
  46. package/dist/commonjs/export/statsbeat/types.d.ts +102 -0
  47. package/dist/commonjs/export/statsbeat/types.d.ts.map +1 -0
  48. package/dist/commonjs/export/statsbeat/types.js +89 -0
  49. package/dist/commonjs/export/statsbeat/types.js.map +1 -0
  50. package/dist/commonjs/export/trace.d.ts +31 -0
  51. package/dist/commonjs/export/trace.d.ts.map +1 -0
  52. package/dist/commonjs/export/trace.js +76 -0
  53. package/dist/commonjs/export/trace.js.map +1 -0
  54. package/dist/commonjs/generated/applicationInsightsClient.d.ts +17 -0
  55. package/dist/commonjs/generated/applicationInsightsClient.d.ts.map +1 -0
  56. package/dist/commonjs/generated/applicationInsightsClient.js +89 -0
  57. package/dist/commonjs/generated/applicationInsightsClient.js.map +1 -0
  58. package/dist/commonjs/generated/index.d.ts +3 -0
  59. package/dist/commonjs/generated/index.d.ts.map +1 -0
  60. package/dist/commonjs/generated/index.js +15 -0
  61. package/dist/commonjs/generated/index.js.map +1 -0
  62. package/dist/commonjs/generated/models/index.d.ts +429 -0
  63. package/dist/commonjs/generated/models/index.d.ts.map +1 -0
  64. package/dist/commonjs/generated/models/index.js +93 -0
  65. package/dist/commonjs/generated/models/index.js.map +1 -0
  66. package/dist/commonjs/generated/models/mappers.d.ts +19 -0
  67. package/dist/commonjs/generated/models/mappers.d.ts.map +1 -0
  68. package/dist/commonjs/generated/models/mappers.js +848 -0
  69. package/dist/commonjs/generated/models/mappers.js.map +1 -0
  70. package/dist/commonjs/generated/models/parameters.d.ts +6 -0
  71. package/dist/commonjs/generated/models/parameters.d.ts.map +1 -0
  72. package/dist/commonjs/generated/models/parameters.js +60 -0
  73. package/dist/commonjs/generated/models/parameters.js.map +1 -0
  74. package/dist/commonjs/index.d.ts +10 -0
  75. package/dist/commonjs/index.d.ts.map +1 -0
  76. package/dist/commonjs/index.js +20 -0
  77. package/dist/commonjs/index.js.map +1 -0
  78. package/dist/commonjs/package.json +3 -0
  79. package/dist/commonjs/platform/index.d.ts +2 -0
  80. package/dist/commonjs/platform/index.d.ts.map +1 -0
  81. package/dist/commonjs/platform/index.js +10 -0
  82. package/dist/commonjs/platform/index.js.map +1 -0
  83. package/dist/commonjs/platform/nodejs/baseSender.d.ts +49 -0
  84. package/dist/commonjs/platform/nodejs/baseSender.d.ts.map +1 -0
  85. package/dist/commonjs/platform/nodejs/baseSender.js +244 -0
  86. package/dist/commonjs/platform/nodejs/baseSender.js.map +1 -0
  87. package/dist/commonjs/platform/nodejs/constants.d.ts +10 -0
  88. package/dist/commonjs/platform/nodejs/constants.d.ts.map +1 -0
  89. package/dist/commonjs/platform/nodejs/constants.js +15 -0
  90. package/dist/commonjs/platform/nodejs/constants.js.map +1 -0
  91. package/dist/commonjs/platform/nodejs/context/context.d.ts +21 -0
  92. package/dist/commonjs/platform/nodejs/context/context.d.ts.map +1 -0
  93. package/dist/commonjs/platform/nodejs/context/context.js +66 -0
  94. package/dist/commonjs/platform/nodejs/context/context.js.map +1 -0
  95. package/dist/commonjs/platform/nodejs/context/index.d.ts +2 -0
  96. package/dist/commonjs/platform/nodejs/context/index.d.ts.map +1 -0
  97. package/dist/commonjs/platform/nodejs/context/index.js +7 -0
  98. package/dist/commonjs/platform/nodejs/context/index.js.map +1 -0
  99. package/dist/commonjs/platform/nodejs/httpSender.d.ts +32 -0
  100. package/dist/commonjs/platform/nodejs/httpSender.d.ts.map +1 -0
  101. package/dist/commonjs/platform/nodejs/httpSender.js +70 -0
  102. package/dist/commonjs/platform/nodejs/httpSender.js.map +1 -0
  103. package/dist/commonjs/platform/nodejs/index.d.ts +8 -0
  104. package/dist/commonjs/platform/nodejs/index.d.ts.map +1 -0
  105. package/dist/commonjs/platform/nodejs/index.js +13 -0
  106. package/dist/commonjs/platform/nodejs/index.js.map +1 -0
  107. package/dist/commonjs/platform/nodejs/persist/fileAccessControl.d.ts +18 -0
  108. package/dist/commonjs/platform/nodejs/persist/fileAccessControl.d.ts.map +1 -0
  109. package/dist/commonjs/platform/nodejs/persist/fileAccessControl.js +177 -0
  110. package/dist/commonjs/platform/nodejs/persist/fileAccessControl.js.map +1 -0
  111. package/dist/commonjs/platform/nodejs/persist/fileSystemHelpers.d.ts +11 -0
  112. package/dist/commonjs/platform/nodejs/persist/fileSystemHelpers.d.ts.map +1 -0
  113. package/dist/commonjs/platform/nodejs/persist/fileSystemHelpers.js +60 -0
  114. package/dist/commonjs/platform/nodejs/persist/fileSystemHelpers.js.map +1 -0
  115. package/dist/commonjs/platform/nodejs/persist/fileSystemPersist.d.ts +29 -0
  116. package/dist/commonjs/platform/nodejs/persist/fileSystemPersist.d.ts.map +1 -0
  117. package/dist/commonjs/platform/nodejs/persist/fileSystemPersist.js +184 -0
  118. package/dist/commonjs/platform/nodejs/persist/fileSystemPersist.js.map +1 -0
  119. package/dist/commonjs/platform/nodejs/persist/index.d.ts +2 -0
  120. package/dist/commonjs/platform/nodejs/persist/index.d.ts.map +1 -0
  121. package/dist/commonjs/platform/nodejs/persist/index.js +7 -0
  122. package/dist/commonjs/platform/nodejs/persist/index.js.map +1 -0
  123. package/dist/commonjs/sampling.d.ts +38 -0
  124. package/dist/commonjs/sampling.d.ts.map +1 -0
  125. package/dist/commonjs/sampling.js +92 -0
  126. package/dist/commonjs/sampling.js.map +1 -0
  127. package/dist/commonjs/tsdoc-metadata.json +11 -0
  128. package/dist/commonjs/types.d.ts +112 -0
  129. package/dist/commonjs/types.d.ts.map +1 -0
  130. package/dist/commonjs/types.js +124 -0
  131. package/dist/commonjs/types.js.map +1 -0
  132. package/dist/commonjs/utils/breezeUtils.d.ts +25 -0
  133. package/dist/commonjs/utils/breezeUtils.d.ts.map +1 -0
  134. package/dist/commonjs/utils/breezeUtils.js +39 -0
  135. package/dist/commonjs/utils/breezeUtils.js.map +1 -0
  136. package/dist/commonjs/utils/common.d.ts +15 -0
  137. package/dist/commonjs/utils/common.d.ts.map +1 -0
  138. package/dist/commonjs/utils/common.js +256 -0
  139. package/dist/commonjs/utils/common.js.map +1 -0
  140. package/dist/commonjs/utils/connectionStringParser.d.ts +13 -0
  141. package/dist/commonjs/utils/connectionStringParser.d.ts.map +1 -0
  142. package/dist/commonjs/utils/connectionStringParser.js +83 -0
  143. package/dist/commonjs/utils/connectionStringParser.js.map +1 -0
  144. package/dist/commonjs/utils/constants/applicationinsights.d.ts +42 -0
  145. package/dist/commonjs/utils/constants/applicationinsights.d.ts.map +1 -0
  146. package/dist/commonjs/utils/constants/applicationinsights.js +48 -0
  147. package/dist/commonjs/utils/constants/applicationinsights.js.map +1 -0
  148. package/dist/commonjs/utils/constants/span/azAttributes.d.ts +16 -0
  149. package/dist/commonjs/utils/constants/span/azAttributes.d.ts.map +1 -0
  150. package/dist/commonjs/utils/constants/span/azAttributes.js +21 -0
  151. package/dist/commonjs/utils/constants/span/azAttributes.js.map +1 -0
  152. package/dist/commonjs/utils/eventhub.d.ts +10 -0
  153. package/dist/commonjs/utils/eventhub.d.ts.map +1 -0
  154. package/dist/commonjs/utils/eventhub.js +57 -0
  155. package/dist/commonjs/utils/eventhub.js.map +1 -0
  156. package/dist/commonjs/utils/logUtils.d.ts +8 -0
  157. package/dist/commonjs/utils/logUtils.d.ts.map +1 -0
  158. package/dist/commonjs/utils/logUtils.js +222 -0
  159. package/dist/commonjs/utils/logUtils.js.map +1 -0
  160. package/dist/commonjs/utils/metricUtils.d.ts +13 -0
  161. package/dist/commonjs/utils/metricUtils.d.ts.map +1 -0
  162. package/dist/commonjs/utils/metricUtils.js +140 -0
  163. package/dist/commonjs/utils/metricUtils.js.map +1 -0
  164. package/dist/commonjs/utils/spanUtils.d.ts +27 -0
  165. package/dist/commonjs/utils/spanUtils.d.ts.map +1 -0
  166. package/dist/commonjs/utils/spanUtils.js +521 -0
  167. package/dist/commonjs/utils/spanUtils.js.map +1 -0
  168. package/dist/esm/Declarations/Constants.d.ts +149 -0
  169. package/dist/esm/Declarations/Constants.d.ts.map +1 -0
  170. package/{dist-esm/src → dist/esm}/Declarations/Constants.js +110 -21
  171. package/dist/esm/Declarations/Constants.js.map +1 -0
  172. package/dist/esm/Declarations/Contracts/Constants.d.ts +14 -0
  173. package/dist/esm/Declarations/Contracts/Constants.d.ts.map +1 -0
  174. package/dist/esm/Declarations/Contracts/Constants.js +4 -0
  175. package/dist/esm/Declarations/Contracts/Constants.js.map +1 -0
  176. package/dist/esm/Declarations/Contracts/index.d.ts +2 -0
  177. package/dist/esm/Declarations/Contracts/index.d.ts.map +1 -0
  178. package/dist/esm/Declarations/Contracts/index.js +4 -0
  179. package/dist/esm/Declarations/Contracts/index.js.map +1 -0
  180. package/dist/esm/config.d.ts +30 -0
  181. package/dist/esm/config.d.ts.map +1 -0
  182. package/dist/esm/config.js +2 -0
  183. package/dist/esm/config.js.map +1 -0
  184. package/dist/esm/export/base.d.ts +36 -0
  185. package/dist/esm/export/base.d.ts.map +1 -0
  186. package/dist/esm/export/base.js +55 -0
  187. package/dist/esm/export/base.js.map +1 -0
  188. package/dist/esm/export/log.d.ts +30 -0
  189. package/dist/esm/export/log.d.ts.map +1 -0
  190. package/dist/esm/export/log.js +64 -0
  191. package/dist/esm/export/log.js.map +1 -0
  192. package/dist/esm/export/metric.d.ts +39 -0
  193. package/dist/esm/export/metric.d.ts.map +1 -0
  194. package/dist/esm/export/metric.js +75 -0
  195. package/dist/esm/export/metric.js.map +1 -0
  196. package/dist/esm/export/statsbeat/longIntervalStatsbeatMetrics.d.ts +39 -0
  197. package/dist/esm/export/statsbeat/longIntervalStatsbeatMetrics.d.ts.map +1 -0
  198. package/dist/esm/export/statsbeat/longIntervalStatsbeatMetrics.js +123 -0
  199. package/dist/esm/export/statsbeat/longIntervalStatsbeatMetrics.js.map +1 -0
  200. package/dist/esm/export/statsbeat/networkStatsbeatMetrics.d.ts +51 -0
  201. package/dist/esm/export/statsbeat/networkStatsbeatMetrics.d.ts.map +1 -0
  202. package/dist/esm/export/statsbeat/networkStatsbeatMetrics.js +284 -0
  203. package/dist/esm/export/statsbeat/networkStatsbeatMetrics.js.map +1 -0
  204. package/dist/esm/export/statsbeat/statsbeatExporter.d.ts +32 -0
  205. package/dist/esm/export/statsbeat/statsbeatExporter.d.ts.map +1 -0
  206. package/dist/esm/export/statsbeat/statsbeatExporter.js +58 -0
  207. package/dist/esm/export/statsbeat/statsbeatExporter.js.map +1 -0
  208. package/dist/esm/export/statsbeat/statsbeatMetrics.d.ts +11 -0
  209. package/dist/esm/export/statsbeat/statsbeatMetrics.d.ts.map +1 -0
  210. package/dist/esm/export/statsbeat/statsbeatMetrics.js +101 -0
  211. package/dist/esm/export/statsbeat/statsbeatMetrics.js.map +1 -0
  212. package/dist/esm/export/statsbeat/types.d.ts +102 -0
  213. package/dist/esm/export/statsbeat/types.d.ts.map +1 -0
  214. package/dist/esm/export/statsbeat/types.js +84 -0
  215. package/dist/esm/export/statsbeat/types.js.map +1 -0
  216. package/dist/esm/export/trace.d.ts +31 -0
  217. package/dist/esm/export/trace.d.ts.map +1 -0
  218. package/dist/esm/export/trace.js +72 -0
  219. package/dist/esm/export/trace.js.map +1 -0
  220. package/dist/esm/generated/applicationInsightsClient.d.ts +17 -0
  221. package/dist/esm/generated/applicationInsightsClient.d.ts.map +1 -0
  222. package/dist/esm/generated/applicationInsightsClient.js +84 -0
  223. package/dist/esm/generated/applicationInsightsClient.js.map +1 -0
  224. package/dist/esm/generated/index.d.ts +3 -0
  225. package/dist/esm/generated/index.d.ts.map +1 -0
  226. package/{dist-esm/src → dist/esm}/generated/index.js +2 -3
  227. package/dist/esm/generated/index.js.map +1 -0
  228. package/dist/esm/generated/models/index.d.ts +429 -0
  229. package/dist/esm/generated/models/index.d.ts.map +1 -0
  230. package/dist/esm/generated/models/index.js +90 -0
  231. package/dist/esm/generated/models/index.js.map +1 -0
  232. package/dist/esm/generated/models/mappers.d.ts +19 -0
  233. package/dist/esm/generated/models/mappers.d.ts.map +1 -0
  234. package/{dist-esm/src → dist/esm}/generated/models/mappers.js +291 -270
  235. package/dist/esm/generated/models/mappers.js.map +1 -0
  236. package/dist/esm/generated/models/parameters.d.ts +6 -0
  237. package/dist/esm/generated/models/parameters.d.ts.map +1 -0
  238. package/{dist-esm/src → dist/esm}/generated/models/parameters.js +17 -12
  239. package/dist/esm/generated/models/parameters.js.map +1 -0
  240. package/dist/esm/index.d.ts +10 -0
  241. package/dist/esm/index.d.ts.map +1 -0
  242. package/dist/esm/index.js +10 -0
  243. package/dist/esm/index.js.map +1 -0
  244. package/dist/esm/package.json +3 -0
  245. package/dist/esm/platform/index.d.ts +2 -0
  246. package/dist/esm/platform/index.d.ts.map +1 -0
  247. package/{dist-esm/src → dist/esm}/platform/index.js +2 -2
  248. package/dist/esm/platform/index.js.map +1 -0
  249. package/dist/esm/platform/nodejs/baseSender.d.ts +49 -0
  250. package/dist/esm/platform/nodejs/baseSender.d.ts.map +1 -0
  251. package/dist/esm/platform/nodejs/baseSender.js +240 -0
  252. package/dist/esm/platform/nodejs/baseSender.js.map +1 -0
  253. package/dist/esm/platform/nodejs/constants.d.ts +10 -0
  254. package/dist/esm/platform/nodejs/constants.d.ts.map +1 -0
  255. package/dist/esm/platform/nodejs/constants.js +12 -0
  256. package/dist/esm/platform/nodejs/constants.js.map +1 -0
  257. package/dist/esm/platform/nodejs/context/context.d.ts +21 -0
  258. package/dist/esm/platform/nodejs/context/context.d.ts.map +1 -0
  259. package/dist/esm/platform/nodejs/context/context.js +60 -0
  260. package/dist/esm/platform/nodejs/context/context.js.map +1 -0
  261. package/dist/esm/platform/nodejs/context/index.d.ts +2 -0
  262. package/dist/esm/platform/nodejs/context/index.d.ts.map +1 -0
  263. package/dist/esm/platform/nodejs/context/index.js +4 -0
  264. package/{dist-esm/src → dist/esm}/platform/nodejs/context/index.js.map +1 -1
  265. package/dist/esm/platform/nodejs/httpSender.d.ts +32 -0
  266. package/dist/esm/platform/nodejs/httpSender.d.ts.map +1 -0
  267. package/dist/esm/platform/nodejs/httpSender.js +65 -0
  268. package/dist/esm/platform/nodejs/httpSender.js.map +1 -0
  269. package/dist/esm/platform/nodejs/index.d.ts +8 -0
  270. package/dist/esm/platform/nodejs/index.d.ts.map +1 -0
  271. package/dist/esm/platform/nodejs/index.js +10 -0
  272. package/dist/esm/platform/nodejs/index.js.map +1 -0
  273. package/dist/esm/platform/nodejs/persist/fileAccessControl.d.ts +18 -0
  274. package/dist/esm/platform/nodejs/persist/fileAccessControl.d.ts.map +1 -0
  275. package/dist/esm/platform/nodejs/persist/fileAccessControl.js +172 -0
  276. package/dist/esm/platform/nodejs/persist/fileAccessControl.js.map +1 -0
  277. package/dist/esm/platform/nodejs/persist/fileSystemHelpers.d.ts +11 -0
  278. package/dist/esm/platform/nodejs/persist/fileSystemHelpers.d.ts.map +1 -0
  279. package/dist/esm/platform/nodejs/persist/fileSystemHelpers.js +55 -0
  280. package/dist/esm/platform/nodejs/persist/fileSystemHelpers.js.map +1 -0
  281. package/dist/esm/platform/nodejs/persist/fileSystemPersist.d.ts +29 -0
  282. package/dist/esm/platform/nodejs/persist/fileSystemPersist.d.ts.map +1 -0
  283. package/dist/esm/platform/nodejs/persist/fileSystemPersist.js +180 -0
  284. package/dist/esm/platform/nodejs/persist/fileSystemPersist.js.map +1 -0
  285. package/dist/esm/platform/nodejs/persist/index.d.ts +2 -0
  286. package/dist/esm/platform/nodejs/persist/index.d.ts.map +1 -0
  287. package/dist/esm/platform/nodejs/persist/index.js +4 -0
  288. package/{dist-esm/src → dist/esm}/platform/nodejs/persist/index.js.map +1 -1
  289. package/dist/esm/sampling.d.ts +38 -0
  290. package/dist/esm/sampling.d.ts.map +1 -0
  291. package/dist/esm/sampling.js +88 -0
  292. package/dist/esm/sampling.js.map +1 -0
  293. package/dist/esm/types.d.ts +112 -0
  294. package/dist/esm/types.d.ts.map +1 -0
  295. package/dist/esm/types.js +121 -0
  296. package/dist/esm/types.js.map +1 -0
  297. package/dist/esm/utils/breezeUtils.d.ts +25 -0
  298. package/dist/esm/utils/breezeUtils.d.ts.map +1 -0
  299. package/dist/esm/utils/breezeUtils.js +35 -0
  300. package/dist/esm/utils/breezeUtils.js.map +1 -0
  301. package/dist/esm/utils/common.d.ts +15 -0
  302. package/dist/esm/utils/common.d.ts.map +1 -0
  303. package/dist/esm/utils/common.js +244 -0
  304. package/dist/esm/utils/common.js.map +1 -0
  305. package/dist/esm/utils/connectionStringParser.d.ts +13 -0
  306. package/dist/esm/utils/connectionStringParser.d.ts.map +1 -0
  307. package/{dist-esm/src → dist/esm}/utils/connectionStringParser.js +22 -8
  308. package/dist/esm/utils/connectionStringParser.js.map +1 -0
  309. package/dist/esm/utils/constants/applicationinsights.d.ts +42 -0
  310. package/dist/esm/utils/constants/applicationinsights.d.ts.map +1 -0
  311. package/dist/esm/utils/constants/applicationinsights.js +45 -0
  312. package/dist/esm/utils/constants/applicationinsights.js.map +1 -0
  313. package/dist/esm/utils/constants/span/azAttributes.d.ts +16 -0
  314. package/dist/esm/utils/constants/span/azAttributes.d.ts.map +1 -0
  315. package/dist/esm/utils/constants/span/azAttributes.js +18 -0
  316. package/dist/esm/utils/constants/span/azAttributes.js.map +1 -0
  317. package/dist/esm/utils/eventhub.d.ts +10 -0
  318. package/dist/esm/utils/eventhub.d.ts.map +1 -0
  319. package/{dist-esm/src → dist/esm}/utils/eventhub.js +6 -5
  320. package/dist/esm/utils/eventhub.js.map +1 -0
  321. package/dist/esm/utils/logUtils.d.ts +8 -0
  322. package/dist/esm/utils/logUtils.d.ts.map +1 -0
  323. package/dist/esm/utils/logUtils.js +219 -0
  324. package/dist/esm/utils/logUtils.js.map +1 -0
  325. package/dist/esm/utils/metricUtils.d.ts +13 -0
  326. package/dist/esm/utils/metricUtils.d.ts.map +1 -0
  327. package/dist/esm/utils/metricUtils.js +133 -0
  328. package/dist/esm/utils/metricUtils.js.map +1 -0
  329. package/dist/esm/utils/spanUtils.d.ts +27 -0
  330. package/dist/esm/utils/spanUtils.d.ts.map +1 -0
  331. package/dist/esm/utils/spanUtils.js +505 -0
  332. package/dist/esm/utils/spanUtils.js.map +1 -0
  333. package/package.json +98 -57
  334. package/CHANGELOG.md +0 -22
  335. package/dist/index.js +0 -1855
  336. package/dist-esm/src/Declarations/Constants.js.map +0 -1
  337. package/dist-esm/src/Declarations/Contracts/Constants.js +0 -4
  338. package/dist-esm/src/Declarations/Contracts/Constants.js.map +0 -1
  339. package/dist-esm/src/Declarations/Contracts/index.js +0 -4
  340. package/dist-esm/src/Declarations/Contracts/index.js.map +0 -1
  341. package/dist-esm/src/config.js +0 -13
  342. package/dist-esm/src/config.js.map +0 -1
  343. package/dist-esm/src/export/trace.js +0 -135
  344. package/dist-esm/src/export/trace.js.map +0 -1
  345. package/dist-esm/src/generated/applicationInsightsClient.js +0 -64
  346. package/dist-esm/src/generated/applicationInsightsClient.js.map +0 -1
  347. package/dist-esm/src/generated/applicationInsightsClientContext.js +0 -32
  348. package/dist-esm/src/generated/applicationInsightsClientContext.js.map +0 -1
  349. package/dist-esm/src/generated/index.js.map +0 -1
  350. package/dist-esm/src/generated/models/index.js +0 -9
  351. package/dist-esm/src/generated/models/index.js.map +0 -1
  352. package/dist-esm/src/generated/models/mappers.js.map +0 -1
  353. package/dist-esm/src/generated/models/parameters.js.map +0 -1
  354. package/dist-esm/src/index.js +0 -5
  355. package/dist-esm/src/index.js.map +0 -1
  356. package/dist-esm/src/platform/index.js.map +0 -1
  357. package/dist-esm/src/platform/nodejs/constants.js +0 -8
  358. package/dist-esm/src/platform/nodejs/constants.js.map +0 -1
  359. package/dist-esm/src/platform/nodejs/context/context.js +0 -105
  360. package/dist-esm/src/platform/nodejs/context/context.js.map +0 -1
  361. package/dist-esm/src/platform/nodejs/context/index.js +0 -4
  362. package/dist-esm/src/platform/nodejs/httpSender.js +0 -34
  363. package/dist-esm/src/platform/nodejs/httpSender.js.map +0 -1
  364. package/dist-esm/src/platform/nodejs/index.js +0 -10
  365. package/dist-esm/src/platform/nodejs/index.js.map +0 -1
  366. package/dist-esm/src/platform/nodejs/persist/fileSystemHelpers.js +0 -48
  367. package/dist-esm/src/platform/nodejs/persist/fileSystemHelpers.js.map +0 -1
  368. package/dist-esm/src/platform/nodejs/persist/fileSystemPersist.js +0 -121
  369. package/dist-esm/src/platform/nodejs/persist/fileSystemPersist.js.map +0 -1
  370. package/dist-esm/src/platform/nodejs/persist/index.js +0 -4
  371. package/dist-esm/src/types.js +0 -4
  372. package/dist-esm/src/types.js.map +0 -1
  373. package/dist-esm/src/utils/breezeUtils.js +0 -27
  374. package/dist-esm/src/utils/breezeUtils.js.map +0 -1
  375. package/dist-esm/src/utils/connectionStringParser.js.map +0 -1
  376. package/dist-esm/src/utils/constants/applicationinsights.js +0 -13
  377. package/dist-esm/src/utils/constants/applicationinsights.js.map +0 -1
  378. package/dist-esm/src/utils/constants/span/azAttributes.js +0 -6
  379. package/dist-esm/src/utils/constants/span/azAttributes.js.map +0 -1
  380. package/dist-esm/src/utils/constants/span/dbAttributes.js +0 -14
  381. package/dist-esm/src/utils/constants/span/dbAttributes.js.map +0 -1
  382. package/dist-esm/src/utils/constants/span/grpcAttributes.js +0 -9
  383. package/dist-esm/src/utils/constants/span/grpcAttributes.js.map +0 -1
  384. package/dist-esm/src/utils/constants/span/httpAttributes.js +0 -8
  385. package/dist-esm/src/utils/constants/span/httpAttributes.js.map +0 -1
  386. package/dist-esm/src/utils/eventhub.js.map +0 -1
  387. package/dist-esm/src/utils/spanUtils.js +0 -214
  388. package/dist-esm/src/utils/spanUtils.js.map +0 -1
  389. package/types/monitor-opentelemetry-exporter.d.ts +0 -29
@@ -1 +0,0 @@
1
- {"version":3,"file":"Constants.js","sourceRoot":"","sources":["../../../src/Declarations/Constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,MAAM,CAAN,IAAY,iBAEX;AAFD,WAAY,iBAAiB;IAC3B,8CAAyB,CAAA;AAC3B,CAAC,EAFW,iBAAiB,KAAjB,iBAAiB,QAE5B;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG,sCAAsC,CAAC;AAC9E,MAAM,CAAC,MAAM,0BAA0B,GAAG,iBAAiB,CAAC,EAAE,CAAC;AAC/D,MAAM,CAAC,MAAM,4BAA4B,GAAG,sCAAsC,CAAC;AACnF,MAAM,CAAC,MAAM,wBAAwB,GAAG,8BAA8B,CAAC;AACvE,MAAM,CAAC,MAAM,qBAAqB,GAAG,uCAAuC,CAAC;AAC7E,MAAM,CAAC,MAAM,uBAAuB,GAAG,gCAAgC,CAAC;AAExE,MAAM,CAAN,IAAY,iBAmBX;AAnBD,WAAY,iBAAiB;IAC3B,SAAS;IACT,kEAA6C,CAAA;IAE7C,MAAM;IACN,6EAAwD,CAAA;IAExD,UAAU;IACV,yEAAoD,CAAA;IACpD,wFAAmE,CAAA;IACnE,iFAA4D,CAAA;IAE5D,aAAa;IACb,oFAA+D,CAAA;IAC/D,mGAA8E,CAAA;IAC9E,4FAAuE,CAAA;IAEvE,YAAY;IACZ,6EAA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O;IACP,UAAU,EAAE,aAAa;IACzB,WAAW,EAAE,aAAa,CAAC,eAAe;CAC3C,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;CACjB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport enum ServiceApiVersion {\n V2 = \"2020-09-15_Preview\"\n}\n\nexport const DEFAULT_BREEZE_ENDPOINT = \"https://dc.services.visualstudio.com\";\nexport const DEFAULT_BREEZE_API_VERSION = ServiceApiVersion.V2;\nexport const DEFAULT_LIVEMETRICS_ENDPOINT = \"https://rt.services.visualstudio.com\";\nexport const DEFAULT_LIVEMETRICS_HOST = \"rt.services.visualstudio.com\";\nexport const ENV_CONNECTION_STRING = \"APPLICATIONINSIGHTS_CONNECTION_STRING\";\nexport const ENV_INSTRUMENTATION_KEY = \"APPINSIGHTS_INSTRUMENTATIONKEY\";\n\nexport enum QuickPulseCounter {\n // Memory\n COMMITTED_BYTES = \"\\\\Memory\\\\Committed Bytes\",\n\n // CPU\n PROCESSOR_TIME = \"\\\\Processor(_Total)\\\\% Processor Time\",\n\n // Request\n REQUEST_RATE = \"\\\\ApplicationInsights\\\\Requests/Sec\",\n REQUEST_FAILURE_RATE = \"\\\\ApplicationInsights\\\\Requests Failed/Sec\",\n REQUEST_DURATION = \"\\\\ApplicationInsights\\\\Request Duration\",\n\n // Dependency\n DEPENDENCY_RATE = \"\\\\ApplicationInsights\\\\Dependency Calls/Sec\",\n DEPENDENCY_FAILURE_RATE = \"\\\\ApplicationInsights\\\\Dependency Calls Failed/Sec\",\n DEPENDENCY_DURATION = \"\\\\ApplicationInsights\\\\Dependency Call Duration\",\n\n // Exception\n EXCEPTION_RATE = \"\\\\ApplicationInsights\\\\Exceptions/Sec\"\n}\n\nexport enum PerformanceCounter {\n // Memory\n PRIVATE_BYTES = \"\\\\Process(??APP_WIN32_PROC??)\\\\Private Bytes\",\n AVAILABLE_BYTES = \"\\\\Memory\\\\Available Bytes\",\n\n // CPU\n PROCESSOR_TIME = \"\\\\Processor(_Total)\\\\% Processor Time\",\n PROCESS_TIME = \"\\\\Process(??APP_WIN32_PROC??)\\\\% Processor Time\",\n\n // Requests\n REQUEST_RATE = \"\\\\ASP.NET Applications(??APP_W3SVC_PROC??)\\\\Requests/Sec\",\n REQUEST_DURATION = \"\\\\ASP.NET Applications(??APP_W3SVC_PROC??)\\\\Request Execution Time\"\n}\n\n/**\n * Map a PerformanceCounter/QuickPulseCounter to a QuickPulseCounter. If no mapping exists, mapping is *undefined*\n */\nexport const PerformanceToQuickPulseCounter: { [key: string]: QuickPulseCounter } = {\n [PerformanceCounter.PROCESSOR_TIME]: QuickPulseCounter.PROCESSOR_TIME,\n [PerformanceCounter.REQUEST_RATE]: QuickPulseCounter.REQUEST_RATE,\n [PerformanceCounter.REQUEST_DURATION]: QuickPulseCounter.REQUEST_DURATION,\n\n // Remap quick pulse only counters\n [QuickPulseCounter.COMMITTED_BYTES]: QuickPulseCounter.COMMITTED_BYTES,\n [QuickPulseCounter.REQUEST_FAILURE_RATE]: QuickPulseCounter.REQUEST_FAILURE_RATE,\n [QuickPulseCounter.DEPENDENCY_RATE]: QuickPulseCounter.DEPENDENCY_RATE,\n [QuickPulseCounter.DEPENDENCY_FAILURE_RATE]: QuickPulseCounter.DEPENDENCY_FAILURE_RATE,\n [QuickPulseCounter.DEPENDENCY_DURATION]: QuickPulseCounter.DEPENDENCY_DURATION,\n [QuickPulseCounter.EXCEPTION_RATE]: QuickPulseCounter.EXCEPTION_RATE\n};\n\n// Note: Explicitly define these types instead of using enum due to\n// potential 'export enum' issues with typescript < 2.0.\nexport type QuickPulseDocumentType =\n | \"Event\"\n | \"Exception\"\n | \"Trace\"\n | \"Metric\"\n | \"Request\"\n | \"RemoteDependency\"\n | \"Availability\";\nexport type QuickPulseType =\n | \"EventTelemetryDocument\"\n | \"ExceptionTelemetryDocument\"\n | \"TraceTelemetryDocument\"\n | \"MetricTelemetryDocument\"\n | \"RequestTelemetryDocument\"\n | \"DependencyTelemetryDocument\"\n | \"AvailabilityTelemetryDocument\";\n\n// OpenTelemetry Span Attributes\nexport const SpanAttribute = {\n // HTTP\n HttpHost: \"http.host\",\n HttpMethod: \"http.method\",\n HttpPort: \"http.port\",\n HttpStatusCode: \"http.status_code\",\n HttpUrl: \"http.url\",\n HttpUserAgent: \"http.user_agent\",\n\n // GRPC\n GrpcMethod: \"grpc.method\",\n GrpcService: \"rpc.service\" // rpc not grpc\n};\n\nexport const DependencyTypeName = {\n Grpc: \"GRPC\",\n Http: \"HTTP\",\n InProc: \"InProc\"\n};\n"]}
@@ -1,4 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- export {};
4
- //# sourceMappingURL=Constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Constants.js","sourceRoot":"","sources":["../../../../src/Declarations/Contracts/Constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * Subset of Connection String fields which this SDK can parse. Lower-typecased to\n * allow for case-insensitivity across field names\n */\nexport type ConnectionString = { [key in ConnectionStringKey]?: string };\n\nexport type ConnectionStringKey =\n | \"authorization\"\n | \"instrumentationkey\"\n | \"ingestionendpoint\"\n | \"liveendpoint\"\n | \"location\"\n | \"endpointsuffix\";\n"]}
@@ -1,4 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- export * from "./Constants";
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Declarations/Contracts/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,aAAa,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport * from \"./Constants\";\n"]}
@@ -1,13 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- import { DEFAULT_BREEZE_API_VERSION, DEFAULT_BREEZE_ENDPOINT } from "./Declarations/Constants";
4
- const DEFAULT_BATCH_SEND_RETRY_INTERVAL_MS = 60000;
5
- const DEFAULT_MAX_CONSECUTIVE_FAILURES_BEFORE_WARNING = 10;
6
- export const DEFAULT_EXPORTER_CONFIG = {
7
- instrumentationKey: "",
8
- endpointUrl: DEFAULT_BREEZE_ENDPOINT,
9
- batchSendRetryIntervalMs: DEFAULT_BATCH_SEND_RETRY_INTERVAL_MS,
10
- maxConsecutiveFailuresBeforeWarning: DEFAULT_MAX_CONSECUTIVE_FAILURES_BEFORE_WARNING,
11
- serviceApiVersion: DEFAULT_BREEZE_API_VERSION
12
- };
13
- //# sourceMappingURL=config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,0BAA0B,EAC1B,uBAAuB,EAExB,MAAM,0BAA0B,CAAC;AAElC,MAAM,oCAAoC,GAAG,KAAM,CAAC;AACpD,MAAM,+CAA+C,GAAG,EAAE,CAAC;AA0B3D,MAAM,CAAC,MAAM,uBAAuB,GAAgC;IAClE,kBAAkB,EAAE,EAAE;IACtB,WAAW,EAAE,uBAAuB;IACpC,wBAAwB,EAAE,oCAAoC;IAC9D,mCAAmC,EAAE,+CAA+C;IACpF,iBAAiB,EAAE,0BAA0B;CAC9C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { Logger } from \"@opentelemetry/api\";\nimport {\n DEFAULT_BREEZE_API_VERSION,\n DEFAULT_BREEZE_ENDPOINT,\n ServiceApiVersion\n} from \"./Declarations/Constants\";\n\nconst DEFAULT_BATCH_SEND_RETRY_INTERVAL_MS = 60_000;\nconst DEFAULT_MAX_CONSECUTIVE_FAILURES_BEFORE_WARNING = 10;\n\nexport interface AzureExporterConfig {\n // Setup String\n connectionString?: string;\n // Azure service API version\n serviceApiVersion?: ServiceApiVersion;\n}\n\nexport interface AzureExporterInternalConfig {\n instrumentationKey: string;\n\n // Exporter\n logger?: Logger;\n\n // Channel\n batchSendRetryIntervalMs: number;\n\n // Sender\n maxConsecutiveFailuresBeforeWarning: number;\n\n endpointUrl: string;\n\n serviceApiVersion: ServiceApiVersion;\n}\n\nexport const DEFAULT_EXPORTER_CONFIG: AzureExporterInternalConfig = {\n instrumentationKey: \"\",\n endpointUrl: DEFAULT_BREEZE_ENDPOINT,\n batchSendRetryIntervalMs: DEFAULT_BATCH_SEND_RETRY_INTERVAL_MS,\n maxConsecutiveFailuresBeforeWarning: DEFAULT_MAX_CONSECUTIVE_FAILURES_BEFORE_WARNING,\n serviceApiVersion: DEFAULT_BREEZE_API_VERSION\n};\n"]}
@@ -1,135 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- import { __awaiter } from "tslib";
4
- import { ConsoleLogger, LogLevel, ExportResultCode } from "@opentelemetry/core";
5
- import { RestError } from "@azure/core-http";
6
- import { ConnectionStringParser } from "../utils/connectionStringParser";
7
- import { HttpSender, FileSystemPersist } from "../platform";
8
- import { DEFAULT_EXPORTER_CONFIG } from "../config";
9
- import { isRetriable } from "../utils/breezeUtils";
10
- import { ENV_CONNECTION_STRING } from "../Declarations/Constants";
11
- import { readableSpanToEnvelope } from "../utils/spanUtils";
12
- export class AzureMonitorTraceExporter {
13
- constructor(options = {}) {
14
- var _a, _b, _c, _d;
15
- const connectionString = options.connectionString || process.env[ENV_CONNECTION_STRING];
16
- this._logger = new ConsoleLogger(LogLevel.ERROR);
17
- this._options = Object.assign({}, DEFAULT_EXPORTER_CONFIG);
18
- this._options.serviceApiVersion = (_a = options.serviceApiVersion) !== null && _a !== void 0 ? _a : this._options.serviceApiVersion;
19
- if (connectionString) {
20
- const parsedConnectionString = ConnectionStringParser.parse(connectionString, this._logger);
21
- this._options.instrumentationKey = (_b = parsedConnectionString.instrumentationkey) !== null && _b !== void 0 ? _b : this._options.instrumentationKey;
22
- this._options.endpointUrl = (_d = (_c = parsedConnectionString.ingestionendpoint) === null || _c === void 0 ? void 0 : _c.trim()) !== null && _d !== void 0 ? _d : this._options.endpointUrl;
23
- }
24
- // Instrumentation key is required
25
- if (!this._options.instrumentationKey) {
26
- const message = "No instrumentation key or connection string was provided to the Azure Monitor Exporter";
27
- this._logger.error(message);
28
- throw new Error(message);
29
- }
30
- this._sender = new HttpSender(this._options);
31
- this._persister = new FileSystemPersist(this._options);
32
- this._retryTimer = null;
33
- this._logger.debug("AzureMonitorTraceExporter was successfully setup");
34
- }
35
- _persist(envelopes) {
36
- return __awaiter(this, void 0, void 0, function* () {
37
- try {
38
- const success = yield this._persister.push(envelopes);
39
- return success
40
- ? { code: ExportResultCode.SUCCESS }
41
- : {
42
- code: ExportResultCode.FAILED,
43
- error: new Error("Failed to persist envelope in disk.")
44
- };
45
- }
46
- catch (ex) {
47
- return { code: ExportResultCode.FAILED, error: ex };
48
- }
49
- });
50
- }
51
- exportEnvelopes(envelopes) {
52
- return __awaiter(this, void 0, void 0, function* () {
53
- this._logger.info(`Exporting ${envelopes.length} envelope(s)`);
54
- try {
55
- const { result, statusCode } = yield this._sender.send(envelopes);
56
- if (statusCode === 200) {
57
- // Success -- @todo: start retry timer
58
- if (!this._retryTimer) {
59
- this._retryTimer = setTimeout(() => {
60
- this._retryTimer = null;
61
- this._sendFirstPersistedFile();
62
- }, this._options.batchSendRetryIntervalMs);
63
- this._retryTimer.unref();
64
- }
65
- return { code: ExportResultCode.SUCCESS };
66
- }
67
- else if (statusCode && isRetriable(statusCode)) {
68
- // Failed -- persist failed data
69
- if (result) {
70
- this._logger.info(result);
71
- const breezeResponse = JSON.parse(result);
72
- const filteredEnvelopes = breezeResponse.errors.reduce((acc, v) => [...acc, envelopes[v.index]], []);
73
- // calls resultCallback(ExportResult) based on result of persister.push
74
- return yield this._persist(filteredEnvelopes);
75
- }
76
- else {
77
- // calls resultCallback(ExportResult) based on result of persister.push
78
- return yield this._persist(envelopes);
79
- }
80
- }
81
- else {
82
- // Failed -- not retriable
83
- return {
84
- code: ExportResultCode.FAILED
85
- };
86
- }
87
- }
88
- catch (senderErr) {
89
- if (this._isNetworkError(senderErr)) {
90
- this._logger.error("Retrying due to transient client side error. Error message:", senderErr.message);
91
- return yield this._persist(envelopes);
92
- }
93
- else {
94
- this._logger.error("Envelopes could not be exported and are not retriable. Error message:", senderErr.message);
95
- return { code: ExportResultCode.FAILED, error: senderErr };
96
- }
97
- }
98
- });
99
- }
100
- export(spans, resultCallback) {
101
- return __awaiter(this, void 0, void 0, function* () {
102
- this._logger.info(`Exporting ${spans.length} span(s). Converting to envelopes...`);
103
- const envelopes = spans.map((span) => readableSpanToEnvelope(span, this._options.instrumentationKey, this._logger));
104
- resultCallback(yield this.exportEnvelopes(envelopes));
105
- });
106
- }
107
- shutdown() {
108
- return __awaiter(this, void 0, void 0, function* () {
109
- this._logger.info("Azure Monitor Trace Exporter shutting down");
110
- return this._sender.shutdown();
111
- });
112
- }
113
- _sendFirstPersistedFile() {
114
- return __awaiter(this, void 0, void 0, function* () {
115
- try {
116
- const envelopes = (yield this._persister.shift());
117
- if (envelopes) {
118
- yield this._sender.send(envelopes);
119
- }
120
- }
121
- catch (err) {
122
- this._logger.warn(`Failed to fetch persisted file`, err);
123
- }
124
- });
125
- }
126
- _isNetworkError(error) {
127
- if (error instanceof RestError) {
128
- if (error && error.code && error.code === "REQUEST_SEND_ERROR") {
129
- return true;
130
- }
131
- }
132
- return false;
133
- }
134
- }
135
- //# sourceMappingURL=trace.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trace.js","sourceRoot":"","sources":["../../../src/export/trace.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,OAAO,EAAE,aAAa,EAAE,QAAQ,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AE;YAC9B,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,oBAAoB,EAAE;gBAC9D,OAAO,IAAI,CAAC;aACb;SACF;QACD,OAAO,KAAK,CAAC;IACf,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { Logger } from \"@opentelemetry/api\";\nimport { ConsoleLogger, LogLevel, ExportResult, ExportResultCode } from \"@opentelemetry/core\";\nimport { ReadableSpan, SpanExporter } from \"@opentelemetry/tracing\";\nimport { RestError } from \"@azure/core-http\";\nimport { ConnectionStringParser } from \"../utils/connectionStringParser\";\nimport { HttpSender, FileSystemPersist } from \"../platform\";\nimport {\n DEFAULT_EXPORTER_CONFIG,\n AzureExporterConfig,\n AzureExporterInternalConfig\n} from \"../config\";\nimport { PersistentStorage, Sender } from \"../types\";\nimport { isRetriable, BreezeResponse } from \"../utils/breezeUtils\";\nimport { ENV_CONNECTION_STRING } from \"../Declarations/Constants\";\nimport { TelemetryItem as Envelope } from \"../generated\";\nimport { readableSpanToEnvelope } from \"../utils/spanUtils\";\n\nexport class AzureMonitorTraceExporter implements SpanExporter {\n private readonly _persister: PersistentStorage;\n\n private readonly _logger: Logger;\n\n private readonly _sender: Sender;\n\n private _retryTimer: NodeJS.Timer | null;\n\n private readonly _options: AzureExporterInternalConfig;\n\n constructor(options: Partial<AzureExporterConfig> = {}) {\n const connectionString = options.connectionString || process.env[ENV_CONNECTION_STRING];\n this._logger = new ConsoleLogger(LogLevel.ERROR);\n this._options = {\n ...DEFAULT_EXPORTER_CONFIG\n };\n this._options.serviceApiVersion = options.serviceApiVersion ?? this._options.serviceApiVersion;\n\n if (connectionString) {\n const parsedConnectionString = ConnectionStringParser.parse(connectionString, this._logger);\n this._options.instrumentationKey =\n parsedConnectionString.instrumentationkey ?? this._options.instrumentationKey;\n this._options.endpointUrl =\n parsedConnectionString.ingestionendpoint?.trim() ?? this._options.endpointUrl;\n }\n // Instrumentation key is required\n if (!this._options.instrumentationKey) {\n const message =\n \"No instrumentation key or connection string was provided to the Azure Monitor Exporter\";\n this._logger.error(message);\n throw new Error(message);\n }\n\n this._sender = new HttpSender(this._options);\n this._persister = new FileSystemPersist(this._options);\n this._retryTimer = null;\n this._logger.debug(\"AzureMonitorTraceExporter was successfully setup\");\n }\n\n private async _persist(envelopes: unknown[]): Promise<ExportResult> {\n try {\n const success = await this._persister.push(envelopes);\n return success\n ? { code: ExportResultCode.SUCCESS }\n : {\n code: ExportResultCode.FAILED,\n error: new Error(\"Failed to persist envelope in disk.\")\n };\n } catch (ex) {\n return { code: ExportResultCode.FAILED, error: ex };\n }\n }\n\n private async exportEnvelopes(envelopes: Envelope[]): Promise<ExportResult> {\n this._logger.info(`Exporting ${envelopes.length} envelope(s)`);\n\n try {\n const { result, statusCode } = await this._sender.send(envelopes);\n if (statusCode === 200) {\n // Success -- @todo: start retry timer\n if (!this._retryTimer) {\n this._retryTimer = setTimeout(() => {\n this._retryTimer = null;\n this._sendFirstPersistedFile();\n }, this._options.batchSendRetryIntervalMs);\n this._retryTimer.unref();\n }\n return { code: ExportResultCode.SUCCESS };\n } else if (statusCode && isRetriable(statusCode)) {\n // Failed -- persist failed data\n if (result) {\n this._logger.info(result);\n const breezeResponse = JSON.parse(result) as BreezeResponse;\n const filteredEnvelopes = breezeResponse.errors.reduce(\n (acc, v) => [...acc, envelopes[v.index]],\n [] as Envelope[]\n );\n // calls resultCallback(ExportResult) based on result of persister.push\n return await this._persist(filteredEnvelopes);\n } else {\n // calls resultCallback(ExportResult) based on result of persister.push\n return await this._persist(envelopes);\n }\n } else {\n // Failed -- not retriable\n return {\n code: ExportResultCode.FAILED\n };\n }\n } catch (senderErr) {\n if (this._isNetworkError(senderErr)) {\n this._logger.error(\n \"Retrying due to transient client side error. Error message:\",\n senderErr.message\n );\n return await this._persist(envelopes);\n } else {\n this._logger.error(\n \"Envelopes could not be exported and are not retriable. Error message:\",\n senderErr.message\n );\n return { code: ExportResultCode.FAILED, error: senderErr };\n }\n }\n }\n\n async export(\n spans: ReadableSpan[],\n resultCallback: (result: ExportResult) => void\n ): Promise<void> {\n this._logger.info(`Exporting ${spans.length} span(s). Converting to envelopes...`);\n const envelopes = spans.map((span) =>\n readableSpanToEnvelope(span, this._options.instrumentationKey, this._logger)\n );\n resultCallback(await this.exportEnvelopes(envelopes));\n }\n\n async shutdown(): Promise<void> {\n this._logger.info(\"Azure Monitor Trace Exporter shutting down\");\n return this._sender.shutdown();\n }\n\n private async _sendFirstPersistedFile(): Promise<void> {\n try {\n const envelopes = (await this._persister.shift()) as Envelope[] | null;\n if (envelopes) {\n await this._sender.send(envelopes);\n }\n } catch (err) {\n this._logger.warn(`Failed to fetch persisted file`, err);\n }\n }\n\n private _isNetworkError(error: Error): boolean {\n if (error instanceof RestError) {\n if (error && error.code && error.code === \"REQUEST_SEND_ERROR\") {\n return true;\n }\n }\n return false;\n }\n}\n"]}
@@ -1,64 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import * as coreHttp from "@azure/core-http";
9
- import * as Parameters from "./models/parameters";
10
- import * as Mappers from "./models/mappers";
11
- import { ApplicationInsightsClientContext } from "./applicationInsightsClientContext";
12
- export class ApplicationInsightsClient extends ApplicationInsightsClientContext {
13
- /**
14
- * Initializes a new instance of the ApplicationInsightsClient class.
15
- * @param options The parameter options
16
- */
17
- constructor(options) {
18
- super(options);
19
- }
20
- /**
21
- * This operation sends a sequence of telemetry events that will be monitored by Azure Monitor.
22
- * @param body The list of telemetry events to track.
23
- * @param options The options parameters.
24
- */
25
- track(body, options) {
26
- const operationOptions = coreHttp.operationOptionsToRequestOptionsBase(options || {});
27
- return this.sendOperationRequest({ body, options: operationOptions }, trackOperationSpec);
28
- }
29
- }
30
- // Operation Specifications
31
- const serializer = new coreHttp.Serializer(Mappers, /* isXml */ false);
32
- const trackOperationSpec = {
33
- path: "/track",
34
- httpMethod: "POST",
35
- responses: {
36
- 200: {
37
- bodyMapper: Mappers.TrackResponse
38
- },
39
- 206: {
40
- bodyMapper: Mappers.TrackResponse
41
- },
42
- 400: {
43
- bodyMapper: Mappers.TrackResponse
44
- },
45
- 402: {
46
- bodyMapper: Mappers.TrackResponse
47
- },
48
- 429: {
49
- bodyMapper: Mappers.TrackResponse
50
- },
51
- 500: {
52
- bodyMapper: Mappers.TrackResponse
53
- },
54
- 503: {
55
- bodyMapper: Mappers.TrackResponse
56
- }
57
- },
58
- requestBody: Parameters.body,
59
- urlParameters: [Parameters.host],
60
- headerParameters: [Parameters.contentType, Parameters.accept],
61
- mediaType: "json",
62
- serializer
63
- };
64
- //# sourceMappingURL=applicationInsightsClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"applicationInsightsClient.js","sourceRoot":"","sources":["../../../src/generated/applicationInsightsClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAOtF,MAAM,OAAO,yBAA0B,SAAQ,gCAAgC;IAC7E;;;OAGG;IACH,YAAY,OAAiD;QAC3D,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;IAED;;;;OAIG;IACH,KAAK,CACH,IAAqB,EACrB,OAAmC;QAEnC,MAAM,gBAAgB,GAAgC,QAAQ,CAAC,oCAAoC,CACjG,OAAO,IAAI,EAAE,CACd,CAAC;QACF,OAAO,IAAI,CAAC,oBAAoB,CAC9B,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,EAAE,EACnC,kBAAkB,CACgC,CAAC;IACvD,CAAC;CACF;AACD,2BAA2B;AAE3B,MAAM,UAAU,GAAG,IAAI,QAAQ,CAAC,UAAU,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAEvE,MAAM,kBAAkB,GAA2B;IACjD,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,IAAI;IAC5B,aAAa,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC;IAChC,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreHttp from \"@azure/core-http\";\nimport * as Parameters from \"./models/parameters\";\nimport * as Mappers from \"./models/mappers\";\nimport { ApplicationInsightsClientContext } from \"./applicationInsightsClientContext\";\nimport {\n ApplicationInsightsClientOptionalParams,\n TelemetryItem,\n ApplicationInsightsClientTrackResponse\n} from \"./models\";\n\nexport class ApplicationInsightsClient extends ApplicationInsightsClientContext {\n /**\n * Initializes a new instance of the ApplicationInsightsClient class.\n * @param options The parameter options\n */\n constructor(options?: ApplicationInsightsClientOptionalParams) {\n super(options);\n }\n\n /**\n * This operation sends a sequence of telemetry events that will be monitored by Azure Monitor.\n * @param body The list of telemetry events to track.\n * @param options The options parameters.\n */\n track(\n body: TelemetryItem[],\n options?: coreHttp.OperationOptions\n ): Promise<ApplicationInsightsClientTrackResponse> {\n const operationOptions: coreHttp.RequestOptionsBase = coreHttp.operationOptionsToRequestOptionsBase(\n options || {}\n );\n return this.sendOperationRequest(\n { body, options: operationOptions },\n trackOperationSpec\n ) as Promise<ApplicationInsightsClientTrackResponse>;\n }\n}\n// Operation Specifications\n\nconst serializer = new coreHttp.Serializer(Mappers, /* isXml */ false);\n\nconst trackOperationSpec: coreHttp.OperationSpec = {\n path: \"/track\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TrackResponse\n },\n 206: {\n bodyMapper: Mappers.TrackResponse\n },\n 400: {\n bodyMapper: Mappers.TrackResponse\n },\n 402: {\n bodyMapper: Mappers.TrackResponse\n },\n 429: {\n bodyMapper: Mappers.TrackResponse\n },\n 500: {\n bodyMapper: Mappers.TrackResponse\n },\n 503: {\n bodyMapper: Mappers.TrackResponse\n }\n },\n requestBody: Parameters.body,\n urlParameters: [Parameters.host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\n"]}
@@ -1,32 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import * as coreHttp from "@azure/core-http";
9
- const packageName = "@azure/monitor-opentelemetry-exporter";
10
- const packageVersion = "1.0.0-beta.2";
11
- export class ApplicationInsightsClientContext extends coreHttp.ServiceClient {
12
- /**
13
- * Initializes a new instance of the ApplicationInsightsClientContext class.
14
- * @param options The parameter options
15
- */
16
- constructor(options) {
17
- // Initializing default values for options
18
- if (!options) {
19
- options = {};
20
- }
21
- if (!options.userAgent) {
22
- const defaultUserAgent = coreHttp.getDefaultUserAgentValue();
23
- options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
24
- }
25
- super(undefined, options);
26
- this.requestContentType = "application/json; charset=utf-8";
27
- this.baseUri = options.endpoint || "{Host}/v2";
28
- // Assigning values to Constant parameters
29
- this.host = options.host || "https://dc.services.visualstudio.com";
30
- }
31
- }
32
- //# sourceMappingURL=applicationInsightsClientContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"applicationInsightsClientContext.js","sourceRoot":"","sources":["../../../src/generated/applicationInsightsClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAG7C,MAAM,WAAW,GAAG,uCAAuC,CAAC;AAC5D,MAAM,cAAc,GAAG,cAAc,CAAC;AAEtC,MAAM,OAAO,gCAAiC,SAAQ,QAAQ,CAAC,aAAa;IAG1E;;;OAGG;IACH,YAAY,OAAiD;QAC3D,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QAED,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE;YACtB,MAAM,gBAAgB,GAAG,QAAQ,CAAC,wBAAwB,EAAE,CAAC;YAC7D,OAAO,CAAC,SAAS,GAAG,GAAG,WAAW,IAAI,cAAc,IAAI,gBAAgB,EAAE,CAAC;SAC5E;QAED,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAE1B,IAAI,CAAC,kBAAkB,GAAG,iCAAiC,CAAC;QAE5D,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,QAAQ,IAAI,WAAW,CAAC;QAE/C,0CAA0C;QAC1C,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,sCAAsC,CAAC;IACrE,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreHttp from \"@azure/core-http\";\nimport { ApplicationInsightsClientOptionalParams } from \"./models\";\n\nconst packageName = \"@azure/monitor-opentelemetry-exporter\";\nconst packageVersion = \"1.0.0-beta.2\";\n\nexport class ApplicationInsightsClientContext extends coreHttp.ServiceClient {\n host: string;\n\n /**\n * Initializes a new instance of the ApplicationInsightsClientContext class.\n * @param options The parameter options\n */\n constructor(options?: ApplicationInsightsClientOptionalParams) {\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n\n if (!options.userAgent) {\n const defaultUserAgent = coreHttp.getDefaultUserAgentValue();\n options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;\n }\n\n super(undefined, options);\n\n this.requestContentType = \"application/json; charset=utf-8\";\n\n this.baseUri = options.endpoint || \"{Host}/v2\";\n\n // Assigning values to Constant parameters\n this.host = options.host || \"https://dc.services.visualstudio.com\";\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./models\";\nexport { ApplicationInsightsClient } from \"./applicationInsightsClient\";\nexport { ApplicationInsightsClientContext } from \"./applicationInsightsClientContext\";\n"]}
@@ -1,9 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- export {};
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreHttp from \"@azure/core-http\";\n\n/**\n * System variables for a telemetry item.\n */\nexport interface TelemetryItem {\n /**\n * 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.\n */\n version?: number;\n /**\n * Type name of telemetry data item.\n */\n name: string;\n /**\n * 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.\n */\n time: Date;\n /**\n * Sampling rate used in application. This telemetry item represents 1 / sampleRate actual telemetry items.\n */\n sampleRate?: number;\n /**\n * Sequence field used to track absolute order of uploaded events.\n */\n sequence?: string;\n /**\n * The instrumentation key of the Application Insights resource.\n */\n instrumentationKey?: string;\n /**\n * Key/value collection of context properties. See ContextTagKeys for information on available properties.\n */\n tags?: { [propertyName: string]: string };\n /**\n * Telemetry data item.\n */\n data?: MonitorBase;\n}\n\n/**\n * Data struct to contain only C section with custom fields.\n */\nexport interface MonitorBase {\n /**\n * Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.\n */\n baseType?: string;\n /**\n * The data payload for the telemetry request\n */\n baseData?: MonitorDomain;\n}\n\n/**\n * The abstract common base of all domains.\n */\nexport interface MonitorDomain {\n /**\n * Describes unknown properties. The value of an unknown property can be of \"any\" type.\n */\n [property: string]: any;\n /**\n * Schema version\n */\n version: number;\n}\n\n/**\n * Response containing the status of each telemetry item.\n */\nexport interface TrackResponse {\n /**\n * The number of items received.\n */\n itemsReceived?: number;\n /**\n * The number of items accepted.\n */\n itemsAccepted?: number;\n /**\n * An array of error detail objects.\n */\n errors?: TelemetryErrorDetails[];\n}\n\n/**\n * The error details\n */\nexport interface TelemetryErrorDetails {\n /**\n * The index in the original payload of the item.\n */\n index?: number;\n /**\n * The item specific [HTTP Response status code](#Response Status Codes).\n */\n statusCode?: number;\n /**\n * The error message.\n */\n message?: string;\n}\n\n/**\n * Metric data single measurement.\n */\nexport interface MetricDataPoint {\n /**\n * Namespace of the metric.\n */\n namespace?: string;\n /**\n * Name of the metric.\n */\n name: string;\n /**\n * Metric type. Single measurement or the aggregated value.\n */\n dataPointType?: DataPointType;\n /**\n * Single value for measurement. Sum of individual measurements for the aggregation.\n */\n value: number;\n /**\n * Metric weight of the aggregated metric. Should not be set for a measurement.\n */\n count?: number;\n /**\n * Minimum value of the aggregated metric. Should not be set for a measurement.\n */\n min?: number;\n /**\n * Maximum value of the aggregated metric. Should not be set for a measurement.\n */\n max?: number;\n /**\n * Standard deviation of the aggregated metric. Should not be set for a measurement.\n */\n stdDev?: number;\n}\n\n/**\n * Exception details of the exception in a chain.\n */\nexport interface TelemetryExceptionDetails {\n /**\n * In case exception is nested (outer exception contains inner one), the id and outerId properties are used to represent the nesting.\n */\n id?: number;\n /**\n * The value of outerId is a reference to an element in ExceptionDetails that represents the outer exception\n */\n outerId?: number;\n /**\n * Exception type name.\n */\n typeName?: string;\n /**\n * Exception message.\n */\n message: string;\n /**\n * Indicates if full exception stack is provided in the exception. The stack may be trimmed, such as in the case of a StackOverflow exception.\n */\n hasFullStack?: boolean;\n /**\n * Text describing the stack. Either stack or parsedStack should have a value.\n */\n stack?: string;\n /**\n * List of stack frames. Either stack or parsedStack should have a value.\n */\n parsedStack?: StackFrame[];\n}\n\n/**\n * Stack frame information.\n */\nexport interface StackFrame {\n level: number;\n /**\n * Method name.\n */\n method: string;\n /**\n * Name of the assembly (dll, jar, etc.) containing this function.\n */\n assembly?: string;\n /**\n * File name or URL of the method implementation.\n */\n fileName?: string;\n /**\n * Line number of the code implementation.\n */\n line?: number;\n}\n\n/**\n * Instances of AvailabilityData represent the result of executing an availability test.\n */\nexport type AvailabilityData = MonitorDomain & {\n /**\n * Identifier of a test run. Use it to correlate steps of test run and telemetry generated by the service.\n */\n id: string;\n /**\n * Name of the test that these availability results represent.\n */\n name: string;\n /**\n * Duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.\n */\n duration: string;\n /**\n * Success flag.\n */\n success: boolean;\n /**\n * Name of the location where the test was run from.\n */\n runLocation?: string;\n /**\n * Diagnostic message for the result.\n */\n message?: string;\n /**\n * Collection of custom properties.\n */\n properties?: { [propertyName: string]: string };\n /**\n * Collection of custom measurements.\n */\n measurements?: { [propertyName: string]: number };\n};\n\n/**\n * 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.\n */\nexport type TelemetryEventData = MonitorDomain & {\n /**\n * Event name. Keep it low cardinality to allow proper grouping and useful metrics.\n */\n name: string;\n /**\n * Collection of custom properties.\n */\n properties?: { [propertyName: string]: string };\n /**\n * Collection of custom measurements.\n */\n measurements?: { [propertyName: string]: number };\n};\n\n/**\n * An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application.\n */\nexport type TelemetryExceptionData = MonitorDomain & {\n /**\n * Exception chain - list of inner exceptions.\n */\n exceptions: TelemetryExceptionDetails[];\n /**\n * Severity level. Mostly used to indicate exception severity level when it is reported by logging library.\n */\n severityLevel?: SeverityLevel;\n /**\n * Identifier of where the exception was thrown in code. Used for exceptions grouping. Typically a combination of exception type and a function from the call stack.\n */\n problemId?: string;\n /**\n * Collection of custom properties.\n */\n properties?: { [propertyName: string]: string };\n /**\n * Collection of custom measurements.\n */\n measurements?: { [propertyName: string]: number };\n};\n\n/**\n * Instances of Message represent printf-like trace statements that are text-searched. Log4Net, NLog and other text-based log file entries are translated into instances of this type. The message does not have measurements.\n */\nexport type MessageData = MonitorDomain & {\n /**\n * Trace message\n */\n message: string;\n /**\n * Trace severity level.\n */\n severityLevel?: SeverityLevel;\n /**\n * Collection of custom properties.\n */\n properties?: { [propertyName: string]: string };\n /**\n * Collection of custom measurements.\n */\n measurements?: { [propertyName: string]: number };\n};\n\n/**\n * An instance of the Metric item is a list of measurements (single data points) and/or aggregations.\n */\nexport type MetricsData = MonitorDomain & {\n /**\n * 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.\n */\n metrics: MetricDataPoint[];\n /**\n * Collection of custom properties.\n */\n properties?: { [propertyName: string]: string };\n};\n\n/**\n * An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.\n */\nexport type PageViewData = MonitorDomain & {\n /**\n * Identifier of a page view instance. Used for correlation between page view and other telemetry items.\n */\n id: string;\n /**\n * Event name. Keep it low cardinality to allow proper grouping and useful metrics.\n */\n name: string;\n /**\n * Request URL with all query string parameters\n */\n url?: string;\n /**\n * 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.\n */\n duration?: string;\n /**\n * Fully qualified page URI or URL of the referring page; if unknown, leave blank\n */\n referredUri?: string;\n /**\n * Collection of custom properties.\n */\n properties?: { [propertyName: string]: string };\n /**\n * Collection of custom measurements.\n */\n measurements?: { [propertyName: string]: number };\n};\n\n/**\n * 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.\n */\nexport type PageViewPerfData = MonitorDomain & {\n /**\n * Identifier of a page view instance. Used for correlation between page view and other telemetry items.\n */\n id: string;\n /**\n * Event name. Keep it low cardinality to allow proper grouping and useful metrics.\n */\n name: string;\n /**\n * Request URL with all query string parameters\n */\n url?: string;\n /**\n * 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.\n */\n duration?: string;\n /**\n * Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff\n */\n perfTotal?: string;\n /**\n * Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff\n */\n networkConnect?: string;\n /**\n * Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff\n */\n sentRequest?: string;\n /**\n * Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff\n */\n receivedResponse?: string;\n /**\n * DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff\n */\n domProcessing?: string;\n /**\n * Collection of custom properties.\n */\n properties?: { [propertyName: string]: string };\n /**\n * Collection of custom measurements.\n */\n measurements?: { [propertyName: string]: number };\n};\n\n/**\n * An instance of Remote Dependency represents an interaction of the monitored component with a remote component/service like SQL or an HTTP endpoint.\n */\nexport type RemoteDependencyData = MonitorDomain & {\n /**\n * Identifier of a dependency call instance. Used for correlation with the request telemetry item corresponding to this dependency call.\n */\n id?: string;\n /**\n * Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.\n */\n name: string;\n /**\n * Result code of a dependency call. Examples are SQL error code and HTTP status code.\n */\n resultCode?: string;\n /**\n * Command initiated by this dependency call. Examples are SQL statement and HTTP URL with all query parameters.\n */\n data?: string;\n /**\n * 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.\n */\n type?: string;\n /**\n * Target site of a dependency call. Examples are server name, host address.\n */\n target?: string;\n /**\n * Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.\n */\n duration: string;\n /**\n * Indication of successful or unsuccessful call.\n */\n success?: boolean;\n /**\n * Collection of custom properties.\n */\n properties?: { [propertyName: string]: string };\n /**\n * Collection of custom measurements.\n */\n measurements?: { [propertyName: string]: number };\n};\n\n/**\n * An instance of Request represents completion of an external request to the application to do work and contains a summary of that request execution and the results.\n */\nexport type RequestData = MonitorDomain & {\n /**\n * Identifier of a request call instance. Used for correlation between request and other telemetry items.\n */\n id: string;\n /**\n * Name of the request. Represents code path taken to process request. Low cardinality value to allow better grouping of requests. For HTTP requests it represents the HTTP method and URL path template like 'GET /values/{id}'.\n */\n name?: string;\n /**\n * Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.\n */\n duration: string;\n /**\n * Indication of successful or unsuccessful call.\n */\n success: boolean;\n /**\n * Result of a request execution. HTTP status code for HTTP requests.\n */\n responseCode: string;\n /**\n * Source of the request. Examples are the instrumentation key of the caller or the ip address of the caller.\n */\n source?: string;\n /**\n * Request URL with all query string parameters.\n */\n url?: string;\n /**\n * Collection of custom properties.\n */\n properties?: { [propertyName: string]: string };\n /**\n * Collection of custom measurements.\n */\n measurements?: { [propertyName: string]: number };\n};\n/**\n * Defines values for DataPointType.\n */\nexport type DataPointType = \"Measurement\" | \"Aggregation\" | string;\n/**\n * Defines values for SeverityLevel.\n */\nexport type SeverityLevel =\n | \"Verbose\"\n | \"Information\"\n | \"Warning\"\n | \"Error\"\n | \"Critical\"\n | string;\n/**\n * Defines values for ContextTagKeys.\n */\nexport type ContextTagKeys =\n | \"ai.application.ver\"\n | \"ai.device.id\"\n | \"ai.device.locale\"\n | \"ai.device.model\"\n | \"ai.device.oemName\"\n | \"ai.device.osVersion\"\n | \"ai.device.type\"\n | \"ai.location.ip\"\n | \"ai.location.country\"\n | \"ai.location.province\"\n | \"ai.location.city\"\n | \"ai.operation.id\"\n | \"ai.operation.name\"\n | \"ai.operation.parentId\"\n | \"ai.operation.syntheticSource\"\n | \"ai.operation.correlationVector\"\n | \"ai.session.id\"\n | \"ai.session.isFirst\"\n | \"ai.user.accountId\"\n | \"ai.user.id\"\n | \"ai.user.authUserId\"\n | \"ai.cloud.role\"\n | \"ai.cloud.roleVer\"\n | \"ai.cloud.roleInstance\"\n | \"ai.cloud.location\"\n | \"ai.internal.sdkVersion\"\n | \"ai.internal.agentVersion\"\n | \"ai.internal.nodeName\"\n | string;\n\n/**\n * Contains response data for the track operation.\n */\nexport type ApplicationInsightsClientTrackResponse = TrackResponse & {\n /**\n * The underlying HTTP response.\n */\n _response: coreHttp.HttpResponse & {\n /**\n * The response body as text (string format)\n */\n bodyAsText: string;\n\n /**\n * The response body as parsed JSON or XML\n */\n parsedBody: TrackResponse;\n };\n};\n\n/**\n * Optional parameters.\n */\nexport interface ApplicationInsightsClientOptionalParams\n extends coreHttp.ServiceClientOptions {\n /**\n * Breeze endpoint: https://dc.services.visualstudio.com\n */\n host?: string;\n /**\n * Overrides client endpoint.\n */\n endpoint?: string;\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../src/generated/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,aAAa,GAA6B;IACrD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,eAAe;QAC1B,eAAe,EAAE;YACf,OAAO,EAAE;gBACP,YAAY,EAAE,CAAC;gBACf,cAAc,EAAE,KAAK;gBACrB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;iBACjB;aACF;YACD,UAAU,EAAE;gBACV,YAAY,EAAE,GAAG;gBACjB,cAAc,EAAE,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,QAAQ,EAAE;gBACR,WAAW,EAAE;oBACX,SAAS,EAAE,EAAE;iBACd;gBACD,cAAc,EAAE,KAAK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,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,SAAS;iBAChB;aACF,EACD,YAAY,EAAE;gBACZ,WAAW,EAAE;oBACX,SAAS,EAAE,IAAI;iBAChB;gBACD,cAAc,EAAE,cAAc;gBAC9B,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF,EACD,MAAM,EAAE;gBACN,WAAW,EAAE;oBACX,SAAS,EAAE,IAAI;iBAChB;gBACD,cAAc,EAAE,QAAQ;gBACxB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF,EACD,GAAG,EAAE;gBACH,WAAW,EAAE;oBACX,SAAS,EAAE,IAAI;iBAChB;gBACD,cAAc,EAAE,KAAK;gBACrB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF,EACD,UAAU,EAAE;gBACV,cAAc,EAAE,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,WAAW,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE;iBACtE;aACF,EACD,YAAY,EAAE;gBACZ,cAAc,EAAE,cAAc;gBAC9B,IAAI,EAAE;oBACJ,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;iBACpC;aACF,GACF;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreHttp from \"@azure/core-http\";\n\nexport const TelemetryItem: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TelemetryItem\",\n modelProperties: {\n version: {\n defaultValue: 1,\n serializedName: \"ver\",\n type: {\n name: \"Number\"\n }\n },\n name: {\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n time: {\n serializedName: \"time\",\n required: true,\n type: {\n name: \"DateTime\"\n }\n },\n sampleRate: {\n defaultValue: 100,\n serializedName: \"sampleRate\",\n type: {\n name: \"Number\"\n }\n },\n sequence: {\n constraints: {\n MaxLength: 64\n },\n serializedName: \"seq\",\n type: {\n name: \"String\"\n }\n },\n instrumentationKey: {\n serializedName: \"iKey\",\n type: {\n name: \"String\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n data: {\n serializedName: \"data\",\n type: {\n name: \"Composite\",\n className: \"MonitorBase\"\n }\n }\n }\n }\n};\n\nexport const MonitorBase: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MonitorBase\",\n modelProperties: {\n baseType: {\n serializedName: \"baseType\",\n type: {\n name: \"String\"\n }\n },\n baseData: {\n serializedName: \"baseData\",\n type: {\n name: \"Composite\",\n className: \"MonitorDomain\"\n }\n }\n }\n }\n};\n\nexport const MonitorDomain: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MonitorDomain\",\n additionalProperties: { type: { name: \"Object\" } },\n modelProperties: {\n version: {\n defaultValue: 2,\n serializedName: \"ver\",\n required: true,\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const TrackResponse: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TrackResponse\",\n modelProperties: {\n itemsReceived: {\n serializedName: \"itemsReceived\",\n type: {\n name: \"Number\"\n }\n },\n itemsAccepted: {\n serializedName: \"itemsAccepted\",\n type: {\n name: \"Number\"\n }\n },\n errors: {\n serializedName: \"errors\",\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"TelemetryErrorDetails\" }\n }\n }\n }\n }\n }\n};\n\nexport const TelemetryErrorDetails: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TelemetryErrorDetails\",\n modelProperties: {\n index: {\n serializedName: \"index\",\n type: {\n name: \"Number\"\n }\n },\n statusCode: {\n serializedName: \"statusCode\",\n type: {\n name: \"Number\"\n }\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const MetricDataPoint: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetricDataPoint\",\n modelProperties: {\n namespace: {\n constraints: {\n MaxLength: 256\n },\n serializedName: \"ns\",\n type: {\n name: \"String\"\n }\n },\n name: {\n constraints: {\n MaxLength: 1024\n },\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n dataPointType: {\n serializedName: \"kind\",\n type: {\n name: \"String\"\n }\n },\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Number\"\n }\n },\n count: {\n serializedName: \"count\",\n type: {\n name: \"Number\"\n }\n },\n min: {\n serializedName: \"min\",\n type: {\n name: \"Number\"\n }\n },\n max: {\n serializedName: \"max\",\n type: {\n name: \"Number\"\n }\n },\n stdDev: {\n serializedName: \"stdDev\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const TelemetryExceptionDetails: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TelemetryExceptionDetails\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n type: {\n name: \"Number\"\n }\n },\n outerId: {\n serializedName: \"outerId\",\n type: {\n name: \"Number\"\n }\n },\n typeName: {\n constraints: {\n MaxLength: 1024\n },\n serializedName: \"typeName\",\n type: {\n name: \"String\"\n }\n },\n message: {\n constraints: {\n MaxLength: 32768\n },\n serializedName: \"message\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n hasFullStack: {\n defaultValue: true,\n serializedName: \"hasFullStack\",\n type: {\n name: \"Boolean\"\n }\n },\n stack: {\n constraints: {\n MaxLength: 32768\n },\n serializedName: \"stack\",\n type: {\n name: \"String\"\n }\n },\n parsedStack: {\n serializedName: \"parsedStack\",\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"StackFrame\" } }\n }\n }\n }\n }\n};\n\nexport const StackFrame: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"StackFrame\",\n modelProperties: {\n level: {\n serializedName: \"level\",\n required: true,\n type: {\n name: \"Number\"\n }\n },\n method: {\n constraints: {\n MaxLength: 1024\n },\n serializedName: \"method\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n assembly: {\n constraints: {\n MaxLength: 1024\n },\n serializedName: \"assembly\",\n type: {\n name: \"String\"\n }\n },\n fileName: {\n constraints: {\n MaxLength: 1024\n },\n serializedName: \"fileName\",\n type: {\n name: \"String\"\n }\n },\n line: {\n serializedName: \"line\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const AvailabilityData: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"AvailabilityData\",\n additionalProperties: { type: { name: \"Object\" } },\n modelProperties: {\n ...MonitorDomain.type.modelProperties,\n id: {\n constraints: {\n MaxLength: 512\n },\n serializedName: \"id\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n constraints: {\n MaxLength: 1024\n },\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n duration: {\n serializedName: \"duration\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n success: {\n serializedName: \"success\",\n required: true,\n type: {\n name: \"Boolean\"\n }\n },\n runLocation: {\n constraints: {\n MaxLength: 1024\n },\n serializedName: \"runLocation\",\n type: {\n name: \"String\"\n }\n },\n message: {\n constraints: {\n MaxLength: 8192\n },\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" }, constraints: { MaxLength: 8192 } }\n }\n },\n measurements: {\n serializedName: \"measurements\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"Number\" } }\n }\n }\n }\n }\n};\n\nexport const TelemetryEventData: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TelemetryEventData\",\n additionalProperties: { type: { name: \"Object\" } },\n modelProperties: {\n ...MonitorDomain.type.modelProperties,\n name: {\n constraints: {\n MaxLength: 512\n },\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" }, constraints: { MaxLength: 8192 } }\n }\n },\n measurements: {\n serializedName: \"measurements\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"Number\" } }\n }\n }\n }\n }\n};\n\nexport const TelemetryExceptionData: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TelemetryExceptionData\",\n additionalProperties: { type: { name: \"Object\" } },\n modelProperties: {\n ...MonitorDomain.type.modelProperties,\n exceptions: {\n serializedName: \"exceptions\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"TelemetryExceptionDetails\" }\n }\n }\n },\n severityLevel: {\n serializedName: \"severityLevel\",\n type: {\n name: \"String\"\n }\n },\n problemId: {\n constraints: {\n MaxLength: 1024\n },\n serializedName: \"problemId\",\n type: {\n name: \"String\"\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" }, constraints: { MaxLength: 8192 } }\n }\n },\n measurements: {\n serializedName: \"measurements\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"Number\" } }\n }\n }\n }\n }\n};\n\nexport const MessageData: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MessageData\",\n additionalProperties: { type: { name: \"Object\" } },\n modelProperties: {\n ...MonitorDomain.type.modelProperties,\n message: {\n constraints: {\n MaxLength: 32768\n },\n serializedName: \"message\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n severityLevel: {\n serializedName: \"severityLevel\",\n type: {\n name: \"String\"\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" }, constraints: { MaxLength: 8192 } }\n }\n },\n measurements: {\n serializedName: \"measurements\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"Number\" } }\n }\n }\n }\n }\n};\n\nexport const MetricsData: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetricsData\",\n additionalProperties: { type: { name: \"Object\" } },\n modelProperties: {\n ...MonitorDomain.type.modelProperties,\n metrics: {\n serializedName: \"metrics\",\n required: true,\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"MetricDataPoint\" } }\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" }, constraints: { MaxLength: 8192 } }\n }\n }\n }\n }\n};\n\nexport const PageViewData: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"PageViewData\",\n additionalProperties: { type: { name: \"Object\" } },\n modelProperties: {\n ...MonitorDomain.type.modelProperties,\n id: {\n constraints: {\n MaxLength: 512\n },\n serializedName: \"id\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n constraints: {\n MaxLength: 1024\n },\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n url: {\n constraints: {\n MaxLength: 2048\n },\n serializedName: \"url\",\n type: {\n name: \"String\"\n }\n },\n duration: {\n serializedName: \"duration\",\n type: {\n name: \"String\"\n }\n },\n referredUri: {\n constraints: {\n MaxLength: 2048\n },\n serializedName: \"referredUri\",\n type: {\n name: \"String\"\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" }, constraints: { MaxLength: 8192 } }\n }\n },\n measurements: {\n serializedName: \"measurements\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"Number\" } }\n }\n }\n }\n }\n};\n\nexport const PageViewPerfData: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"PageViewPerfData\",\n additionalProperties: { type: { name: \"Object\" } },\n modelProperties: {\n ...MonitorDomain.type.modelProperties,\n id: {\n constraints: {\n MaxLength: 512\n },\n serializedName: \"id\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n constraints: {\n MaxLength: 1024\n },\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n url: {\n constraints: {\n MaxLength: 2048\n },\n serializedName: \"url\",\n type: {\n name: \"String\"\n }\n },\n duration: {\n serializedName: \"duration\",\n type: {\n name: \"String\"\n }\n },\n perfTotal: {\n serializedName: \"perfTotal\",\n type: {\n name: \"String\"\n }\n },\n networkConnect: {\n serializedName: \"networkConnect\",\n type: {\n name: \"String\"\n }\n },\n sentRequest: {\n serializedName: \"sentRequest\",\n type: {\n name: \"String\"\n }\n },\n receivedResponse: {\n serializedName: \"receivedResponse\",\n type: {\n name: \"String\"\n }\n },\n domProcessing: {\n serializedName: \"domProcessing\",\n type: {\n name: \"String\"\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" }, constraints: { MaxLength: 8192 } }\n }\n },\n measurements: {\n serializedName: \"measurements\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"Number\" } }\n }\n }\n }\n }\n};\n\nexport const RemoteDependencyData: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"RemoteDependencyData\",\n additionalProperties: { type: { name: \"Object\" } },\n modelProperties: {\n ...MonitorDomain.type.modelProperties,\n id: {\n constraints: {\n MaxLength: 512\n },\n serializedName: \"id\",\n type: {\n name: \"String\"\n }\n },\n name: {\n constraints: {\n MaxLength: 1024\n },\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n resultCode: {\n constraints: {\n MaxLength: 1024\n },\n serializedName: \"resultCode\",\n type: {\n name: \"String\"\n }\n },\n data: {\n constraints: {\n MaxLength: 8192\n },\n serializedName: \"data\",\n type: {\n name: \"String\"\n }\n },\n type: {\n constraints: {\n MaxLength: 1024\n },\n serializedName: \"type\",\n type: {\n name: \"String\"\n }\n },\n target: {\n constraints: {\n MaxLength: 1024\n },\n serializedName: \"target\",\n type: {\n name: \"String\"\n }\n },\n duration: {\n serializedName: \"duration\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n success: {\n defaultValue: true,\n serializedName: \"success\",\n type: {\n name: \"Boolean\"\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" }, constraints: { MaxLength: 8192 } }\n }\n },\n measurements: {\n serializedName: \"measurements\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"Number\" } }\n }\n }\n }\n }\n};\n\nexport const RequestData: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"RequestData\",\n additionalProperties: { type: { name: \"Object\" } },\n modelProperties: {\n ...MonitorDomain.type.modelProperties,\n id: {\n constraints: {\n MaxLength: 512\n },\n serializedName: \"id\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n constraints: {\n MaxLength: 1024\n },\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n duration: {\n serializedName: \"duration\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n success: {\n defaultValue: true,\n serializedName: \"success\",\n required: true,\n type: {\n name: \"Boolean\"\n }\n },\n responseCode: {\n constraints: {\n MaxLength: 1024\n },\n serializedName: \"responseCode\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n source: {\n constraints: {\n MaxLength: 1024\n },\n serializedName: \"source\",\n type: {\n name: \"String\"\n }\n },\n url: {\n constraints: {\n MaxLength: 2048\n },\n serializedName: \"url\",\n type: {\n name: \"String\"\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" }, constraints: { MaxLength: 8192 } }\n }\n },\n measurements: {\n serializedName: \"measurements\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"Number\" } }\n }\n }\n }\n }\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../src/generated/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,aAAa,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACzC,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,cAAc;QAC9B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAuB;IACtC,aAAa,EAAE,MAAM;IACrB,MAAM,EAAE;QACN,cAAc,EAAE,MAAM;QACtB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,EAAE;SACrE;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAA0B;IACzC,aAAa,EAAE,MAAM;IACrB,MAAM,EAAE;QACN,cAAc,EAAE,MAAM;QACtB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { OperationParameter, OperationURLParameter } from \"@azure/core-http\";\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const body: OperationParameter = {\n parameterPath: \"body\",\n mapper: {\n serializedName: \"body\",\n required: true,\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"TelemetryItem\" } }\n }\n }\n};\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const host: OperationURLParameter = {\n parameterPath: \"host\",\n mapper: {\n serializedName: \"Host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n"]}
@@ -1,5 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- export { AzureMonitorTraceExporter } from "./export/trace";
4
- export { ServiceApiVersion } from "./Declarations/Constants";
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport { AzureMonitorTraceExporter } from \"./export/trace\";\nexport { AzureExporterConfig } from \"./config\";\nexport { ServiceApiVersion } from \"./Declarations/Constants\";\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platform/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,gFAAgF;AAChF,uEAAuE;AACvE,wBAAwB;AACxB,cAAc,UAAU,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n// Use the node platform by default. The \"browser\" field of package.json is used\n// to override this file to use `./browser/index.ts` when packaged with\n// webpack, Rollup, etc.\nexport * from \"./nodejs\";\n"]}
@@ -1,8 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- export const SDK_INFO = {
4
- NAME: "opentelemetry",
5
- RUNTIME: "node",
6
- LANGUAGE: "nodejs"
7
- };
8
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/platform/nodejs/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,MAAM;IACf,QAAQ,EAAE,QAAQ;CACnB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport const SDK_INFO = {\n NAME: \"opentelemetry\",\n RUNTIME: \"node\",\n LANGUAGE: \"nodejs\"\n};\n"]}