autotel 4.3.0 → 6.0.0

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 (384) hide show
  1. package/README.md +125 -103
  2. package/dist/analysis.cjs +87 -0
  3. package/dist/analysis.cjs.map +1 -0
  4. package/dist/analysis.d.cts +87 -0
  5. package/dist/analysis.d.cts.map +1 -0
  6. package/dist/analysis.d.ts +87 -0
  7. package/dist/analysis.d.ts.map +1 -0
  8. package/dist/analysis.js +85 -0
  9. package/dist/analysis.js.map +1 -0
  10. package/dist/{attribute-redacting-processor-DtTS9xxh.d.ts → attribute-redacting-processor-Pk7lAzWd.d.cts} +13 -8
  11. package/dist/attribute-redacting-processor-Pk7lAzWd.d.cts.map +1 -0
  12. package/dist/{attribute-redacting-processor-DtTS9xxh.d.cts → attribute-redacting-processor-Pk7lAzWd.d.ts} +13 -8
  13. package/dist/attribute-redacting-processor-Pk7lAzWd.d.ts.map +1 -0
  14. package/dist/attribute-redacting-processor.cjs +4 -4
  15. package/dist/attribute-redacting-processor.cjs.map +1 -1
  16. package/dist/attribute-redacting-processor.d.cts +1 -1
  17. package/dist/attribute-redacting-processor.d.ts +1 -1
  18. package/dist/attribute-redacting-processor.js +4 -4
  19. package/dist/attribute-redacting-processor.js.map +1 -1
  20. package/dist/attributes.d.cts +1 -1
  21. package/dist/attributes.d.ts +1 -1
  22. package/dist/auto.cjs +1 -1
  23. package/dist/auto.cjs.map +1 -1
  24. package/dist/auto.d.cts +1 -1
  25. package/dist/auto.d.ts +1 -1
  26. package/dist/auto.js +1 -1
  27. package/dist/auto.js.map +1 -1
  28. package/dist/business-baggage.d.cts +2 -3
  29. package/dist/business-baggage.d.cts.map +1 -1
  30. package/dist/business-baggage.d.ts +2 -3
  31. package/dist/business-baggage.d.ts.map +1 -1
  32. package/dist/{canonical-log-line-processor-xvjMgtpF.d.cts → canonical-log-line-processor-B4WgG-VS.d.cts} +2 -3
  33. package/dist/canonical-log-line-processor-B4WgG-VS.d.cts.map +1 -0
  34. package/dist/{canonical-log-line-processor-BcRuAdRk.d.ts → canonical-log-line-processor-CL_J7gb5.d.ts} +2 -3
  35. package/dist/canonical-log-line-processor-CL_J7gb5.d.ts.map +1 -0
  36. package/dist/{canonical-log-line-processor-CcrDi6TO.cjs → canonical-log-line-processor-DOjb6Kxy.cjs} +5 -5
  37. package/dist/canonical-log-line-processor-DOjb6Kxy.cjs.map +1 -0
  38. package/dist/{canonical-log-line-processor-FLezvFCB.js → canonical-log-line-processor-mKABvGP0.js} +5 -5
  39. package/dist/canonical-log-line-processor-mKABvGP0.js.map +1 -0
  40. package/dist/config.d.cts +12 -7
  41. package/dist/config.d.cts.map +1 -1
  42. package/dist/config.d.ts +12 -7
  43. package/dist/config.d.ts.map +1 -1
  44. package/dist/correlation-id.cjs +9 -9
  45. package/dist/correlation-id.d.cts +0 -1
  46. package/dist/correlation-id.d.cts.map +1 -1
  47. package/dist/correlation-id.d.ts +0 -1
  48. package/dist/correlation-id.d.ts.map +1 -1
  49. package/dist/correlation-id.js +1 -1
  50. package/dist/db.d.cts.map +1 -1
  51. package/dist/db.d.ts.map +1 -1
  52. package/dist/decorators.cjs +2 -2
  53. package/dist/decorators.cjs.map +1 -1
  54. package/dist/decorators.d.cts +1 -2
  55. package/dist/decorators.d.cts.map +1 -1
  56. package/dist/decorators.d.ts +1 -2
  57. package/dist/decorators.d.ts.map +1 -1
  58. package/dist/decorators.js +1 -1
  59. package/dist/decorators.js.map +1 -1
  60. package/dist/{define-event-CreknLm3.d.ts → define-event-B2z1SBe7.d.ts} +2 -3
  61. package/dist/define-event-B2z1SBe7.d.ts.map +1 -0
  62. package/dist/{define-event-HZRizPwz.d.cts → define-event-CGG048HE.d.cts} +2 -3
  63. package/dist/define-event-CGG048HE.d.cts.map +1 -0
  64. package/dist/diagnostics.cjs +10 -1
  65. package/dist/diagnostics.cjs.map +1 -1
  66. package/dist/diagnostics.d.cts +0 -1
  67. package/dist/diagnostics.d.cts.map +1 -1
  68. package/dist/diagnostics.d.ts +0 -1
  69. package/dist/diagnostics.d.ts.map +1 -1
  70. package/dist/diagnostics.js +10 -1
  71. package/dist/diagnostics.js.map +1 -1
  72. package/dist/drain-pipeline.d.cts +12 -5
  73. package/dist/drain-pipeline.d.cts.map +1 -1
  74. package/dist/drain-pipeline.d.ts +12 -5
  75. package/dist/drain-pipeline.d.ts.map +1 -1
  76. package/dist/enrichers.d.cts.map +1 -1
  77. package/dist/enrichers.d.ts.map +1 -1
  78. package/dist/{event-subscriber-D1XLkPzi.d.ts → event-subscriber-CWh8sTGh.d.cts} +2 -2
  79. package/dist/event-subscriber-CWh8sTGh.d.cts.map +1 -0
  80. package/dist/{event-subscriber-D1XLkPzi.d.cts → event-subscriber-CWh8sTGh.d.ts} +2 -2
  81. package/dist/event-subscriber-CWh8sTGh.d.ts.map +1 -0
  82. package/dist/event-subscriber.d.cts +1 -1
  83. package/dist/event-subscriber.d.ts +1 -1
  84. package/dist/{event-testing-CfFs3to2.d.ts → event-testing-CA2mIx1E.d.ts} +2 -3
  85. package/dist/event-testing-CA2mIx1E.d.ts.map +1 -0
  86. package/dist/{event-testing-BqRnI0z4.d.cts → event-testing-D0qWfqAy.d.cts} +2 -3
  87. package/dist/event-testing-D0qWfqAy.d.cts.map +1 -0
  88. package/dist/event-testing.d.cts +1 -1
  89. package/dist/event-testing.d.ts +1 -1
  90. package/dist/event.cjs +4 -4
  91. package/dist/event.d.cts +3 -4
  92. package/dist/event.d.cts.map +1 -1
  93. package/dist/event.d.ts +3 -4
  94. package/dist/event.d.ts.map +1 -1
  95. package/dist/event.js +1 -1
  96. package/dist/exporters.d.cts +0 -4
  97. package/dist/exporters.d.cts.map +1 -1
  98. package/dist/exporters.d.ts +0 -4
  99. package/dist/exporters.d.ts.map +1 -1
  100. package/dist/{filtering-span-processor-B8R8B7Uk.d.ts → filtering-span-processor-BpDagWNa.d.cts} +1 -2
  101. package/dist/filtering-span-processor-BpDagWNa.d.cts.map +1 -0
  102. package/dist/{filtering-span-processor-B8R8B7Uk.d.cts → filtering-span-processor-BpDagWNa.d.ts} +1 -2
  103. package/dist/filtering-span-processor-BpDagWNa.d.ts.map +1 -0
  104. package/dist/filtering-span-processor.d.cts +1 -1
  105. package/dist/filtering-span-processor.d.ts +1 -1
  106. package/dist/functional-BnDUxnSl.js +838 -0
  107. package/dist/functional-BnDUxnSl.js.map +1 -0
  108. package/dist/functional-DcLBuCPz.cjs +888 -0
  109. package/dist/functional-DcLBuCPz.cjs.map +1 -0
  110. package/dist/functional.cjs +2 -2
  111. package/dist/functional.d.cts +79 -130
  112. package/dist/functional.d.cts.map +1 -1
  113. package/dist/functional.d.ts +79 -130
  114. package/dist/functional.d.ts.map +1 -1
  115. package/dist/functional.js +2 -2
  116. package/dist/http.cjs +6 -6
  117. package/dist/http.cjs.map +1 -1
  118. package/dist/http.d.cts +4 -5
  119. package/dist/http.d.cts.map +1 -1
  120. package/dist/http.d.ts +4 -5
  121. package/dist/http.d.ts.map +1 -1
  122. package/dist/http.js +5 -5
  123. package/dist/http.js.map +1 -1
  124. package/dist/{index-eKuioqT1.d.cts → index-BPcxVucm.d.cts} +2 -3
  125. package/dist/index-BPcxVucm.d.cts.map +1 -0
  126. package/dist/{index-Ck06vlW2.d.ts → index-DolOVX6F.d.ts} +2 -3
  127. package/dist/index-DolOVX6F.d.ts.map +1 -0
  128. package/dist/index.cjs +25 -167
  129. package/dist/index.cjs.map +1 -1
  130. package/dist/index.d.cts +14 -14
  131. package/dist/index.d.cts.map +1 -1
  132. package/dist/index.d.ts +14 -14
  133. package/dist/index.d.ts.map +1 -1
  134. package/dist/index.js +6 -148
  135. package/dist/index.js.map +1 -1
  136. package/dist/init-C3RApHKJ.cjs +3371 -0
  137. package/dist/init-C3RApHKJ.cjs.map +1 -0
  138. package/dist/{init-DSrRmVnz.d.cts → init-D6n2diBy.d.ts} +46 -20
  139. package/dist/init-D6n2diBy.d.ts.map +1 -0
  140. package/dist/init-R-gSEXkJ.js +3190 -0
  141. package/dist/init-R-gSEXkJ.js.map +1 -0
  142. package/dist/{init-B7u-DjxM.d.ts → init-XzXzrarP.d.cts} +46 -20
  143. package/dist/init-XzXzrarP.d.cts.map +1 -0
  144. package/dist/instrumentation.cjs +7 -13
  145. package/dist/instrumentation.cjs.map +1 -1
  146. package/dist/instrumentation.d.cts +0 -1
  147. package/dist/instrumentation.d.cts.map +1 -1
  148. package/dist/instrumentation.d.ts +0 -1
  149. package/dist/instrumentation.d.ts.map +1 -1
  150. package/dist/instrumentation.js +8 -14
  151. package/dist/instrumentation.js.map +1 -1
  152. package/dist/{logger-BauSUhUv.d.ts → logger-CN4xpzMd.d.cts} +1 -2
  153. package/dist/logger-CN4xpzMd.d.cts.map +1 -0
  154. package/dist/{logger-BauSUhUv.d.cts → logger-CN4xpzMd.d.ts} +1 -2
  155. package/dist/logger-CN4xpzMd.d.ts.map +1 -0
  156. package/dist/logger-D3Ej3DII.js.map +1 -1
  157. package/dist/logger-thMPLpOG.cjs.map +1 -1
  158. package/dist/logger.d.cts +1 -1
  159. package/dist/logger.d.ts +1 -1
  160. package/dist/messaging-adapters.cjs.map +1 -1
  161. package/dist/messaging-adapters.d.cts +0 -1
  162. package/dist/messaging-adapters.d.cts.map +1 -1
  163. package/dist/messaging-adapters.d.ts +0 -1
  164. package/dist/messaging-adapters.d.ts.map +1 -1
  165. package/dist/messaging-adapters.js.map +1 -1
  166. package/dist/messaging-testing.d.cts +0 -1
  167. package/dist/messaging-testing.d.cts.map +1 -1
  168. package/dist/messaging-testing.d.ts +0 -1
  169. package/dist/messaging-testing.d.ts.map +1 -1
  170. package/dist/messaging.cjs +27 -10
  171. package/dist/messaging.cjs.map +1 -1
  172. package/dist/messaging.d.cts +6 -7
  173. package/dist/messaging.d.cts.map +1 -1
  174. package/dist/messaging.d.ts +6 -7
  175. package/dist/messaging.d.ts.map +1 -1
  176. package/dist/messaging.js +27 -10
  177. package/dist/messaging.js.map +1 -1
  178. package/dist/metric-helpers.d.cts +0 -1
  179. package/dist/metric-helpers.d.cts.map +1 -1
  180. package/dist/metric-helpers.d.ts +0 -1
  181. package/dist/metric-helpers.d.ts.map +1 -1
  182. package/dist/{metric-testing-DXdK3-Q3.d.ts → metric-testing-CWm6UhaR.d.ts} +2 -3
  183. package/dist/metric-testing-CWm6UhaR.d.ts.map +1 -0
  184. package/dist/{metric-testing-MxvzChDp.d.cts → metric-testing-CpvP3ZIa.d.cts} +2 -3
  185. package/dist/metric-testing-CpvP3ZIa.d.cts.map +1 -0
  186. package/dist/metric-testing.d.cts +1 -1
  187. package/dist/metric-testing.d.ts +1 -1
  188. package/dist/metric.d.cts +3 -4
  189. package/dist/metric.d.cts.map +1 -1
  190. package/dist/metric.d.ts +3 -4
  191. package/dist/metric.d.ts.map +1 -1
  192. package/dist/parse-error.d.cts.map +1 -1
  193. package/dist/parse-error.d.ts.map +1 -1
  194. package/dist/processors.cjs +1 -1
  195. package/dist/processors.d.cts +1 -1
  196. package/dist/processors.d.ts +1 -1
  197. package/dist/processors.js +1 -1
  198. package/dist/register.d.cts +1 -1
  199. package/dist/register.d.ts +1 -1
  200. package/dist/{sampling-DfYhDJij.d.cts → sampling-BR9fkSwx.d.cts} +127 -10
  201. package/dist/sampling-BR9fkSwx.d.cts.map +1 -0
  202. package/dist/{sampling-CR0Va1VB.d.ts → sampling-CP3e7-Yr.d.ts} +127 -10
  203. package/dist/sampling-CP3e7-Yr.d.ts.map +1 -0
  204. package/dist/sampling.cjs +160 -12
  205. package/dist/sampling.cjs.map +1 -1
  206. package/dist/sampling.d.cts +2 -2
  207. package/dist/sampling.d.ts +2 -2
  208. package/dist/sampling.js +157 -13
  209. package/dist/sampling.js.map +1 -1
  210. package/dist/security-schema.d.cts +9 -4
  211. package/dist/security-schema.d.cts.map +1 -1
  212. package/dist/security-schema.d.ts +9 -4
  213. package/dist/security-schema.d.ts.map +1 -1
  214. package/dist/semantic-conventions-FhSxv-bK.d.cts.map +1 -1
  215. package/dist/semantic-conventions-FhSxv-bK.d.ts.map +1 -1
  216. package/dist/semantic-conventions.cjs.map +1 -1
  217. package/dist/semantic-conventions.js.map +1 -1
  218. package/dist/semantic-helpers.cjs +85 -304
  219. package/dist/semantic-helpers.cjs.map +1 -1
  220. package/dist/semantic-helpers.d.cts +21 -12
  221. package/dist/semantic-helpers.d.cts.map +1 -1
  222. package/dist/semantic-helpers.d.ts +21 -12
  223. package/dist/semantic-helpers.d.ts.map +1 -1
  224. package/dist/semantic-helpers.js +85 -304
  225. package/dist/semantic-helpers.js.map +1 -1
  226. package/dist/slo.cjs +225 -0
  227. package/dist/slo.cjs.map +1 -0
  228. package/dist/slo.d.cts +97 -0
  229. package/dist/slo.d.cts.map +1 -0
  230. package/dist/slo.d.ts +97 -0
  231. package/dist/slo.d.ts.map +1 -0
  232. package/dist/slo.js +223 -0
  233. package/dist/slo.js.map +1 -0
  234. package/dist/{span-name-normalizer-8ZOGJuwv.d.ts → span-name-normalizer-CN1-8C76.d.cts} +1 -2
  235. package/dist/span-name-normalizer-CN1-8C76.d.cts.map +1 -0
  236. package/dist/{span-name-normalizer-8ZOGJuwv.d.cts → span-name-normalizer-CN1-8C76.d.ts} +1 -2
  237. package/dist/span-name-normalizer-CN1-8C76.d.ts.map +1 -0
  238. package/dist/span-name-normalizer.cjs.map +1 -1
  239. package/dist/span-name-normalizer.d.cts +1 -1
  240. package/dist/span-name-normalizer.d.ts +1 -1
  241. package/dist/span-name-normalizer.js.map +1 -1
  242. package/dist/tail-sampling-processor.d.cts +0 -1
  243. package/dist/tail-sampling-processor.d.cts.map +1 -1
  244. package/dist/tail-sampling-processor.d.ts +0 -1
  245. package/dist/tail-sampling-processor.d.ts.map +1 -1
  246. package/dist/test-span-collector.cjs.map +1 -1
  247. package/dist/test-span-collector.d.cts +0 -1
  248. package/dist/test-span-collector.d.cts.map +1 -1
  249. package/dist/test-span-collector.d.ts +0 -1
  250. package/dist/test-span-collector.d.ts.map +1 -1
  251. package/dist/test-span-collector.js.map +1 -1
  252. package/dist/testing.cjs +76 -11
  253. package/dist/testing.cjs.map +1 -1
  254. package/dist/testing.d.cts +30 -5
  255. package/dist/testing.d.cts.map +1 -1
  256. package/dist/testing.d.ts +30 -5
  257. package/dist/testing.d.ts.map +1 -1
  258. package/dist/testing.js +73 -12
  259. package/dist/testing.js.map +1 -1
  260. package/dist/{trace-context-Cijqoi6e.d.ts → trace-context-IuyoPyNq.d.cts} +9 -9
  261. package/dist/trace-context-IuyoPyNq.d.cts.map +1 -0
  262. package/dist/{trace-context-Cijqoi6e.d.cts → trace-context-IuyoPyNq.d.ts} +9 -9
  263. package/dist/trace-context-IuyoPyNq.d.ts.map +1 -0
  264. package/dist/trace-factory-validation-BjVAinz6.js +13 -0
  265. package/dist/trace-factory-validation-BjVAinz6.js.map +1 -0
  266. package/dist/trace-factory-validation-Dc8epn87.cjs +19 -0
  267. package/dist/trace-factory-validation-Dc8epn87.cjs.map +1 -0
  268. package/dist/trace-helpers.cjs +7 -7
  269. package/dist/trace-helpers.cjs.map +1 -1
  270. package/dist/trace-helpers.d.cts +6 -7
  271. package/dist/trace-helpers.d.cts.map +1 -1
  272. package/dist/trace-helpers.d.ts +6 -7
  273. package/dist/trace-helpers.d.ts.map +1 -1
  274. package/dist/trace-helpers.js +7 -7
  275. package/dist/trace-helpers.js.map +1 -1
  276. package/dist/tracer-provider.d.cts +0 -1
  277. package/dist/tracer-provider.d.cts.map +1 -1
  278. package/dist/tracer-provider.d.ts +0 -1
  279. package/dist/tracer-provider.d.ts.map +1 -1
  280. package/dist/validate.cjs.map +1 -1
  281. package/dist/validate.d.cts +1 -2
  282. package/dist/validate.d.cts.map +1 -1
  283. package/dist/validate.d.ts +1 -2
  284. package/dist/validate.d.ts.map +1 -1
  285. package/dist/validate.js.map +1 -1
  286. package/dist/validation-attributes.d.cts +17 -8
  287. package/dist/validation-attributes.d.cts.map +1 -1
  288. package/dist/validation-attributes.d.ts +17 -8
  289. package/dist/validation-attributes.d.ts.map +1 -1
  290. package/dist/webhook.cjs +5 -4
  291. package/dist/webhook.cjs.map +1 -1
  292. package/dist/webhook.d.cts +4 -4
  293. package/dist/webhook.d.cts.map +1 -1
  294. package/dist/webhook.d.ts +4 -4
  295. package/dist/webhook.d.ts.map +1 -1
  296. package/dist/webhook.js +5 -4
  297. package/dist/webhook.js.map +1 -1
  298. package/dist/workflow-distributed.cjs +5 -5
  299. package/dist/workflow-distributed.cjs.map +1 -1
  300. package/dist/workflow-distributed.d.cts +25 -15
  301. package/dist/workflow-distributed.d.cts.map +1 -1
  302. package/dist/workflow-distributed.d.ts +25 -15
  303. package/dist/workflow-distributed.d.ts.map +1 -1
  304. package/dist/workflow-distributed.js +5 -5
  305. package/dist/workflow-distributed.js.map +1 -1
  306. package/dist/workflow.cjs +24 -30
  307. package/dist/workflow.cjs.map +1 -1
  308. package/dist/workflow.d.cts +11 -6
  309. package/dist/workflow.d.cts.map +1 -1
  310. package/dist/workflow.d.ts +11 -6
  311. package/dist/workflow.d.ts.map +1 -1
  312. package/dist/workflow.js +24 -30
  313. package/dist/workflow.js.map +1 -1
  314. package/dist/yaml-config.d.cts +2 -3
  315. package/dist/yaml-config.d.cts.map +1 -1
  316. package/dist/yaml-config.d.ts +2 -3
  317. package/dist/yaml-config.d.ts.map +1 -1
  318. package/package.json +24 -16
  319. package/dist/attribute-redacting-processor-DtTS9xxh.d.cts.map +0 -1
  320. package/dist/attribute-redacting-processor-DtTS9xxh.d.ts.map +0 -1
  321. package/dist/canonical-log-line-processor-BcRuAdRk.d.ts.map +0 -1
  322. package/dist/canonical-log-line-processor-CcrDi6TO.cjs.map +0 -1
  323. package/dist/canonical-log-line-processor-FLezvFCB.js.map +0 -1
  324. package/dist/canonical-log-line-processor-xvjMgtpF.d.cts.map +0 -1
  325. package/dist/define-event-CreknLm3.d.ts.map +0 -1
  326. package/dist/define-event-HZRizPwz.d.cts.map +0 -1
  327. package/dist/event-BEm5IJ8U.js +0 -761
  328. package/dist/event-BEm5IJ8U.js.map +0 -1
  329. package/dist/event-rzA1X5h3.cjs +0 -778
  330. package/dist/event-rzA1X5h3.cjs.map +0 -1
  331. package/dist/event-subscriber-D1XLkPzi.d.cts.map +0 -1
  332. package/dist/event-subscriber-D1XLkPzi.d.ts.map +0 -1
  333. package/dist/event-testing-BqRnI0z4.d.cts.map +0 -1
  334. package/dist/event-testing-CfFs3to2.d.ts.map +0 -1
  335. package/dist/filtering-span-processor-B8R8B7Uk.d.cts.map +0 -1
  336. package/dist/filtering-span-processor-B8R8B7Uk.d.ts.map +0 -1
  337. package/dist/functional-CwsPyc4l.cjs +0 -1298
  338. package/dist/functional-CwsPyc4l.cjs.map +0 -1
  339. package/dist/functional-dAYhXQPA.js +0 -1248
  340. package/dist/functional-dAYhXQPA.js.map +0 -1
  341. package/dist/index-Ck06vlW2.d.ts.map +0 -1
  342. package/dist/index-eKuioqT1.d.cts.map +0 -1
  343. package/dist/init-B7u-DjxM.d.ts.map +0 -1
  344. package/dist/init-BvBB45-T.js +0 -1034
  345. package/dist/init-BvBB45-T.js.map +0 -1
  346. package/dist/init-BxJEJ9Tn.cjs +0 -1111
  347. package/dist/init-BxJEJ9Tn.cjs.map +0 -1
  348. package/dist/init-DSrRmVnz.d.cts.map +0 -1
  349. package/dist/logger-BauSUhUv.d.cts.map +0 -1
  350. package/dist/logger-BauSUhUv.d.ts.map +0 -1
  351. package/dist/metric-testing-DXdK3-Q3.d.ts.map +0 -1
  352. package/dist/metric-testing-MxvzChDp.d.cts.map +0 -1
  353. package/dist/operation-context-CKBoA4Qy.js +0 -59
  354. package/dist/operation-context-CKBoA4Qy.js.map +0 -1
  355. package/dist/operation-context-hzKbTKnt.cjs +0 -72
  356. package/dist/operation-context-hzKbTKnt.cjs.map +0 -1
  357. package/dist/sampling-CR0Va1VB.d.ts.map +0 -1
  358. package/dist/sampling-DfYhDJij.d.cts.map +0 -1
  359. package/dist/span-name-normalizer-8ZOGJuwv.d.cts.map +0 -1
  360. package/dist/span-name-normalizer-8ZOGJuwv.d.ts.map +0 -1
  361. package/dist/trace-context-Cijqoi6e.d.cts.map +0 -1
  362. package/dist/trace-context-Cijqoi6e.d.ts.map +0 -1
  363. package/dist/track-D7O7oIZa.js +0 -1115
  364. package/dist/track-D7O7oIZa.js.map +0 -1
  365. package/dist/track-eovhCJ-I.cjs +0 -1218
  366. package/dist/track-eovhCJ-I.cjs.map +0 -1
  367. package/skills/analyze-traces/SKILL.md +0 -180
  368. package/skills/autotel-core/SKILL.md +0 -159
  369. package/skills/autotel-events/SKILL.md +0 -84
  370. package/skills/autotel-frameworks/SKILL.md +0 -90
  371. package/skills/autotel-instrumentation/SKILL.md +0 -145
  372. package/skills/autotel-request-logging/SKILL.md +0 -94
  373. package/skills/autotel-structured-errors/SKILL.md +0 -125
  374. package/skills/build-audit-trails/SKILL.md +0 -460
  375. package/skills/build-audit-trails/references/audit-queries.md +0 -73
  376. package/skills/build-audit-trails/references/framework-wiring.md +0 -196
  377. package/skills/debug-missing-spans/SKILL.md +0 -250
  378. package/skills/migrate-to-autotel/SKILL.md +0 -269
  379. package/skills/review-otel-patterns/SKILL.md +0 -538
  380. package/skills/review-otel-patterns/references/code-review.md +0 -76
  381. package/skills/review-otel-patterns/references/processor-pipeline.md +0 -205
  382. package/skills/review-otel-patterns/references/structured-errors.md +0 -102
  383. package/skills/review-otel-patterns/references/wide-spans.md +0 -85
  384. package/skills/tune-sampling/SKILL.md +0 -215
@@ -1,1218 +0,0 @@
1
- const require_rolldown_runtime = require('./rolldown-runtime-C_NdSu1c.cjs');
2
- const require_config = require('./config.cjs');
3
- const require_init = require('./init-BxJEJ9Tn.cjs');
4
- const require_structured_error = require('./structured-error-CHg7DoIQ.cjs');
5
- let _opentelemetry_api = require("@opentelemetry/api");
6
- let node_async_hooks = require("node:async_hooks");
7
- node_async_hooks = require_rolldown_runtime.__toESM(node_async_hooks, 1);
8
-
9
- //#region src/rate-limiter.ts
10
- /**
11
- * Token bucket rate limiter
12
- *
13
- * Allows bursts up to burstCapacity, then smooths to maxEventsPerSecond.
14
- * Thread-safe for async operations.
15
- */
16
- var TokenBucketRateLimiter = class {
17
- tokens;
18
- maxTokens;
19
- refillRate;
20
- lastRefill;
21
- constructor(config) {
22
- this.maxTokens = config.burstCapacity || config.maxEventsPerSecond * 2;
23
- this.tokens = this.maxTokens;
24
- this.refillRate = config.maxEventsPerSecond / 1e3;
25
- this.lastRefill = Date.now();
26
- }
27
- /**
28
- * Try to consume a token (allow an event)
29
- * Returns true if allowed, false if rate limit exceeded
30
- */
31
- tryConsume(count = 1) {
32
- this.refill();
33
- if (this.tokens >= count) {
34
- this.tokens -= count;
35
- return true;
36
- }
37
- return false;
38
- }
39
- /**
40
- * Wait until a token is available (async rate limiting)
41
- * Returns a promise that resolves when the event can be processed
42
- */
43
- async waitForToken(count = 1) {
44
- this.refill();
45
- if (this.tokens >= count) {
46
- this.tokens -= count;
47
- return;
48
- }
49
- const tokensNeeded = count - this.tokens;
50
- const waitMs = Math.ceil(tokensNeeded / this.refillRate);
51
- await new Promise((resolve) => setTimeout(resolve, waitMs));
52
- return this.waitForToken(count);
53
- }
54
- /**
55
- * Refill tokens based on elapsed time
56
- */
57
- refill() {
58
- const now = Date.now();
59
- const tokensToAdd = (now - this.lastRefill) * this.refillRate;
60
- this.tokens = Math.min(this.maxTokens, this.tokens + tokensToAdd);
61
- this.lastRefill = now;
62
- }
63
- /**
64
- * Get current available tokens (for testing/debugging)
65
- */
66
- getAvailableTokens() {
67
- this.refill();
68
- return Math.floor(this.tokens);
69
- }
70
- /**
71
- * Reset the rate limiter (for testing)
72
- */
73
- reset() {
74
- this.tokens = this.maxTokens;
75
- this.lastRefill = Date.now();
76
- }
77
- };
78
-
79
- //#endregion
80
- //#region src/trace-context.ts
81
- /**
82
- * AsyncLocalStorage for storing the active context with baggage
83
- * This allows setters to update the context and have it persist
84
- */
85
- const contextStorage = new node_async_hooks.AsyncLocalStorage();
86
- /**
87
- * Get the context storage instance (for initialization in functional.ts)
88
- */
89
- function getContextStorage() {
90
- return contextStorage;
91
- }
92
- /**
93
- * Get the active context, checking our stored context first
94
- * This ensures baggage setters work with OpenTelemetry's propagation
95
- */
96
- function getActiveContextWithBaggage() {
97
- return contextStorage.getStore()?.value ?? _opentelemetry_api.context.active();
98
- }
99
- /**
100
- * Set a value in AsyncLocalStorage, preferring enterWith() when available
101
- * (Node.js) and falling back to run() for environments that only support
102
- * run() (e.g. Cloudflare Workers).
103
- *
104
- * On runtimes without enterWith() we mutate the existing run() scope when one
105
- * exists. This is what allows baggage/correlation updates to remain visible
106
- * for the rest of the traced callback in Workers.
107
- */
108
- function enterOrRun(storage, value) {
109
- const existingStore = storage.getStore();
110
- if (existingStore) {
111
- existingStore.value = value;
112
- return;
113
- }
114
- const boxedValue = { value };
115
- try {
116
- storage.enterWith(boxedValue);
117
- } catch {
118
- storage.run(boxedValue, () => {});
119
- }
120
- }
121
- function updateActiveContext(newContext) {
122
- enterOrRun(contextStorage, newContext);
123
- const manager = _opentelemetry_api.context._getContextManager?.();
124
- if (!manager) return;
125
- const asyncLocal = manager._asyncLocalStorage ?? void 0;
126
- if (asyncLocal?.enterWith) {
127
- asyncLocal.enterWith(newContext);
128
- return;
129
- }
130
- if (typeof manager.with === "function") manager.with(newContext, () => {});
131
- }
132
- /**
133
- * Create a TraceContext from an OpenTelemetry Span
134
- *
135
- * This utility extracts trace context information from a span
136
- * and provides span manipulation methods and baggage operations in a consistent format.
137
- *
138
- * Note: Baggage methods always operate on the currently active context,
139
- * which may differ from the context when createTraceContext was called.
140
- */
141
- function createTraceContext(span) {
142
- const spanContext = span.spanContext();
143
- if (!contextStorage.getStore()?.value) {
144
- const activeContext = _opentelemetry_api.context.active();
145
- enterOrRun(contextStorage, activeContext);
146
- }
147
- const traceCtx = {
148
- traceId: spanContext.traceId,
149
- spanId: spanContext.spanId,
150
- correlationId: spanContext.traceId.slice(0, 16),
151
- setAttribute: span.setAttribute.bind(span),
152
- setAttributes: span.setAttributes.bind(span),
153
- setStatus: span.setStatus.bind(span),
154
- recordException: span.recordException.bind(span),
155
- addEvent: span.addEvent.bind(span),
156
- addLink: span.addLink.bind(span),
157
- addLinks: span.addLinks.bind(span),
158
- updateName: span.updateName.bind(span),
159
- isRecording: span.isRecording.bind(span),
160
- recordError: (error) => {
161
- const err = error instanceof Error ? error : new Error(String(error));
162
- require_structured_error.recordStructuredError(traceCtx, err);
163
- },
164
- track: (event, data) => {
165
- track(event, data);
166
- },
167
- getBaggage(key) {
168
- const activeCtx = _opentelemetry_api.context.active();
169
- let baggage = _opentelemetry_api.propagation.getBaggage(activeCtx);
170
- if (!baggage) {
171
- const storedContext = contextStorage.getStore()?.value;
172
- if (storedContext) baggage = _opentelemetry_api.propagation.getBaggage(storedContext);
173
- }
174
- return baggage?.getEntry(key)?.value;
175
- },
176
- setBaggage(key, value) {
177
- const activeCtx = _opentelemetry_api.context.active();
178
- const currentContext = contextStorage.getStore()?.value ?? activeCtx;
179
- const updated = (_opentelemetry_api.propagation.getBaggage(currentContext) ?? _opentelemetry_api.propagation.createBaggage()).setEntry(key, { value });
180
- updateActiveContext(_opentelemetry_api.propagation.setBaggage(currentContext, updated));
181
- return value;
182
- },
183
- deleteBaggage(key) {
184
- const activeCtx = _opentelemetry_api.context.active();
185
- const currentContext = contextStorage.getStore()?.value ?? activeCtx;
186
- const baggage = _opentelemetry_api.propagation.getBaggage(currentContext);
187
- if (baggage) {
188
- const updated = baggage.removeEntry(key);
189
- updateActiveContext(_opentelemetry_api.propagation.setBaggage(currentContext, updated));
190
- }
191
- },
192
- getAllBaggage() {
193
- const activeCtx = _opentelemetry_api.context.active();
194
- let baggage = _opentelemetry_api.propagation.getBaggage(activeCtx);
195
- if (!baggage) {
196
- const storedContext = contextStorage.getStore()?.value;
197
- if (storedContext) baggage = _opentelemetry_api.propagation.getBaggage(storedContext);
198
- }
199
- if (!baggage) return /* @__PURE__ */ new Map();
200
- const entries = /* @__PURE__ */ new Map();
201
- for (const [key, entry] of baggage.getAllEntries()) entries.set(key, entry);
202
- return entries;
203
- },
204
- getTypedBaggage: ((namespace) => {
205
- const activeCtx = _opentelemetry_api.context.active();
206
- let baggage = _opentelemetry_api.propagation.getBaggage(activeCtx);
207
- if (!baggage) {
208
- const storedContext = contextStorage.getStore()?.value;
209
- if (storedContext) baggage = _opentelemetry_api.propagation.getBaggage(storedContext);
210
- }
211
- if (!baggage) return;
212
- const prefix = namespace ? `${namespace}.` : "";
213
- const result = {};
214
- for (const [key, entry] of baggage.getAllEntries()) if (namespace && key.startsWith(prefix)) {
215
- const fieldName = key.slice(prefix.length);
216
- result[fieldName] = entry.value;
217
- } else if (!namespace) result[key] = entry.value;
218
- return Object.keys(result).length > 0 ? result : void 0;
219
- }),
220
- setTypedBaggage: ((namespace, value) => {
221
- const activeCtx = _opentelemetry_api.context.active();
222
- const currentContext = contextStorage.getStore()?.value ?? activeCtx;
223
- let baggage = _opentelemetry_api.propagation.getBaggage(currentContext) ?? _opentelemetry_api.propagation.createBaggage();
224
- const prefix = namespace ? `${namespace}.` : "";
225
- for (const [key, val] of Object.entries(value)) if (val !== void 0) {
226
- const baggageKey = `${prefix}${key}`;
227
- baggage = baggage.setEntry(baggageKey, { value: String(val) });
228
- }
229
- updateActiveContext(_opentelemetry_api.propagation.setBaggage(currentContext, baggage));
230
- })
231
- };
232
- return traceCtx;
233
- }
234
- /**
235
- * Define a typed baggage schema for type-safe baggage operations
236
- *
237
- * This helper provides a type-safe API for working with baggage entries.
238
- * The namespace parameter is optional and prefixes all keys to avoid collisions.
239
- *
240
- * @template T - The baggage schema type (all fields are treated as optional)
241
- * @param namespace - Optional namespace to prefix baggage keys
242
- *
243
- * @example Basic usage
244
- * ```typescript
245
- * type TenantBaggage = { tenantId: string; region?: string };
246
- * const tenantBaggage = defineBaggageSchema<TenantBaggage>('tenant');
247
- *
248
- * export const handler = trace<TenantBaggage>((ctx) => async () => {
249
- * // Get typed baggage
250
- * const tenant = tenantBaggage.get(ctx);
251
- * if (tenant?.tenantId) {
252
- * console.log('Tenant:', tenant.tenantId);
253
- * }
254
- *
255
- * // Set typed baggage
256
- * tenantBaggage.set(ctx, { tenantId: 't1', region: 'us-east-1' });
257
- * });
258
- * ```
259
- *
260
- * @example With withBaggage helper
261
- * ```typescript
262
- * const tenantBaggage = defineBaggageSchema<TenantBaggage>('tenant');
263
- *
264
- * export const handler = trace<TenantBaggage>((ctx) => async () => {
265
- * return await tenantBaggage.with(ctx, { tenantId: 't1' }, async () => {
266
- * // Baggage is available here and in child spans
267
- * const tenant = tenantBaggage.get(ctx);
268
- * });
269
- * });
270
- * ```
271
- */
272
- function defineBaggageSchema(namespace) {
273
- return {
274
- /**
275
- * Get typed baggage from context
276
- * @param ctx - Trace context
277
- * @returns Partial baggage object or undefined if no baggage is set
278
- */
279
- get: (ctx) => {
280
- if (!ctx.getTypedBaggage) return void 0;
281
- return ctx.getTypedBaggage(namespace);
282
- },
283
- /**
284
- * Set typed baggage in context
285
- *
286
- * Note: For proper scoping across async boundaries, use the `with` method instead
287
- *
288
- * @param ctx - Trace context
289
- * @param value - Partial baggage object to set
290
- */
291
- set: (ctx, value) => {
292
- if (!ctx.setTypedBaggage) return;
293
- ctx.setTypedBaggage(namespace, value);
294
- },
295
- /**
296
- * Run a function with typed baggage properly scoped
297
- *
298
- * This is the recommended way to set baggage as it ensures proper
299
- * scoping across async boundaries.
300
- *
301
- * @param ctx - Trace context (can be omitted, will use active context)
302
- * @param value - Partial baggage object to set
303
- * @param fn - Function to execute with the baggage
304
- */
305
- with: (ctxOrValue, valueOrFn, maybeFn) => {
306
- const value = maybeFn ? valueOrFn : ctxOrValue;
307
- const fn = maybeFn || valueOrFn;
308
- const prefix = namespace ? `${namespace}.` : "";
309
- const flatBaggage = {};
310
- for (const [key, val] of Object.entries(value)) if (val !== void 0) flatBaggage[`${prefix}${key}`] = String(val);
311
- const currentContext = _opentelemetry_api.context.active();
312
- let baggage = _opentelemetry_api.propagation.getBaggage(currentContext) ?? _opentelemetry_api.propagation.createBaggage();
313
- for (const [key, val] of Object.entries(flatBaggage)) baggage = baggage.setEntry(key, { value: val });
314
- const newContext = _opentelemetry_api.propagation.setBaggage(currentContext, baggage);
315
- return _opentelemetry_api.context.with(newContext, fn);
316
- }
317
- };
318
- }
319
-
320
- //#endregion
321
- //#region src/correlation-id.ts
322
- /**
323
- * Correlation ID utilities for event-driven observability
324
- *
325
- * Provides a stable join key across events, logs, and spans even when traces fragment.
326
- * Format: 16 hex chars (64 bits), crypto-random, URL-safe.
327
- *
328
- * Lifecycle:
329
- * 1. Generated at boundary root (HTTP server span, message process span, cron job span)
330
- * 2. Reused within context (nested work shares it via AsyncLocalStorage)
331
- * 3. Propagated via baggage (optional, default OFF to avoid header bloat)
332
- *
333
- * @example Basic usage
334
- * ```typescript
335
- * import { generateCorrelationId, getCorrelationId } from 'autotel/correlation-id';
336
- *
337
- * // Generate a new correlation ID
338
- * const id = generateCorrelationId();
339
- * // Returns: 'a1b2c3d4e5f67890'
340
- *
341
- * // Get current correlation ID from context
342
- * const currentId = getCorrelationId();
343
- * ```
344
- */
345
- /**
346
- * AsyncLocalStorage for storing correlation ID
347
- * This allows correlation IDs to persist across async boundaries
348
- */
349
- const correlationStorage = new node_async_hooks.AsyncLocalStorage();
350
- /**
351
- * Baggage key for correlation ID propagation
352
- */
353
- const CORRELATION_ID_BAGGAGE_KEY = "autotel.correlation_id";
354
- /**
355
- * Generate a new correlation ID
356
- *
357
- * Format: 16 hex chars (64 bits), crypto-random, URL-safe
358
- *
359
- * @returns A new correlation ID
360
- *
361
- * @example
362
- * ```typescript
363
- * const id = generateCorrelationId();
364
- * // Returns: 'a1b2c3d4e5f67890'
365
- * ```
366
- */
367
- function generateCorrelationId() {
368
- const bytes = /* @__PURE__ */ new Uint8Array(8);
369
- crypto.getRandomValues(bytes);
370
- return [...bytes].map((b) => b.toString(16).padStart(2, "0")).join("");
371
- }
372
- /**
373
- * Get the current correlation ID from context
374
- *
375
- * Resolution order:
376
- * 1. AsyncLocalStorage (from explicit setCorrelationId or runWithCorrelationId)
377
- * 2. Baggage (if propagated from upstream)
378
- * 3. Active span's trace ID (first 16 chars as fallback)
379
- * 4. undefined (if not in any context)
380
- *
381
- * @returns Current correlation ID or undefined
382
- *
383
- * @example
384
- * ```typescript
385
- * const id = getCorrelationId();
386
- * if (id) {
387
- * console.log('Correlation ID:', id);
388
- * }
389
- * ```
390
- */
391
- function getCorrelationId() {
392
- const storedId = correlationStorage.getStore()?.value;
393
- if (storedId) return storedId;
394
- const activeContext = _opentelemetry_api.context.active();
395
- const baggageEntry = _opentelemetry_api.propagation.getBaggage(activeContext)?.getEntry(CORRELATION_ID_BAGGAGE_KEY);
396
- if (baggageEntry?.value) return baggageEntry.value;
397
- const span = _opentelemetry_api.trace.getActiveSpan();
398
- if (span) return span.spanContext().traceId.slice(0, 16);
399
- }
400
- /**
401
- * Get or create a correlation ID
402
- *
403
- * If a correlation ID exists in the current context, returns it.
404
- * Otherwise, generates a new one.
405
- *
406
- * @returns Existing or new correlation ID
407
- *
408
- * @example
409
- * ```typescript
410
- * const id = getOrCreateCorrelationId();
411
- * // Always returns a valid correlation ID
412
- * ```
413
- */
414
- function getOrCreateCorrelationId() {
415
- return getCorrelationId() ?? generateCorrelationId();
416
- }
417
- /**
418
- * Run a function with a specific correlation ID in context
419
- *
420
- * The correlation ID will be available via getCorrelationId() throughout
421
- * the execution of the function and any async operations it spawns.
422
- *
423
- * @param correlationId - Correlation ID to use
424
- * @param fn - Function to execute
425
- * @returns The return value of the function
426
- *
427
- * @example
428
- * ```typescript
429
- * await runWithCorrelationId('abc123', async () => {
430
- * // getCorrelationId() returns 'abc123' here
431
- * await processRequest();
432
- * });
433
- * ```
434
- */
435
- function runWithCorrelationId(correlationId, fn) {
436
- return correlationStorage.run({ value: correlationId }, fn);
437
- }
438
- /**
439
- * Set correlation ID in the current context (mutates context)
440
- *
441
- * Note: This updates the AsyncLocalStorage context. For proper scoping
442
- * across async boundaries, prefer runWithCorrelationId() instead.
443
- *
444
- * @param correlationId - Correlation ID to set
445
- *
446
- * @example
447
- * ```typescript
448
- * setCorrelationId('abc123');
449
- * // Now getCorrelationId() returns 'abc123'
450
- * ```
451
- */
452
- function setCorrelationId(correlationId) {
453
- enterOrRun(correlationStorage, correlationId);
454
- }
455
- /**
456
- * Set correlation ID in baggage for propagation
457
- *
458
- * This adds the correlation ID to the W3C baggage header, allowing it
459
- * to be propagated to downstream services.
460
- *
461
- * Note: Only use this when you explicitly want cross-service propagation.
462
- * Default is OFF to avoid header bloat.
463
- *
464
- * @param correlationId - Correlation ID to propagate
465
- * @returns New context with baggage set
466
- *
467
- * @example
468
- * ```typescript
469
- * const newContext = setCorrelationIdInBaggage('abc123');
470
- * context.with(newContext, () => {
471
- * // Baggage will be propagated in outgoing requests
472
- * });
473
- * ```
474
- */
475
- function setCorrelationIdInBaggage(correlationId) {
476
- const activeContext = _opentelemetry_api.context.active();
477
- let baggage = _opentelemetry_api.propagation.getBaggage(activeContext) ?? _opentelemetry_api.propagation.createBaggage();
478
- baggage = baggage.setEntry(CORRELATION_ID_BAGGAGE_KEY, { value: correlationId });
479
- return _opentelemetry_api.propagation.setBaggage(activeContext, baggage);
480
- }
481
- /**
482
- * Get the correlation storage instance (for internal use in init/shutdown)
483
- */
484
- function getCorrelationStorage() {
485
- return correlationStorage;
486
- }
487
-
488
- //#endregion
489
- //#region src/event-queue.ts
490
- const DEFAULT_CONFIG$1 = {
491
- maxSize: 5e4,
492
- batchSize: 100,
493
- flushInterval: 1e4,
494
- maxRetries: 3,
495
- rateLimit: {
496
- maxEventsPerSecond: 100,
497
- burstCapacity: 200
498
- }
499
- };
500
- /**
501
- * Get subscriber name for metrics (stable, low-cardinality)
502
- *
503
- * Priority:
504
- * 1. Explicit config: subscriber.name
505
- * 2. Class static property (if available)
506
- * 3. Fallback: lowercase class name without "Subscriber" suffix
507
- */
508
- function getSubscriberName(subscriber) {
509
- if (subscriber.name) return subscriber.name.toLowerCase();
510
- return (subscriber.constructor?.name || "unknown").replace(/Subscriber$/i, "").toLowerCase();
511
- }
512
- /**
513
- * Events queue with batching and backpressure
514
- *
515
- * Features:
516
- * - Batches events for efficient sending
517
- * - Bounded queue with drop-oldest policy (prod) or blocking (dev)
518
- * - Exponential backoff retry
519
- * - Rate limiting to prevent overwhelming subscribers
520
- * - Graceful flush on shutdown
521
- */
522
- var EventQueue = class {
523
- queue = [];
524
- flushTimer = null;
525
- config;
526
- subscribers;
527
- rateLimiter;
528
- flushPromise = null;
529
- isShuttingDown = false;
530
- metrics = null;
531
- observableCleanups = [];
532
- subscriberHealthy = /* @__PURE__ */ new Map();
533
- constructor(subscribers, config) {
534
- this.subscribers = subscribers;
535
- this.config = {
536
- ...DEFAULT_CONFIG$1,
537
- ...config
538
- };
539
- this.rateLimiter = this.config.rateLimit ? new TokenBucketRateLimiter(this.config.rateLimit) : null;
540
- for (const subscriber of subscribers) {
541
- const name = getSubscriberName(subscriber);
542
- this.subscriberHealthy.set(name, true);
543
- }
544
- this.initMetrics();
545
- }
546
- /**
547
- * Initialize OTel metrics for queue observability
548
- */
549
- initMetrics() {
550
- const meter = require_config.getConfig().meter;
551
- const queueSize = meter.createObservableGauge("autotel.event_delivery.queue.size", {
552
- description: "Current number of events in the delivery queue",
553
- unit: "count"
554
- });
555
- const queueSizeCallback = (observableResult) => {
556
- observableResult.observe(this.queue.length);
557
- };
558
- queueSize.addCallback(queueSizeCallback);
559
- this.observableCleanups.push(() => queueSize.removeCallback(queueSizeCallback));
560
- const oldestAge = meter.createObservableGauge("autotel.event_delivery.queue.oldest_age_ms", {
561
- description: "Age of the oldest event in the queue in milliseconds",
562
- unit: "ms"
563
- });
564
- const oldestAgeCallback = (observableResult) => {
565
- if (this.queue.length > 0) {
566
- const oldest = this.queue[0];
567
- const ageMs = Date.now() - oldest.timestamp;
568
- observableResult.observe(ageMs);
569
- } else observableResult.observe(0);
570
- };
571
- oldestAge.addCallback(oldestAgeCallback);
572
- this.observableCleanups.push(() => oldestAge.removeCallback(oldestAgeCallback));
573
- const delivered = meter.createCounter("autotel.event_delivery.queue.delivered", {
574
- description: "Number of events successfully delivered to subscribers",
575
- unit: "count"
576
- });
577
- const failed = meter.createCounter("autotel.event_delivery.queue.failed", {
578
- description: "Number of events that failed delivery after all retry attempts",
579
- unit: "count"
580
- });
581
- const dropped = meter.createCounter("autotel.event_delivery.queue.dropped", {
582
- description: "Number of events dropped from the queue",
583
- unit: "count"
584
- });
585
- const latency = meter.createHistogram("autotel.event_delivery.queue.latency_ms", {
586
- description: "Event delivery latency from enqueue to successful send",
587
- unit: "ms"
588
- });
589
- const subscriberHealth = meter.createObservableGauge("autotel.event_delivery.subscriber.health", {
590
- description: "Subscriber health status (1=healthy, 0=unhealthy)",
591
- unit: "1"
592
- });
593
- const subscriberHealthCallback = (observableResult) => {
594
- for (const [subscriberName, isHealthy] of this.subscriberHealthy) observableResult.observe(isHealthy ? 1 : 0, { subscriber: subscriberName });
595
- };
596
- subscriberHealth.addCallback(subscriberHealthCallback);
597
- this.observableCleanups.push(() => subscriberHealth.removeCallback(subscriberHealthCallback));
598
- this.metrics = {
599
- queueSize,
600
- oldestAge,
601
- delivered,
602
- failed,
603
- dropped,
604
- latency,
605
- subscriberHealth
606
- };
607
- }
608
- /**
609
- * Record a dropped event with reason and emit debug breadcrumb
610
- */
611
- recordDropped(reason, event, subscriberName) {
612
- const attrs = { reason };
613
- if (subscriberName) attrs.subscriber = subscriberName;
614
- this.metrics?.dropped.add(1, attrs);
615
- const logLevel = reason === "payload_invalid" ? "error" : "warn";
616
- const logger = require_init.getLogger();
617
- if (logLevel === "error") logger.error({
618
- eventName: event?.name,
619
- subscriber: subscriberName,
620
- reason,
621
- correlationId: event?._correlationId,
622
- traceId: event?._traceId
623
- }, `[autotel] Event dropped: ${reason}`);
624
- else logger.warn({
625
- eventName: event?.name,
626
- subscriber: subscriberName,
627
- reason,
628
- correlationId: event?._correlationId,
629
- traceId: event?._traceId
630
- }, `[autotel] Event dropped: ${reason}`);
631
- }
632
- /**
633
- * Record permanent delivery failure (after all retries exhausted)
634
- * Increments failed counter and logs error
635
- */
636
- recordFailed(event, subscriberName, error) {
637
- this.metrics?.failed.add(1, { subscriber: subscriberName });
638
- this.subscriberHealthy.set(subscriberName, false);
639
- require_init.getLogger().error({
640
- eventName: event.name,
641
- subscriber: subscriberName,
642
- correlationId: event._correlationId,
643
- traceId: event._traceId,
644
- err: error
645
- }, `[autotel] Event delivery failed after all retries`);
646
- }
647
- /**
648
- * Mark subscriber as unhealthy on transient failure (without incrementing failed counter)
649
- * Used during retry attempts - only recordFailed should increment the counter
650
- */
651
- markSubscriberUnhealthy(subscriberName) {
652
- this.subscriberHealthy.set(subscriberName, false);
653
- }
654
- /**
655
- * Record successful delivery
656
- */
657
- recordDelivered(event, subscriberName, startTime) {
658
- const latencyMs = Date.now() - startTime;
659
- this.metrics?.delivered.add(1, { subscriber: subscriberName });
660
- this.metrics?.latency.record(latencyMs, { subscriber: subscriberName });
661
- this.subscriberHealthy.set(subscriberName, true);
662
- }
663
- /**
664
- * Enqueue an event for sending
665
- *
666
- * Backpressure policy:
667
- * - Drops oldest event and logs warning if queue is full (same behavior in all environments)
668
- */
669
- enqueue(event) {
670
- if (this.isShuttingDown) {
671
- this.recordDropped("shutdown", event);
672
- return;
673
- }
674
- if (this.queue.length >= this.config.maxSize) {
675
- const droppedEvent = this.queue.shift();
676
- this.recordDropped("rate_limit", droppedEvent);
677
- require_init.getLogger().warn({ droppedEvent: droppedEvent?.name }, `[autotel] Events queue full (${this.config.maxSize} events). Dropping oldest event. Events are being produced faster than they can be sent. Check your subscribers or reduce tracking frequency.`);
678
- }
679
- const enrichedEvent = {
680
- ...event,
681
- _correlationId: event._correlationId || getOrCreateCorrelationId()
682
- };
683
- this.queue.push(enrichedEvent);
684
- this.scheduleBatchFlush();
685
- }
686
- /**
687
- * Schedule a batch flush if not already scheduled
688
- */
689
- scheduleBatchFlush() {
690
- if (this.flushTimer || this.flushPromise) return;
691
- this.flushTimer = setTimeout(() => {
692
- this.flushTimer = null;
693
- this.flushBatch();
694
- }, this.config.flushInterval);
695
- }
696
- /**
697
- * Flush a batch of events
698
- * Uses promise-based concurrency control to prevent race conditions
699
- */
700
- async flushBatch() {
701
- if (this.queue.length === 0) return;
702
- if (this.flushPromise) {
703
- await this.flushPromise;
704
- return;
705
- }
706
- this.flushPromise = this.doFlushBatch();
707
- try {
708
- await this.flushPromise;
709
- } finally {
710
- this.flushPromise = null;
711
- if (this.queue.length > 0) this.scheduleBatchFlush();
712
- }
713
- }
714
- /**
715
- * Internal flush implementation
716
- */
717
- async doFlushBatch() {
718
- const batch = this.queue.splice(0, this.config.batchSize);
719
- await this.sendWithRetry(batch, this.config.maxRetries);
720
- }
721
- /**
722
- * Send events with exponential backoff retry
723
- * Tracks per-event, per-subscriber failures so failed counter reflects actual failed deliveries.
724
- * On retry, only failed (event, subscriber) pairs are re-sent to avoid double-counting delivered.
725
- */
726
- async sendWithRetry(events, retriesLeft, subscribersByEventIndex) {
727
- const failedDeliveries = await this.sendToSubscribers(events, subscribersByEventIndex);
728
- if (failedDeliveries.length > 0) if (retriesLeft > 0) {
729
- const failedEventIndicesOrdered = [...new Set(failedDeliveries.map((f) => f.eventIndex))].sort((a, b) => a - b);
730
- const eventsToRetry = failedEventIndicesOrdered.map((i) => events[i]);
731
- const failedSubscribersByRetryIndex = /* @__PURE__ */ new Map();
732
- for (let j = 0; j < failedEventIndicesOrdered.length; j++) {
733
- const origIndex = failedEventIndicesOrdered[j];
734
- const set = /* @__PURE__ */ new Set();
735
- for (const { eventIndex, subscriberName } of failedDeliveries) if (eventIndex === origIndex) set.add(subscriberName);
736
- failedSubscribersByRetryIndex.set(j, set);
737
- }
738
- const delay = Math.pow(2, this.config.maxRetries - retriesLeft) * 1e3;
739
- await new Promise((resolve) => setTimeout(resolve, delay));
740
- return this.sendWithRetry(eventsToRetry, retriesLeft - 1, failedSubscribersByRetryIndex);
741
- } else {
742
- for (const { eventIndex, subscriberName, error } of failedDeliveries) {
743
- const event = events[eventIndex];
744
- if (event) this.recordFailed(event, subscriberName, error);
745
- }
746
- const failedSubscriberNames = [...new Set(failedDeliveries.map((f) => f.subscriberName))];
747
- require_init.getLogger().error({
748
- failedSubscribers: failedSubscriberNames,
749
- retriesAttempted: this.config.maxRetries
750
- }, "[autotel] Failed to send events after retries");
751
- }
752
- }
753
- /**
754
- * Send events to configured subscribers with rate limiting and metrics.
755
- * When subscribersByEventIndex is provided (retry path), only those subscribers are tried per event.
756
- * Returns per-event, per-subscriber failures (empty if all succeeded).
757
- */
758
- async sendToSubscribers(events, subscribersByEventIndex) {
759
- const failedDeliveries = [];
760
- const sendOne = async (event, eventIndex) => {
761
- const subscriberNames = subscribersByEventIndex?.get(eventIndex);
762
- const failures = await this.sendEventToSubscribers(event, subscriberNames ?? void 0);
763
- for (const failure of failures) failedDeliveries.push({
764
- eventIndex,
765
- subscriberName: failure.subscriberName,
766
- error: failure.error
767
- });
768
- };
769
- if (!this.rateLimiter) {
770
- for (let i = 0; i < events.length; i++) {
771
- const event = events[i];
772
- if (event) await sendOne(event, i);
773
- }
774
- return failedDeliveries;
775
- }
776
- for (let i = 0; i < events.length; i++) {
777
- await this.rateLimiter.waitForToken();
778
- const event = events[i];
779
- if (event) await sendOne(event, i);
780
- }
781
- return failedDeliveries;
782
- }
783
- /**
784
- * Send a single event to subscribers.
785
- * - When subscriberNames is undefined (initial attempt): send to all subscribers.
786
- * - When subscriberNames is provided (retry): send only to those subscribers (never re-send to healthy ones).
787
- * Returns list of subscribers that failed (empty if all succeeded).
788
- */
789
- async sendEventToSubscribers(event, subscriberNames) {
790
- const startTime = event.timestamp;
791
- const failures = [];
792
- const subscribersToTry = subscriberNames === void 0 ? this.subscribers : this.subscribers.filter((s) => subscriberNames.has(getSubscriberName(s)));
793
- const results = await Promise.allSettled(subscribersToTry.map(async (subscriber) => {
794
- const subscriberName = getSubscriberName(subscriber);
795
- try {
796
- await subscriber.trackEvent(event.name, event.attributes, {
797
- autotel: event.autotel,
798
- schema: event.schema
799
- });
800
- this.recordDelivered(event, subscriberName, startTime);
801
- return {
802
- subscriberName,
803
- success: true
804
- };
805
- } catch (error) {
806
- this.markSubscriberUnhealthy(subscriberName);
807
- return {
808
- subscriberName,
809
- success: false,
810
- error: error instanceof Error ? error : void 0
811
- };
812
- }
813
- }));
814
- for (const result of results) if (result.status === "fulfilled" && !result.value.success) failures.push({
815
- subscriberName: result.value.subscriberName,
816
- error: result.value.error
817
- });
818
- return failures;
819
- }
820
- /**
821
- * Flush all remaining events. Queue remains usable after flush (e.g. for
822
- * auto-flush at root span end). Use shutdown() when tearing down the queue.
823
- */
824
- async flush() {
825
- if (this.flushTimer) {
826
- clearTimeout(this.flushTimer);
827
- this.flushTimer = null;
828
- }
829
- if (this.flushPromise) await this.flushPromise;
830
- while (this.queue.length > 0) await this.doFlushBatch();
831
- }
832
- /**
833
- * Flush remaining events and permanently disable the queue (reject new events).
834
- * Use for process/SDK shutdown; use flush() for periodic or span-end drain.
835
- */
836
- async shutdown() {
837
- this.isShuttingDown = true;
838
- await this.flush();
839
- }
840
- /**
841
- * Cleanup observable metric callbacks to prevent memory leaks
842
- * Call this when destroying the EventQueue instance
843
- */
844
- cleanup() {
845
- for (const cleanupFn of this.observableCleanups) try {
846
- cleanupFn();
847
- } catch {}
848
- this.observableCleanups = [];
849
- }
850
- /**
851
- * Get queue size (for testing/debugging)
852
- */
853
- size() {
854
- return this.queue.length;
855
- }
856
- /**
857
- * Get subscriber health status (for testing/debugging)
858
- */
859
- getSubscriberHealth() {
860
- return new Map(this.subscriberHealthy);
861
- }
862
- /**
863
- * Check if a specific subscriber is healthy
864
- */
865
- isSubscriberHealthy(subscriberName) {
866
- return this.subscriberHealthy.get(subscriberName.toLowerCase()) ?? true;
867
- }
868
- /**
869
- * Manually mark a subscriber as healthy or unhealthy
870
- * (used for circuit breaker integration)
871
- */
872
- setSubscriberHealth(subscriberName, healthy) {
873
- this.subscriberHealthy.set(subscriberName.toLowerCase(), healthy);
874
- }
875
- };
876
-
877
- //#endregion
878
- //#region src/validation.ts
879
- const DEFAULT_CONFIG = {
880
- maxEventNameLength: 100,
881
- maxAttributeKeyLength: 100,
882
- maxAttributeValueLength: 1e3,
883
- maxAttributeCount: 50,
884
- maxNestingDepth: 3,
885
- sensitivePatterns: [
886
- /password/i,
887
- /secret/i,
888
- /token/i,
889
- /api[_-]?key/i,
890
- /access[_-]?key/i,
891
- /private[_-]?key/i,
892
- /auth/i,
893
- /credential/i,
894
- /ssn/i,
895
- /credit[_-]?card/i
896
- ]
897
- };
898
- var ValidationError = class extends Error {
899
- constructor(message) {
900
- super(message);
901
- this.name = "ValidationError";
902
- }
903
- };
904
- /**
905
- * Validate and sanitize event name
906
- * Throws ValidationError if invalid
907
- */
908
- function validateEventName(eventName, config = DEFAULT_CONFIG) {
909
- if (typeof eventName !== "string") throw new ValidationError(`Event name must be a string, got ${typeof eventName}`);
910
- const trimmed = eventName.trim();
911
- if (trimmed.length === 0) throw new ValidationError("Event name cannot be empty");
912
- if (trimmed.length > config.maxEventNameLength) throw new ValidationError(`Event name too long (${trimmed.length} chars). Max: ${config.maxEventNameLength}`);
913
- if (!/^[a-zA-Z0-9._-]+$/.test(trimmed)) throw new ValidationError(`Event name contains invalid characters: "${trimmed}". Use only letters, numbers, dots, underscores, and hyphens.`);
914
- return trimmed;
915
- }
916
- /**
917
- * Validate and sanitize attributes
918
- * Returns sanitized attributes (sensitive data redacted)
919
- */
920
- function validateAttributes(attributes, config = DEFAULT_CONFIG) {
921
- if (attributes === void 0 || attributes === null) return;
922
- if (typeof attributes !== "object" || Array.isArray(attributes)) throw new ValidationError("Attributes must be an object");
923
- const keys = Object.keys(attributes);
924
- if (keys.length > config.maxAttributeCount) throw new ValidationError(`Too many attributes (${keys.length}). Max: ${config.maxAttributeCount}`);
925
- const sanitized = {};
926
- for (const key of keys) {
927
- if (key.length > config.maxAttributeKeyLength) throw new ValidationError(`Attribute key too long: "${key.slice(0, 20)}..." (${key.length} chars). Max: ${config.maxAttributeKeyLength}`);
928
- const value = attributes[key];
929
- if (typeof value === "string" && config.sensitivePatterns.some((pattern) => pattern.test(key))) {
930
- sanitized[key] = "[REDACTED]";
931
- continue;
932
- }
933
- sanitized[key] = sanitizeValue(value, config, 1);
934
- }
935
- return sanitized;
936
- }
937
- /**
938
- * Sanitize attribute value (recursive)
939
- */
940
- function sanitizeValue(value, config, depth) {
941
- if (depth > config.maxNestingDepth) return "[MAX_DEPTH_EXCEEDED]";
942
- if (value === null || value === void 0) return value;
943
- if (typeof value === "string") {
944
- if (value.length > config.maxAttributeValueLength) return value.slice(0, config.maxAttributeValueLength) + "...";
945
- return value;
946
- }
947
- if (typeof value === "number" || typeof value === "boolean") return value;
948
- if (Array.isArray(value)) return value.map((item) => sanitizeValue(item, config, depth + 1));
949
- if (typeof value === "object") try {
950
- JSON.stringify(value);
951
- const sanitized = {};
952
- for (const key in value) if (Object.prototype.hasOwnProperty.call(value, key)) {
953
- const nested = value[key];
954
- sanitized[key] = typeof nested === "string" && config.sensitivePatterns.some((pattern) => pattern.test(key)) ? "[REDACTED]" : sanitizeValue(nested, config, depth + 1);
955
- }
956
- return sanitized;
957
- } catch {
958
- return "[CIRCULAR]";
959
- }
960
- return `[${typeof value}]`;
961
- }
962
- /**
963
- * Validate and sanitize an events event
964
- * Returns { eventName, attributes } with sanitized values
965
- */
966
- function validateEvent(eventName, attributes, config) {
967
- const fullConfig = {
968
- ...DEFAULT_CONFIG,
969
- ...config
970
- };
971
- return {
972
- eventName: validateEventName(eventName, fullConfig),
973
- attributes: validateAttributes(attributes, fullConfig)
974
- };
975
- }
976
-
977
- //#endregion
978
- //#region src/track.ts
979
- /**
980
- * Global track() function for business events
981
- *
982
- * Simple, no instantiation needed, auto-attaches trace context
983
- */
984
- let eventsQueue = null;
985
- /**
986
- * Build autotel event context for trace correlation
987
- *
988
- * Works in multiple contexts:
989
- * 1. Inside a span → use current span's trace_id + span_id
990
- * 2. Outside span → use correlation_id only
991
- * 3. With trace URL config → include clickable trace URL
992
- */
993
- function buildAutotelContext(span) {
994
- const eventsConfig = require_init.getEventsConfig();
995
- const config = require_init.getConfig();
996
- const correlationId = getOrCreateCorrelationId();
997
- if (!eventsConfig?.includeTraceContext) return { correlation_id: correlationId };
998
- const autotelContext = { correlation_id: correlationId };
999
- const spanContext = span?.spanContext();
1000
- if (spanContext) {
1001
- autotelContext.trace_id = spanContext.traceId;
1002
- autotelContext.span_id = spanContext.spanId;
1003
- autotelContext.trace_flags = spanContext.traceFlags.toString(16).padStart(2, "0");
1004
- const traceState = spanContext.traceState;
1005
- if (traceState) try {
1006
- if (typeof traceState.serialize === "function") {
1007
- const traceStateStr = traceState.serialize();
1008
- if (traceStateStr) autotelContext.trace_state = traceStateStr;
1009
- }
1010
- } catch {}
1011
- if (eventsConfig.traceUrl && config) {
1012
- const traceUrl = eventsConfig.traceUrl({
1013
- traceId: spanContext.traceId,
1014
- spanId: spanContext.spanId,
1015
- correlationId,
1016
- serviceName: config.service,
1017
- environment: config.environment
1018
- });
1019
- if (traceUrl) autotelContext.trace_url = traceUrl;
1020
- }
1021
- } else if (eventsConfig.traceUrl && config) {
1022
- const traceUrl = eventsConfig.traceUrl({
1023
- correlationId,
1024
- serviceName: config.service,
1025
- environment: config.environment
1026
- });
1027
- if (traceUrl) autotelContext.trace_url = traceUrl;
1028
- }
1029
- return autotelContext;
1030
- }
1031
- /**
1032
- * Initialize events queue lazily
1033
- */
1034
- function getOrCreateQueue() {
1035
- if (!require_init.isInitialized()) {
1036
- require_init.warnIfNotInitialized("track()");
1037
- return null;
1038
- }
1039
- if (!eventsQueue) {
1040
- const config = require_init.getConfig();
1041
- if (!config?.subscribers || config.subscribers.length === 0) return null;
1042
- eventsQueue = new EventQueue(config.subscribers);
1043
- }
1044
- return eventsQueue;
1045
- }
1046
- /**
1047
- * Track a business events event
1048
- *
1049
- * Features:
1050
- * - Auto-attaches traceId and spanId if in active span
1051
- * - Batched sending with retry
1052
- * - Type-safe with optional generic
1053
- * - No-op if init() not called or no subscribers configured
1054
- *
1055
- * @example Basic usage
1056
- * ```typescript
1057
- * track('user.signup', { userId: '123', plan: 'pro' })
1058
- * ```
1059
- *
1060
- * @example With type safety
1061
- * ```typescript
1062
- * interface EventDatas {
1063
- * 'user.signup': { userId: string; plan: string }
1064
- * 'plan.upgraded': { userId: string; revenue: number }
1065
- * }
1066
- *
1067
- * track<EventDatas>('user.signup', { userId: '123', plan: 'pro' })
1068
- * ```
1069
- *
1070
- * @example Trace correlation (automatic)
1071
- * ```typescript
1072
- * @Instrumented()
1073
- * class UserService {
1074
- * async createUser(data: CreateUserData) {
1075
- * // This track call automatically includes traceId + spanId
1076
- * track('user.signup', { userId: data.id })
1077
- * }
1078
- * }
1079
- * ```
1080
- */
1081
- function track(event, data, options) {
1082
- const queue = getOrCreateQueue();
1083
- if (!queue) return;
1084
- const validated = validateEvent(event, data, require_init.getValidationConfig() || void 0);
1085
- const span = _opentelemetry_api.trace.getActiveSpan();
1086
- const enrichedData = span ? {
1087
- ...validated.attributes,
1088
- traceId: span.spanContext().traceId,
1089
- spanId: span.spanContext().spanId
1090
- } : validated.attributes;
1091
- const autotelContext = buildAutotelContext(span);
1092
- queue.enqueue({
1093
- name: validated.eventName,
1094
- attributes: enrichedData,
1095
- timestamp: Date.now(),
1096
- autotel: autotelContext,
1097
- schema: options?.schema
1098
- });
1099
- }
1100
- /**
1101
- * Get events queue (for flush/shutdown)
1102
- * @internal
1103
- */
1104
- function getEventQueue() {
1105
- return eventsQueue;
1106
- }
1107
- /**
1108
- * Reset events queue (for shutdown/cleanup)
1109
- * @internal
1110
- */
1111
- function resetEventQueue() {
1112
- eventsQueue = null;
1113
- }
1114
-
1115
- //#endregion
1116
- Object.defineProperty(exports, 'CORRELATION_ID_BAGGAGE_KEY', {
1117
- enumerable: true,
1118
- get: function () {
1119
- return CORRELATION_ID_BAGGAGE_KEY;
1120
- }
1121
- });
1122
- Object.defineProperty(exports, 'createTraceContext', {
1123
- enumerable: true,
1124
- get: function () {
1125
- return createTraceContext;
1126
- }
1127
- });
1128
- Object.defineProperty(exports, 'defineBaggageSchema', {
1129
- enumerable: true,
1130
- get: function () {
1131
- return defineBaggageSchema;
1132
- }
1133
- });
1134
- Object.defineProperty(exports, 'enterOrRun', {
1135
- enumerable: true,
1136
- get: function () {
1137
- return enterOrRun;
1138
- }
1139
- });
1140
- Object.defineProperty(exports, 'generateCorrelationId', {
1141
- enumerable: true,
1142
- get: function () {
1143
- return generateCorrelationId;
1144
- }
1145
- });
1146
- Object.defineProperty(exports, 'getActiveContextWithBaggage', {
1147
- enumerable: true,
1148
- get: function () {
1149
- return getActiveContextWithBaggage;
1150
- }
1151
- });
1152
- Object.defineProperty(exports, 'getContextStorage', {
1153
- enumerable: true,
1154
- get: function () {
1155
- return getContextStorage;
1156
- }
1157
- });
1158
- Object.defineProperty(exports, 'getCorrelationId', {
1159
- enumerable: true,
1160
- get: function () {
1161
- return getCorrelationId;
1162
- }
1163
- });
1164
- Object.defineProperty(exports, 'getCorrelationStorage', {
1165
- enumerable: true,
1166
- get: function () {
1167
- return getCorrelationStorage;
1168
- }
1169
- });
1170
- Object.defineProperty(exports, 'getEventQueue', {
1171
- enumerable: true,
1172
- get: function () {
1173
- return getEventQueue;
1174
- }
1175
- });
1176
- Object.defineProperty(exports, 'getOrCreateCorrelationId', {
1177
- enumerable: true,
1178
- get: function () {
1179
- return getOrCreateCorrelationId;
1180
- }
1181
- });
1182
- Object.defineProperty(exports, 'resetEventQueue', {
1183
- enumerable: true,
1184
- get: function () {
1185
- return resetEventQueue;
1186
- }
1187
- });
1188
- Object.defineProperty(exports, 'runWithCorrelationId', {
1189
- enumerable: true,
1190
- get: function () {
1191
- return runWithCorrelationId;
1192
- }
1193
- });
1194
- Object.defineProperty(exports, 'setCorrelationId', {
1195
- enumerable: true,
1196
- get: function () {
1197
- return setCorrelationId;
1198
- }
1199
- });
1200
- Object.defineProperty(exports, 'setCorrelationIdInBaggage', {
1201
- enumerable: true,
1202
- get: function () {
1203
- return setCorrelationIdInBaggage;
1204
- }
1205
- });
1206
- Object.defineProperty(exports, 'track', {
1207
- enumerable: true,
1208
- get: function () {
1209
- return track;
1210
- }
1211
- });
1212
- Object.defineProperty(exports, 'validateEvent', {
1213
- enumerable: true,
1214
- get: function () {
1215
- return validateEvent;
1216
- }
1217
- });
1218
- //# sourceMappingURL=track-eovhCJ-I.cjs.map