autotel 6.0.0 → 6.2.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 (412) hide show
  1. package/README.md +14 -1
  2. package/dist/analysis.cjs +1 -2
  3. package/dist/analysis.d.cts +1 -2
  4. package/dist/analysis.d.ts +1 -2
  5. package/dist/analysis.js +1 -2
  6. package/dist/attribute-redacting-processor-Pk7lAzWd.d.cts +1 -2
  7. package/dist/attribute-redacting-processor-Pk7lAzWd.d.ts +1 -2
  8. package/dist/attribute-redacting-processor.cjs +1 -2
  9. package/dist/attribute-redacting-processor.js +1 -2
  10. package/dist/attributes-B7wix2VG.js +1 -2
  11. package/dist/attributes-aDmJYral.cjs +1 -2
  12. package/dist/auto.cjs +2 -3
  13. package/dist/auto.js +2 -3
  14. package/dist/business-baggage.cjs +1 -2
  15. package/dist/business-baggage.d.cts +1 -2
  16. package/dist/business-baggage.d.ts +1 -2
  17. package/dist/business-baggage.js +1 -2
  18. package/dist/canonical-log-line-processor-B4WgG-VS.d.cts +1 -2
  19. package/dist/canonical-log-line-processor-CL_J7gb5.d.ts +1 -2
  20. package/dist/canonical-log-line-processor-DOjb6Kxy.cjs +1 -2
  21. package/dist/canonical-log-line-processor-mKABvGP0.js +1 -2
  22. package/dist/config.cjs +1 -2
  23. package/dist/config.d.cts +1 -2
  24. package/dist/config.d.ts +1 -2
  25. package/dist/config.js +1 -2
  26. package/dist/correlated-events-Bzh5y-UB.js +1 -2
  27. package/dist/correlated-events-kSwLo3mi.cjs +1 -2
  28. package/dist/correlation-id.cjs +1 -1
  29. package/dist/correlation-id.d.cts +1 -2
  30. package/dist/correlation-id.d.ts +1 -2
  31. package/dist/correlation-id.js +1 -1
  32. package/dist/db.cjs +1 -2
  33. package/dist/db.d.cts +1 -2
  34. package/dist/db.d.ts +1 -2
  35. package/dist/db.js +1 -2
  36. package/dist/decorators.cjs +2 -3
  37. package/dist/decorators.d.cts +1 -2
  38. package/dist/decorators.d.ts +1 -2
  39. package/dist/decorators.js +2 -3
  40. package/dist/define-event-B2z1SBe7.d.ts +1 -2
  41. package/dist/define-event-CGG048HE.d.cts +1 -2
  42. package/dist/diagnostics.cjs +1 -2
  43. package/dist/diagnostics.d.cts +1 -2
  44. package/dist/diagnostics.d.ts +1 -2
  45. package/dist/diagnostics.js +1 -2
  46. package/dist/drain-pipeline.cjs +11 -3
  47. package/dist/drain-pipeline.d.cts +6 -2
  48. package/dist/drain-pipeline.d.ts +6 -2
  49. package/dist/drain-pipeline.js +11 -3
  50. package/dist/enrichers.cjs +1 -2
  51. package/dist/enrichers.d.cts +1 -2
  52. package/dist/enrichers.d.ts +1 -2
  53. package/dist/enrichers.js +1 -2
  54. package/dist/event-subscriber-CWh8sTGh.d.cts +1 -2
  55. package/dist/event-subscriber-CWh8sTGh.d.ts +1 -2
  56. package/dist/event-testing-CA2mIx1E.d.ts +1 -2
  57. package/dist/event-testing-D0qWfqAy.d.cts +1 -2
  58. package/dist/event-testing.cjs +1 -2
  59. package/dist/event-testing.js +1 -2
  60. package/dist/event.cjs +1 -1
  61. package/dist/event.d.cts +1 -2
  62. package/dist/event.d.ts +1 -2
  63. package/dist/event.js +1 -1
  64. package/dist/exporters.d.cts +1 -2
  65. package/dist/exporters.d.ts +1 -2
  66. package/dist/filtering-span-processor-BpDagWNa.d.cts +1 -2
  67. package/dist/filtering-span-processor-BpDagWNa.d.ts +1 -2
  68. package/dist/filtering-span-processor.cjs +1 -2
  69. package/dist/filtering-span-processor.js +1 -2
  70. package/dist/{functional-DcLBuCPz.cjs → functional-D545J0Ba.cjs} +2 -3
  71. package/dist/{functional-BnDUxnSl.js → functional-DYAZiYxr.js} +2 -3
  72. package/dist/functional.cjs +1 -1
  73. package/dist/functional.d.cts +1 -2
  74. package/dist/functional.d.ts +1 -2
  75. package/dist/functional.js +1 -1
  76. package/dist/http.cjs +2 -3
  77. package/dist/http.d.cts +1 -2
  78. package/dist/http.d.ts +1 -2
  79. package/dist/http.js +2 -3
  80. package/dist/index-BPcxVucm.d.cts +1 -2
  81. package/dist/index-DolOVX6F.d.ts +1 -2
  82. package/dist/index.cjs +13 -6
  83. package/dist/index.d.cts +5 -3
  84. package/dist/index.d.ts +5 -3
  85. package/dist/index.js +13 -6
  86. package/dist/{init-D6n2diBy.d.ts → init-BHp-kqLJ.d.ts} +12 -4
  87. package/dist/{init-XzXzrarP.d.cts → init-BoIYyB6Q.d.cts} +12 -4
  88. package/dist/{init-C3RApHKJ.cjs → init-CzNFWUd8.cjs} +38 -5
  89. package/dist/{init-R-gSEXkJ.js → init-DDkh2brw.js} +38 -5
  90. package/dist/instrumentation.cjs +2 -3
  91. package/dist/instrumentation.d.cts +1 -2
  92. package/dist/instrumentation.d.ts +1 -2
  93. package/dist/instrumentation.js +2 -3
  94. package/dist/logger-CN4xpzMd.d.cts +1 -2
  95. package/dist/logger-CN4xpzMd.d.ts +1 -2
  96. package/dist/logger-D3Ej3DII.js +1 -2
  97. package/dist/logger-thMPLpOG.cjs +1 -2
  98. package/dist/messaging-adapters.cjs +1 -2
  99. package/dist/messaging-adapters.d.cts +1 -2
  100. package/dist/messaging-adapters.d.ts +1 -2
  101. package/dist/messaging-adapters.js +1 -2
  102. package/dist/messaging-testing.cjs +1 -2
  103. package/dist/messaging-testing.d.cts +1 -2
  104. package/dist/messaging-testing.d.ts +1 -2
  105. package/dist/messaging-testing.js +1 -2
  106. package/dist/messaging.cjs +2 -3
  107. package/dist/messaging.d.cts +1 -2
  108. package/dist/messaging.d.ts +1 -2
  109. package/dist/messaging.js +2 -3
  110. package/dist/metric-helpers.cjs +1 -2
  111. package/dist/metric-helpers.d.cts +1 -2
  112. package/dist/metric-helpers.d.ts +1 -2
  113. package/dist/metric-helpers.js +1 -2
  114. package/dist/metric-testing-CWm6UhaR.d.ts +1 -2
  115. package/dist/metric-testing-CpvP3ZIa.d.cts +1 -2
  116. package/dist/metric-testing.cjs +1 -2
  117. package/dist/metric-testing.js +1 -2
  118. package/dist/metric.cjs +1 -2
  119. package/dist/metric.d.cts +1 -2
  120. package/dist/metric.d.ts +1 -2
  121. package/dist/metric.js +1 -2
  122. package/dist/node-require-PFqDihze.cjs +1 -2
  123. package/dist/node-require-vROmTeJ8.js +1 -2
  124. package/dist/parse-error.cjs +1 -2
  125. package/dist/parse-error.d.cts +1 -2
  126. package/dist/parse-error.d.ts +1 -2
  127. package/dist/parse-error.js +1 -2
  128. package/dist/pretty-console-exporter-CMzlrRNg.cjs +1 -2
  129. package/dist/pretty-console-exporter-DqKl_q9z.js +1 -2
  130. package/dist/register.cjs +1 -2
  131. package/dist/register.js +1 -2
  132. package/dist/registry-DVSmWg6Y.js +1 -2
  133. package/dist/registry-DYgvb62e.cjs +1 -2
  134. package/dist/sampling-BR9fkSwx.d.cts +1 -2
  135. package/dist/sampling-CP3e7-Yr.d.ts +1 -2
  136. package/dist/sampling.cjs +1 -2
  137. package/dist/sampling.js +1 -2
  138. package/dist/security-schema.cjs +1 -2
  139. package/dist/security-schema.d.cts +1 -2
  140. package/dist/security-schema.d.ts +1 -2
  141. package/dist/security-schema.js +1 -2
  142. package/dist/semantic-conventions-FhSxv-bK.d.cts +1 -2
  143. package/dist/semantic-conventions-FhSxv-bK.d.ts +1 -2
  144. package/dist/semantic-conventions.cjs +1 -2
  145. package/dist/semantic-conventions.js +1 -2
  146. package/dist/semantic-helpers.cjs +2 -3
  147. package/dist/semantic-helpers.d.cts +1 -2
  148. package/dist/semantic-helpers.d.ts +1 -2
  149. package/dist/semantic-helpers.js +2 -3
  150. package/dist/slo.cjs +1 -2
  151. package/dist/slo.d.cts +1 -2
  152. package/dist/slo.d.ts +1 -2
  153. package/dist/slo.js +1 -2
  154. package/dist/span-name-normalizer-CN1-8C76.d.cts +1 -2
  155. package/dist/span-name-normalizer-CN1-8C76.d.ts +1 -2
  156. package/dist/span-name-normalizer.cjs +1 -2
  157. package/dist/span-name-normalizer.js +1 -2
  158. package/dist/stable-hash-CS9BxvVQ.cjs +1 -2
  159. package/dist/stable-hash-ChFBIhNt.js +1 -2
  160. package/dist/structured-error-9--cxBay.js +1 -2
  161. package/dist/structured-error-CHg7DoIQ.cjs +1 -2
  162. package/dist/tail-sampling-processor.cjs +1 -2
  163. package/dist/tail-sampling-processor.d.cts +1 -2
  164. package/dist/tail-sampling-processor.d.ts +1 -2
  165. package/dist/tail-sampling-processor.js +1 -2
  166. package/dist/test-span-collector.cjs +1 -2
  167. package/dist/test-span-collector.d.cts +1 -2
  168. package/dist/test-span-collector.d.ts +1 -2
  169. package/dist/test-span-collector.js +1 -2
  170. package/dist/testing.cjs +1 -2
  171. package/dist/testing.d.cts +1 -2
  172. package/dist/testing.d.ts +1 -2
  173. package/dist/testing.js +1 -2
  174. package/dist/trace-context-IuyoPyNq.d.cts +1 -2
  175. package/dist/trace-context-IuyoPyNq.d.ts +1 -2
  176. package/dist/trace-factory-validation-BjVAinz6.js +1 -2
  177. package/dist/trace-factory-validation-Dc8epn87.cjs +1 -2
  178. package/dist/trace-helpers.cjs +1 -2
  179. package/dist/trace-helpers.d.cts +1 -2
  180. package/dist/trace-helpers.d.ts +1 -2
  181. package/dist/trace-helpers.js +1 -2
  182. package/dist/tracer-provider.cjs +1 -2
  183. package/dist/tracer-provider.d.cts +1 -2
  184. package/dist/tracer-provider.d.ts +1 -2
  185. package/dist/tracer-provider.js +1 -2
  186. package/dist/validate.cjs +1 -2
  187. package/dist/validate.d.cts +1 -2
  188. package/dist/validate.d.ts +1 -2
  189. package/dist/validate.js +1 -2
  190. package/dist/validation-attributes.cjs +1 -2
  191. package/dist/validation-attributes.d.cts +1 -2
  192. package/dist/validation-attributes.d.ts +1 -2
  193. package/dist/validation-attributes.js +1 -2
  194. package/dist/webhook.cjs +2 -3
  195. package/dist/webhook.d.cts +1 -2
  196. package/dist/webhook.d.ts +1 -2
  197. package/dist/webhook.js +2 -3
  198. package/dist/workflow-distributed.cjs +2 -3
  199. package/dist/workflow-distributed.d.cts +1 -2
  200. package/dist/workflow-distributed.d.ts +1 -2
  201. package/dist/workflow-distributed.js +2 -3
  202. package/dist/workflow.cjs +2 -3
  203. package/dist/workflow.d.cts +1 -2
  204. package/dist/workflow.d.ts +1 -2
  205. package/dist/workflow.js +2 -3
  206. package/dist/yaml-config.cjs +1 -2
  207. package/dist/yaml-config.d.cts +4 -5
  208. package/dist/yaml-config.d.ts +4 -5
  209. package/dist/yaml-config.js +1 -2
  210. package/package.json +47 -32
  211. package/dist/analysis.cjs.map +0 -1
  212. package/dist/analysis.d.cts.map +0 -1
  213. package/dist/analysis.d.ts.map +0 -1
  214. package/dist/analysis.js.map +0 -1
  215. package/dist/attribute-redacting-processor-Pk7lAzWd.d.cts.map +0 -1
  216. package/dist/attribute-redacting-processor-Pk7lAzWd.d.ts.map +0 -1
  217. package/dist/attribute-redacting-processor.cjs.map +0 -1
  218. package/dist/attribute-redacting-processor.js.map +0 -1
  219. package/dist/attributes-B7wix2VG.js.map +0 -1
  220. package/dist/attributes-aDmJYral.cjs.map +0 -1
  221. package/dist/auto.cjs.map +0 -1
  222. package/dist/auto.js.map +0 -1
  223. package/dist/business-baggage.cjs.map +0 -1
  224. package/dist/business-baggage.d.cts.map +0 -1
  225. package/dist/business-baggage.d.ts.map +0 -1
  226. package/dist/business-baggage.js.map +0 -1
  227. package/dist/canonical-log-line-processor-B4WgG-VS.d.cts.map +0 -1
  228. package/dist/canonical-log-line-processor-CL_J7gb5.d.ts.map +0 -1
  229. package/dist/canonical-log-line-processor-DOjb6Kxy.cjs.map +0 -1
  230. package/dist/canonical-log-line-processor-mKABvGP0.js.map +0 -1
  231. package/dist/config.cjs.map +0 -1
  232. package/dist/config.d.cts.map +0 -1
  233. package/dist/config.d.ts.map +0 -1
  234. package/dist/config.js.map +0 -1
  235. package/dist/correlated-events-Bzh5y-UB.js.map +0 -1
  236. package/dist/correlated-events-kSwLo3mi.cjs.map +0 -1
  237. package/dist/correlation-id.d.cts.map +0 -1
  238. package/dist/correlation-id.d.ts.map +0 -1
  239. package/dist/db.cjs.map +0 -1
  240. package/dist/db.d.cts.map +0 -1
  241. package/dist/db.d.ts.map +0 -1
  242. package/dist/db.js.map +0 -1
  243. package/dist/decorators.cjs.map +0 -1
  244. package/dist/decorators.d.cts.map +0 -1
  245. package/dist/decorators.d.ts.map +0 -1
  246. package/dist/decorators.js.map +0 -1
  247. package/dist/define-event-B2z1SBe7.d.ts.map +0 -1
  248. package/dist/define-event-CGG048HE.d.cts.map +0 -1
  249. package/dist/diagnostics.cjs.map +0 -1
  250. package/dist/diagnostics.d.cts.map +0 -1
  251. package/dist/diagnostics.d.ts.map +0 -1
  252. package/dist/diagnostics.js.map +0 -1
  253. package/dist/drain-pipeline.cjs.map +0 -1
  254. package/dist/drain-pipeline.d.cts.map +0 -1
  255. package/dist/drain-pipeline.d.ts.map +0 -1
  256. package/dist/drain-pipeline.js.map +0 -1
  257. package/dist/enrichers.cjs.map +0 -1
  258. package/dist/enrichers.d.cts.map +0 -1
  259. package/dist/enrichers.d.ts.map +0 -1
  260. package/dist/enrichers.js.map +0 -1
  261. package/dist/event-subscriber-CWh8sTGh.d.cts.map +0 -1
  262. package/dist/event-subscriber-CWh8sTGh.d.ts.map +0 -1
  263. package/dist/event-testing-CA2mIx1E.d.ts.map +0 -1
  264. package/dist/event-testing-D0qWfqAy.d.cts.map +0 -1
  265. package/dist/event-testing.cjs.map +0 -1
  266. package/dist/event-testing.js.map +0 -1
  267. package/dist/event.d.cts.map +0 -1
  268. package/dist/event.d.ts.map +0 -1
  269. package/dist/exporters.d.cts.map +0 -1
  270. package/dist/exporters.d.ts.map +0 -1
  271. package/dist/filtering-span-processor-BpDagWNa.d.cts.map +0 -1
  272. package/dist/filtering-span-processor-BpDagWNa.d.ts.map +0 -1
  273. package/dist/filtering-span-processor.cjs.map +0 -1
  274. package/dist/filtering-span-processor.js.map +0 -1
  275. package/dist/functional-BnDUxnSl.js.map +0 -1
  276. package/dist/functional-DcLBuCPz.cjs.map +0 -1
  277. package/dist/functional.d.cts.map +0 -1
  278. package/dist/functional.d.ts.map +0 -1
  279. package/dist/http.cjs.map +0 -1
  280. package/dist/http.d.cts.map +0 -1
  281. package/dist/http.d.ts.map +0 -1
  282. package/dist/http.js.map +0 -1
  283. package/dist/index-BPcxVucm.d.cts.map +0 -1
  284. package/dist/index-DolOVX6F.d.ts.map +0 -1
  285. package/dist/index.cjs.map +0 -1
  286. package/dist/index.d.cts.map +0 -1
  287. package/dist/index.d.ts.map +0 -1
  288. package/dist/index.js.map +0 -1
  289. package/dist/init-C3RApHKJ.cjs.map +0 -1
  290. package/dist/init-D6n2diBy.d.ts.map +0 -1
  291. package/dist/init-R-gSEXkJ.js.map +0 -1
  292. package/dist/init-XzXzrarP.d.cts.map +0 -1
  293. package/dist/instrumentation.cjs.map +0 -1
  294. package/dist/instrumentation.d.cts.map +0 -1
  295. package/dist/instrumentation.d.ts.map +0 -1
  296. package/dist/instrumentation.js.map +0 -1
  297. package/dist/logger-CN4xpzMd.d.cts.map +0 -1
  298. package/dist/logger-CN4xpzMd.d.ts.map +0 -1
  299. package/dist/logger-D3Ej3DII.js.map +0 -1
  300. package/dist/logger-thMPLpOG.cjs.map +0 -1
  301. package/dist/messaging-adapters.cjs.map +0 -1
  302. package/dist/messaging-adapters.d.cts.map +0 -1
  303. package/dist/messaging-adapters.d.ts.map +0 -1
  304. package/dist/messaging-adapters.js.map +0 -1
  305. package/dist/messaging-testing.cjs.map +0 -1
  306. package/dist/messaging-testing.d.cts.map +0 -1
  307. package/dist/messaging-testing.d.ts.map +0 -1
  308. package/dist/messaging-testing.js.map +0 -1
  309. package/dist/messaging.cjs.map +0 -1
  310. package/dist/messaging.d.cts.map +0 -1
  311. package/dist/messaging.d.ts.map +0 -1
  312. package/dist/messaging.js.map +0 -1
  313. package/dist/metric-helpers.cjs.map +0 -1
  314. package/dist/metric-helpers.d.cts.map +0 -1
  315. package/dist/metric-helpers.d.ts.map +0 -1
  316. package/dist/metric-helpers.js.map +0 -1
  317. package/dist/metric-testing-CWm6UhaR.d.ts.map +0 -1
  318. package/dist/metric-testing-CpvP3ZIa.d.cts.map +0 -1
  319. package/dist/metric-testing.cjs.map +0 -1
  320. package/dist/metric-testing.js.map +0 -1
  321. package/dist/metric.cjs.map +0 -1
  322. package/dist/metric.d.cts.map +0 -1
  323. package/dist/metric.d.ts.map +0 -1
  324. package/dist/metric.js.map +0 -1
  325. package/dist/node-require-PFqDihze.cjs.map +0 -1
  326. package/dist/node-require-vROmTeJ8.js.map +0 -1
  327. package/dist/parse-error.cjs.map +0 -1
  328. package/dist/parse-error.d.cts.map +0 -1
  329. package/dist/parse-error.d.ts.map +0 -1
  330. package/dist/parse-error.js.map +0 -1
  331. package/dist/pretty-console-exporter-CMzlrRNg.cjs.map +0 -1
  332. package/dist/pretty-console-exporter-DqKl_q9z.js.map +0 -1
  333. package/dist/register.cjs.map +0 -1
  334. package/dist/register.js.map +0 -1
  335. package/dist/registry-DVSmWg6Y.js.map +0 -1
  336. package/dist/registry-DYgvb62e.cjs.map +0 -1
  337. package/dist/sampling-BR9fkSwx.d.cts.map +0 -1
  338. package/dist/sampling-CP3e7-Yr.d.ts.map +0 -1
  339. package/dist/sampling.cjs.map +0 -1
  340. package/dist/sampling.js.map +0 -1
  341. package/dist/security-schema.cjs.map +0 -1
  342. package/dist/security-schema.d.cts.map +0 -1
  343. package/dist/security-schema.d.ts.map +0 -1
  344. package/dist/security-schema.js.map +0 -1
  345. package/dist/semantic-conventions-FhSxv-bK.d.cts.map +0 -1
  346. package/dist/semantic-conventions-FhSxv-bK.d.ts.map +0 -1
  347. package/dist/semantic-conventions.cjs.map +0 -1
  348. package/dist/semantic-conventions.js.map +0 -1
  349. package/dist/semantic-helpers.cjs.map +0 -1
  350. package/dist/semantic-helpers.d.cts.map +0 -1
  351. package/dist/semantic-helpers.d.ts.map +0 -1
  352. package/dist/semantic-helpers.js.map +0 -1
  353. package/dist/slo.cjs.map +0 -1
  354. package/dist/slo.d.cts.map +0 -1
  355. package/dist/slo.d.ts.map +0 -1
  356. package/dist/slo.js.map +0 -1
  357. package/dist/span-name-normalizer-CN1-8C76.d.cts.map +0 -1
  358. package/dist/span-name-normalizer-CN1-8C76.d.ts.map +0 -1
  359. package/dist/span-name-normalizer.cjs.map +0 -1
  360. package/dist/span-name-normalizer.js.map +0 -1
  361. package/dist/stable-hash-CS9BxvVQ.cjs.map +0 -1
  362. package/dist/stable-hash-ChFBIhNt.js.map +0 -1
  363. package/dist/structured-error-9--cxBay.js.map +0 -1
  364. package/dist/structured-error-CHg7DoIQ.cjs.map +0 -1
  365. package/dist/tail-sampling-processor.cjs.map +0 -1
  366. package/dist/tail-sampling-processor.d.cts.map +0 -1
  367. package/dist/tail-sampling-processor.d.ts.map +0 -1
  368. package/dist/tail-sampling-processor.js.map +0 -1
  369. package/dist/test-span-collector.cjs.map +0 -1
  370. package/dist/test-span-collector.d.cts.map +0 -1
  371. package/dist/test-span-collector.d.ts.map +0 -1
  372. package/dist/test-span-collector.js.map +0 -1
  373. package/dist/testing.cjs.map +0 -1
  374. package/dist/testing.d.cts.map +0 -1
  375. package/dist/testing.d.ts.map +0 -1
  376. package/dist/testing.js.map +0 -1
  377. package/dist/trace-context-IuyoPyNq.d.cts.map +0 -1
  378. package/dist/trace-context-IuyoPyNq.d.ts.map +0 -1
  379. package/dist/trace-factory-validation-BjVAinz6.js.map +0 -1
  380. package/dist/trace-factory-validation-Dc8epn87.cjs.map +0 -1
  381. package/dist/trace-helpers.cjs.map +0 -1
  382. package/dist/trace-helpers.d.cts.map +0 -1
  383. package/dist/trace-helpers.d.ts.map +0 -1
  384. package/dist/trace-helpers.js.map +0 -1
  385. package/dist/tracer-provider.cjs.map +0 -1
  386. package/dist/tracer-provider.d.cts.map +0 -1
  387. package/dist/tracer-provider.d.ts.map +0 -1
  388. package/dist/tracer-provider.js.map +0 -1
  389. package/dist/validate.cjs.map +0 -1
  390. package/dist/validate.d.cts.map +0 -1
  391. package/dist/validate.d.ts.map +0 -1
  392. package/dist/validate.js.map +0 -1
  393. package/dist/validation-attributes.cjs.map +0 -1
  394. package/dist/validation-attributes.d.cts.map +0 -1
  395. package/dist/validation-attributes.d.ts.map +0 -1
  396. package/dist/validation-attributes.js.map +0 -1
  397. package/dist/webhook.cjs.map +0 -1
  398. package/dist/webhook.d.cts.map +0 -1
  399. package/dist/webhook.d.ts.map +0 -1
  400. package/dist/webhook.js.map +0 -1
  401. package/dist/workflow-distributed.cjs.map +0 -1
  402. package/dist/workflow-distributed.d.cts.map +0 -1
  403. package/dist/workflow-distributed.d.ts.map +0 -1
  404. package/dist/workflow-distributed.js.map +0 -1
  405. package/dist/workflow.cjs.map +0 -1
  406. package/dist/workflow.d.cts.map +0 -1
  407. package/dist/workflow.d.ts.map +0 -1
  408. package/dist/workflow.js.map +0 -1
  409. package/dist/yaml-config.cjs.map +0 -1
  410. package/dist/yaml-config.d.cts.map +0 -1
  411. package/dist/yaml-config.d.ts.map +0 -1
  412. package/dist/yaml-config.js.map +0 -1
package/dist/event.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_init = require('./init-C3RApHKJ.cjs');
2
+ const require_init = require('./init-CzNFWUd8.cjs');
3
3
 
4
4
  exports.Event = require_init.Event;
5
5
  exports.getEvents = require_init.getEvents;
package/dist/event.d.cts CHANGED
@@ -328,5 +328,4 @@ declare function getEvents(serviceName: string, logger?: Logger): Event;
328
328
  */
329
329
  declare function resetEvents(): void;
330
330
  //#endregion
331
- export { Event, type EventAttributes, type EventAttributesInput, EventsOptions, type FunnelStatus, type OutcomeStatus, getEvents, resetEvents };
332
- //# sourceMappingURL=event.d.cts.map
331
+ export { Event, type EventAttributes, type EventAttributesInput, EventsOptions, type FunnelStatus, type OutcomeStatus, getEvents, resetEvents };
package/dist/event.d.ts CHANGED
@@ -328,5 +328,4 @@ declare function getEvents(serviceName: string, logger?: Logger): Event;
328
328
  */
329
329
  declare function resetEvents(): void;
330
330
  //#endregion
331
- export { Event, type EventAttributes, type EventAttributesInput, EventsOptions, type FunnelStatus, type OutcomeStatus, getEvents, resetEvents };
332
- //# sourceMappingURL=event.d.ts.map
331
+ export { Event, type EventAttributes, type EventAttributesInput, EventsOptions, type FunnelStatus, type OutcomeStatus, getEvents, resetEvents };
package/dist/event.js CHANGED
@@ -1,3 +1,3 @@
1
- import { d as getEvents, f as resetEvents, u as Event } from "./init-R-gSEXkJ.js";
1
+ import { d as getEvents, f as resetEvents, u as Event } from "./init-DDkh2brw.js";
2
2
 
3
3
  export { Event, getEvents, resetEvents };
@@ -101,5 +101,4 @@ declare class PrettyConsoleExporter implements SpanExporter {
101
101
  forceFlush(): Promise<void>;
102
102
  }
103
103
  //#endregion
104
- export { ConsoleSpanExporter, InMemorySpanExporter, PrettyConsoleExporter, type PrettyConsoleExporterOptions };
105
- //# sourceMappingURL=exporters.d.cts.map
104
+ export { ConsoleSpanExporter, InMemorySpanExporter, PrettyConsoleExporter, type PrettyConsoleExporterOptions };
@@ -101,5 +101,4 @@ declare class PrettyConsoleExporter implements SpanExporter {
101
101
  forceFlush(): Promise<void>;
102
102
  }
103
103
  //#endregion
104
- export { ConsoleSpanExporter, InMemorySpanExporter, PrettyConsoleExporter, type PrettyConsoleExporterOptions };
105
- //# sourceMappingURL=exporters.d.ts.map
104
+ export { ConsoleSpanExporter, InMemorySpanExporter, PrettyConsoleExporter, type PrettyConsoleExporterOptions };
@@ -54,5 +54,4 @@ declare class FilteringSpanProcessor implements SpanProcessor {
54
54
  shutdown(): Promise<void>;
55
55
  }
56
56
  //#endregion
57
- export { FilteringSpanProcessorOptions as n, SpanFilterPredicate as r, FilteringSpanProcessor as t };
58
- //# sourceMappingURL=filtering-span-processor-BpDagWNa.d.cts.map
57
+ export { FilteringSpanProcessorOptions as n, SpanFilterPredicate as r, FilteringSpanProcessor as t };
@@ -54,5 +54,4 @@ declare class FilteringSpanProcessor implements SpanProcessor {
54
54
  shutdown(): Promise<void>;
55
55
  }
56
56
  //#endregion
57
- export { FilteringSpanProcessorOptions as n, SpanFilterPredicate as r, FilteringSpanProcessor as t };
58
- //# sourceMappingURL=filtering-span-processor-BpDagWNa.d.ts.map
57
+ export { FilteringSpanProcessorOptions as n, SpanFilterPredicate as r, FilteringSpanProcessor as t };
@@ -48,5 +48,4 @@ var FilteringSpanProcessor = class {
48
48
  };
49
49
 
50
50
  //#endregion
51
- exports.FilteringSpanProcessor = FilteringSpanProcessor;
52
- //# sourceMappingURL=filtering-span-processor.cjs.map
51
+ exports.FilteringSpanProcessor = FilteringSpanProcessor;
@@ -46,5 +46,4 @@ var FilteringSpanProcessor = class {
46
46
  };
47
47
 
48
48
  //#endregion
49
- export { FilteringSpanProcessor };
50
- //# sourceMappingURL=filtering-span-processor.js.map
49
+ export { FilteringSpanProcessor };
@@ -2,7 +2,7 @@ const require_rolldown_runtime = require('./rolldown-runtime-C_NdSu1c.cjs');
2
2
  const require_tracer_provider = require('./tracer-provider.cjs');
3
3
  const require_config = require('./config.cjs');
4
4
  const require_sampling = require('./sampling.cjs');
5
- const require_init = require('./init-C3RApHKJ.cjs');
5
+ const require_init = require('./init-CzNFWUd8.cjs');
6
6
  const require_trace_helpers = require('./trace-helpers.cjs');
7
7
  let _opentelemetry_api = require("@opentelemetry/api");
8
8
  let node_fs = require("node:fs");
@@ -884,5 +884,4 @@ Object.defineProperty(exports, 'withTracing', {
884
884
  get: function () {
885
885
  return withTracing;
886
886
  }
887
- });
888
- //# sourceMappingURL=functional-DcLBuCPz.cjs.map
887
+ });
@@ -1,7 +1,7 @@
1
1
  import { getForceFlushableProvider } from "./tracer-provider.js";
2
2
  import { getConfig } from "./config.js";
3
3
  import { AUTOTEL_SAMPLING_RATE, AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AlwaysSampler } from "./sampling.js";
4
- import { D as getActiveContextWithBaggage, O as getContextStorage, T as createTraceContext, h as getEventQueue, m as runInOperationContext, r as getSdk, t as getConfig$1 } from "./init-R-gSEXkJ.js";
4
+ import { D as getActiveContextWithBaggage, O as getContextStorage, T as createTraceContext, h as getEventQueue, m as runInOperationContext, r as getSdk, t as getConfig$1 } from "./init-DDkh2brw.js";
5
5
  import { setSpanName } from "./trace-helpers.js";
6
6
  import { SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
7
7
  import * as nodeFs from "node:fs";
@@ -834,5 +834,4 @@ function withBaggage(options) {
834
834
  }
835
835
 
836
836
  //#endregion
837
- export { trace$1 as a, withTracing as c, span as i, getActiveTraceContext as n, withBaggage as o, instrument as r, withNewContext as s, ctx as t };
838
- //# sourceMappingURL=functional-BnDUxnSl.js.map
837
+ export { trace$1 as a, withTracing as c, span as i, getActiveTraceContext as n, withBaggage as o, instrument as r, withNewContext as s, ctx as t };
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_functional = require('./functional-DcLBuCPz.cjs');
2
+ const require_functional = require('./functional-D545J0Ba.cjs');
3
3
 
4
4
  exports.ctx = require_functional.ctx;
5
5
  exports.getActiveTraceContext = require_functional.getActiveTraceContext;
@@ -430,5 +430,4 @@ interface WithBaggageOptions<T = unknown> {
430
430
  */
431
431
  declare function withBaggage<T = unknown>(options: WithBaggageOptions<T>): T | Promise<T>;
432
432
  //#endregion
433
- export { InstrumentOptions, SingleInstrumentOptions, SpanOptions, type TraceContext, TracingOptions, WithBaggageOptions, WithNewContextOptions, ctx, getActiveTraceContext, instrument, span, trace, withBaggage, withNewContext, withTracing };
434
- //# sourceMappingURL=functional.d.cts.map
433
+ export { InstrumentOptions, SingleInstrumentOptions, SpanOptions, type TraceContext, TracingOptions, WithBaggageOptions, WithNewContextOptions, ctx, getActiveTraceContext, instrument, span, trace, withBaggage, withNewContext, withTracing };
@@ -430,5 +430,4 @@ interface WithBaggageOptions<T = unknown> {
430
430
  */
431
431
  declare function withBaggage<T = unknown>(options: WithBaggageOptions<T>): T | Promise<T>;
432
432
  //#endregion
433
- export { InstrumentOptions, SingleInstrumentOptions, SpanOptions, type TraceContext, TracingOptions, WithBaggageOptions, WithNewContextOptions, ctx, getActiveTraceContext, instrument, span, trace, withBaggage, withNewContext, withTracing };
434
- //# sourceMappingURL=functional.d.ts.map
433
+ export { InstrumentOptions, SingleInstrumentOptions, SpanOptions, type TraceContext, TracingOptions, WithBaggageOptions, WithNewContextOptions, ctx, getActiveTraceContext, instrument, span, trace, withBaggage, withNewContext, withTracing };
@@ -1,3 +1,3 @@
1
- import { a as trace, c as withTracing, i as span, n as getActiveTraceContext, o as withBaggage, r as instrument, s as withNewContext, t as ctx } from "./functional-BnDUxnSl.js";
1
+ import { a as trace, c as withTracing, i as span, n as getActiveTraceContext, o as withBaggage, r as instrument, s as withNewContext, t as ctx } from "./functional-DYAZiYxr.js";
2
2
 
3
3
  export { ctx, getActiveTraceContext, instrument, span, trace, withBaggage, withNewContext, withTracing };
package/dist/http.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_config = require('./config.cjs');
3
- const require_init = require('./init-C3RApHKJ.cjs');
3
+ const require_init = require('./init-CzNFWUd8.cjs');
4
4
  let _opentelemetry_api = require("@opentelemetry/api");
5
5
 
6
6
  //#region src/http.ts
@@ -295,5 +295,4 @@ function extractTraceContext(headers) {
295
295
  exports.HttpInstrumented = HttpInstrumented;
296
296
  exports.extractTraceContext = extractTraceContext;
297
297
  exports.injectTraceContext = injectTraceContext;
298
- exports.traceHttpRequest = traceHttpRequest;
299
- //# sourceMappingURL=http.cjs.map
298
+ exports.traceHttpRequest = traceHttpRequest;
package/dist/http.d.cts CHANGED
@@ -144,5 +144,4 @@ declare function injectTraceContext(headers?: Record<string, string>): Record<st
144
144
  */
145
145
  declare function extractTraceContext(headers: Record<string, string | string[] | undefined>): ReturnType<typeof context.active>;
146
146
  //#endregion
147
- export { HttpInstrumented, HttpInstrumentedOptions, extractTraceContext, injectTraceContext, traceHttpRequest };
148
- //# sourceMappingURL=http.d.cts.map
147
+ export { HttpInstrumented, HttpInstrumentedOptions, extractTraceContext, injectTraceContext, traceHttpRequest };
package/dist/http.d.ts CHANGED
@@ -144,5 +144,4 @@ declare function injectTraceContext(headers?: Record<string, string>): Record<st
144
144
  */
145
145
  declare function extractTraceContext(headers: Record<string, string | string[] | undefined>): ReturnType<typeof context.active>;
146
146
  //#endregion
147
- export { HttpInstrumented, HttpInstrumentedOptions, extractTraceContext, injectTraceContext, traceHttpRequest };
148
- //# sourceMappingURL=http.d.ts.map
147
+ export { HttpInstrumented, HttpInstrumentedOptions, extractTraceContext, injectTraceContext, traceHttpRequest };
package/dist/http.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { getConfig } from "./config.js";
2
- import { D as getActiveContextWithBaggage } from "./init-R-gSEXkJ.js";
2
+ import { D as getActiveContextWithBaggage } from "./init-DDkh2brw.js";
3
3
  import { SpanStatusCode, context, propagation } from "@opentelemetry/api";
4
4
 
5
5
  //#region src/http.ts
@@ -291,5 +291,4 @@ function extractTraceContext(headers) {
291
291
  }
292
292
 
293
293
  //#endregion
294
- export { HttpInstrumented, extractTraceContext, injectTraceContext, traceHttpRequest };
295
- //# sourceMappingURL=http.js.map
294
+ export { HttpInstrumented, extractTraceContext, injectTraceContext, traceHttpRequest };
@@ -673,5 +673,4 @@ type AttributeSetter = {
673
673
  declare function mergeAttrs(...attrSets: Array<Record<string, unknown> | undefined>): Record<string, unknown>;
674
674
  declare function safeSetAttributes(span: AttributeSetter, attrs: Record<string, unknown>, policy?: AttributePolicy): void;
675
675
  //#endregion
676
- export { ExceptionAttrs as A, PeerAttrs as B, CloudAttrs as C, DeploymentAttrs as D, DBAttrs as E, HTTPServerAttrs as F, SessionAttrs as G, RPCAttrs as H, K8sAttrs as I, URLAttrs as J, TLSAttrs as K, MessagingAttrs as L, FeatureFlagAttrs as M, GraphQLAttrs as N, DeviceAttrs as O, HTTPClientAttrs as P, NetworkAttrs as R, ClientAttrs as S, ContainerAttrs as T, ServerAddressAttrs as U, ProcessAttrs as V, ServiceAttrs as W, UserAttrs as Y, autoRedactPII as _, httpClient as a, validateAttribute as b, mergeServiceResource as c, setError as d, setException as f, AttributePolicy as g, AttributeGuardrails as h, dbClient as i, FaaSAttrs as j, ErrorAttrs as k, request as l, setUser as m, safeSetAttributes as n, httpServer as o, setSession as p, ThreadAttrs as q, transaction as r, identify as s, mergeAttrs as t, setDevice as u, checkDeprecatedAttribute as v, CodeAttrs as w, attrs as x, defaultGuardrails as y, OTelAttrs as z };
677
- //# sourceMappingURL=index-BPcxVucm.d.cts.map
676
+ export { ExceptionAttrs as A, PeerAttrs as B, CloudAttrs as C, DeploymentAttrs as D, DBAttrs as E, HTTPServerAttrs as F, SessionAttrs as G, RPCAttrs as H, K8sAttrs as I, URLAttrs as J, TLSAttrs as K, MessagingAttrs as L, FeatureFlagAttrs as M, GraphQLAttrs as N, DeviceAttrs as O, HTTPClientAttrs as P, NetworkAttrs as R, ClientAttrs as S, ContainerAttrs as T, ServerAddressAttrs as U, ProcessAttrs as V, ServiceAttrs as W, UserAttrs as Y, autoRedactPII as _, httpClient as a, validateAttribute as b, mergeServiceResource as c, setError as d, setException as f, AttributePolicy as g, AttributeGuardrails as h, dbClient as i, FaaSAttrs as j, ErrorAttrs as k, request as l, setUser as m, safeSetAttributes as n, httpServer as o, setSession as p, ThreadAttrs as q, transaction as r, identify as s, mergeAttrs as t, setDevice as u, checkDeprecatedAttribute as v, CodeAttrs as w, attrs as x, defaultGuardrails as y, OTelAttrs as z };
@@ -673,5 +673,4 @@ type AttributeSetter = {
673
673
  declare function mergeAttrs(...attrSets: Array<Record<string, unknown> | undefined>): Record<string, unknown>;
674
674
  declare function safeSetAttributes(span: AttributeSetter, attrs: Record<string, unknown>, policy?: AttributePolicy): void;
675
675
  //#endregion
676
- export { ExceptionAttrs as A, PeerAttrs as B, CloudAttrs as C, DeploymentAttrs as D, DBAttrs as E, HTTPServerAttrs as F, SessionAttrs as G, RPCAttrs as H, K8sAttrs as I, URLAttrs as J, TLSAttrs as K, MessagingAttrs as L, FeatureFlagAttrs as M, GraphQLAttrs as N, DeviceAttrs as O, HTTPClientAttrs as P, NetworkAttrs as R, ClientAttrs as S, ContainerAttrs as T, ServerAddressAttrs as U, ProcessAttrs as V, ServiceAttrs as W, UserAttrs as Y, autoRedactPII as _, httpClient as a, validateAttribute as b, mergeServiceResource as c, setError as d, setException as f, AttributePolicy as g, AttributeGuardrails as h, dbClient as i, FaaSAttrs as j, ErrorAttrs as k, request as l, setUser as m, safeSetAttributes as n, httpServer as o, setSession as p, ThreadAttrs as q, transaction as r, identify as s, mergeAttrs as t, setDevice as u, checkDeprecatedAttribute as v, CodeAttrs as w, attrs as x, defaultGuardrails as y, OTelAttrs as z };
677
- //# sourceMappingURL=index-DolOVX6F.d.ts.map
676
+ export { ExceptionAttrs as A, PeerAttrs as B, CloudAttrs as C, DeploymentAttrs as D, DBAttrs as E, HTTPServerAttrs as F, SessionAttrs as G, RPCAttrs as H, K8sAttrs as I, URLAttrs as J, TLSAttrs as K, MessagingAttrs as L, FeatureFlagAttrs as M, GraphQLAttrs as N, DeviceAttrs as O, HTTPClientAttrs as P, NetworkAttrs as R, ClientAttrs as S, ContainerAttrs as T, ServerAddressAttrs as U, ProcessAttrs as V, ServiceAttrs as W, UserAttrs as Y, autoRedactPII as _, httpClient as a, validateAttribute as b, mergeServiceResource as c, setError as d, setException as f, AttributePolicy as g, AttributeGuardrails as h, dbClient as i, FaaSAttrs as j, ErrorAttrs as k, request as l, setUser as m, safeSetAttributes as n, httpServer as o, setSession as p, ThreadAttrs as q, transaction as r, identify as s, mergeAttrs as t, setDevice as u, checkDeprecatedAttribute as v, CodeAttrs as w, attrs as x, defaultGuardrails as y, OTelAttrs as z };
package/dist/index.cjs CHANGED
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_rolldown_runtime = require('./rolldown-runtime-C_NdSu1c.cjs');
3
3
  const require_tracer_provider = require('./tracer-provider.cjs');
4
4
  const require_sampling = require('./sampling.cjs');
5
- const require_init = require('./init-C3RApHKJ.cjs');
5
+ const require_init = require('./init-CzNFWUd8.cjs');
6
6
  const require_filtering_span_processor = require('./filtering-span-processor.cjs');
7
7
  const require_span_name_normalizer = require('./span-name-normalizer.cjs');
8
8
  const require_attribute_redacting_processor = require('./attribute-redacting-processor.cjs');
@@ -10,7 +10,7 @@ const require_canonical_log_line_processor = require('./canonical-log-line-proce
10
10
  const require_structured_error = require('./structured-error-CHg7DoIQ.cjs');
11
11
  const require_metric = require('./metric.cjs');
12
12
  const require_trace_helpers = require('./trace-helpers.cjs');
13
- const require_functional = require('./functional-DcLBuCPz.cjs');
13
+ const require_functional = require('./functional-D545J0Ba.cjs');
14
14
  const require_stable_hash = require('./stable-hash-CS9BxvVQ.cjs');
15
15
  const require_correlated_events = require('./correlated-events-kSwLo3mi.cjs');
16
16
  const require_parse_error = require('./parse-error.cjs');
@@ -108,6 +108,7 @@ function getRequestLogger(ctx, options) {
108
108
  const contextState = {};
109
109
  let emitted = false;
110
110
  let lastSnapshot = null;
111
+ let hasExplicitLevel = false;
111
112
  const addLogEvent = (level, message, fields) => {
112
113
  const attrs = fields ? require_structured_error.flattenToAttributes(fields) : void 0;
113
114
  require_correlated_events.emitCorrelatedEvent(activeContext, `log.${level}`, {
@@ -125,6 +126,12 @@ function getRequestLogger(ctx, options) {
125
126
  mergeInto$1(contextState, fields);
126
127
  activeContext.setAttributes(require_structured_error.flattenToAttributes(fields));
127
128
  },
129
+ setLevel(level) {
130
+ sealCheck("log.setLevel()", ["autotel.log.level"]);
131
+ if (emitted) return;
132
+ hasExplicitLevel = true;
133
+ activeContext.setAttribute("autotel.log.level", level);
134
+ },
128
135
  info(message, fields) {
129
136
  const keys = fields ? ["message", ...Object.keys(fields).filter((k) => k !== "requestLogs")] : ["message"];
130
137
  sealCheck("log.info()", keys);
@@ -140,7 +147,7 @@ function getRequestLogger(ctx, options) {
140
147
  sealCheck("log.warn()", keys);
141
148
  if (emitted) return;
142
149
  addLogEvent("warn", message, fields);
143
- activeContext.setAttribute("autotel.log.level", "warn");
150
+ if (!hasExplicitLevel) activeContext.setAttribute("autotel.log.level", "warn");
144
151
  if (fields) {
145
152
  mergeInto$1(contextState, fields);
146
153
  activeContext.setAttributes(require_structured_error.flattenToAttributes(fields));
@@ -157,7 +164,7 @@ function getRequestLogger(ctx, options) {
157
164
  mergeInto$1(contextState, fields);
158
165
  activeContext.setAttributes(require_structured_error.flattenToAttributes(fields));
159
166
  }
160
- activeContext.setAttribute("autotel.log.level", "error");
167
+ if (!hasExplicitLevel) activeContext.setAttribute("autotel.log.level", "error");
161
168
  },
162
169
  getContext() {
163
170
  return { ...contextState };
@@ -261,6 +268,7 @@ function createNoopRequestLogger() {
261
268
  });
262
269
  return {
263
270
  set() {},
271
+ setLevel() {},
264
272
  info() {},
265
273
  warn() {},
266
274
  error() {},
@@ -666,5 +674,4 @@ exports.track = require_init.track;
666
674
  exports.validateAttribute = require_attributes.validateAttribute;
667
675
  exports.withBaggage = require_functional.withBaggage;
668
676
  exports.withNewContext = require_functional.withNewContext;
669
- exports.withTracing = require_functional.withTracing;
670
- //# sourceMappingURL=index.cjs.map
677
+ exports.withTracing = require_functional.withTracing;
package/dist/index.d.cts CHANGED
@@ -9,7 +9,7 @@ import { DrainPipelineOptions, PipelineDrainFn, createDrainPipeline } from "./dr
9
9
  import { a as EventSubscriber, c as OutcomeStatus, i as EventSchemaMetadata, n as EventAttributes, o as EventTrackingOptions, s as FunnelStatus, t as AutotelEventContext } from "./event-subscriber-CWh8sTGh.cjs";
10
10
  import { Event, EventsOptions, getEvents, resetEvents } from "./event.cjs";
11
11
  import { n as FilteringSpanProcessorOptions, r as SpanFilterPredicate, t as FilteringSpanProcessor } from "./filtering-span-processor-BpDagWNa.cjs";
12
- import { a as isLoggerLocked, c as StringRedactor, i as isInitialized, l as createStringRedactor, o as lockLogger, r as init, s as ProcessHandlersConfig, t as AutotelConfig } from "./init-XzXzrarP.cjs";
12
+ import { a as isLoggerLocked, c as StringRedactor, i as isInitialized, l as createStringRedactor, o as lockLogger, r as init, s as ProcessHandlersConfig, t as AutotelConfig } from "./init-BoIYyB6Q.cjs";
13
13
  import { a as SpanNameNormalizerPreset, i as SpanNameNormalizerFn, n as NORMALIZER_PRESETS, o as SpanNameNormalizingProcessor, r as SpanNameNormalizerConfig, s as SpanNameNormalizingProcessorOptions, t as NORMALIZER_PATTERNS } from "./span-name-normalizer-CN1-8C76.cjs";
14
14
  import "./canonical-log-line-processor-B4WgG-VS.cjs";
15
15
  import { i as defineEvent, n as DefinedEvent, r as SchemaLike, t as DefineEventOptions } from "./define-event-CGG048HE.cjs";
@@ -391,6 +391,8 @@ declare function shutdown(): Promise<void>;
391
391
  declare function runWithRequestContext<T>(ctx: TraceContext$1, fn: () => T): T;
392
392
  interface RequestLogger {
393
393
  set(fields: Record<string, unknown>): void;
394
+ /** Set snapshot severity without adding a log event or exception. */
395
+ setLevel(level: RequestLogLevel): void;
394
396
  info(message: string, fields?: Record<string, unknown>): void;
395
397
  warn(message: string, fields?: Record<string, unknown>): void;
396
398
  error(error: Error | string, fields?: Record<string, unknown>): void;
@@ -398,6 +400,7 @@ interface RequestLogger {
398
400
  emitNow(overrides?: Record<string, unknown>): RequestLogSnapshot;
399
401
  fork(label: string, fn: () => void | Promise<void>, options?: ForkOptions): void;
400
402
  }
403
+ type RequestLogLevel = 'debug' | 'info' | 'warn' | 'error';
401
404
  interface RequestLogSnapshot {
402
405
  timestamp: string;
403
406
  traceId: string;
@@ -634,5 +637,4 @@ declare function defineEnricher<TEvent extends Record<string, unknown>, TValue e
634
637
  */
635
638
  declare function formatDuration(ms: number): string;
636
639
  //#endregion
637
- export { AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, type AttributeGuardrails, type AttributePolicy, AttributeRedactingProcessor, type AttributeRedactingProcessorOptions, type AttributeRedactorConfig, type AttributeRedactorFn, type AttributeRedactorPreset, type AttributeValue, type Attributes, type AuditAction, type AuditCatalog, type AuditCatalogEntry, type AuditDescriptor, type AuditSeverity, type AutotelConfig, type Baggage, type BaggageEntry, type BaggageError, type BaggageFieldDefinition, type BaggageFieldType, BaggageSpanProcessor, type BaggageSpanProcessorOptions, type BuiltinPatternName, BusinessBaggage, type BusinessBaggageValues, CORRELATION_ID_BAGGAGE_KEY, type ClientAttrs, type CloudAttrs, type CodeAttrs, type ConsumerConfig, type ConsumerContext, type ContainerAttrs, type Context, type DBAttrs, type DBConfig, type DefineEventOptions, type DefinedEvent, type DeploymentAttrs, type DeviceAttrs, type DrainOptions, type DrainPipelineOptions, type EnrichContext, type EnricherDefinition, type EnricherOptions, type ErrorAttrs, type ErrorBuildOptions, type ErrorBuilder, type ErrorCatalog, type ErrorCatalogEntry, Event, type EventAttributes, type EventSubscriber, type EventsOptions, type Exception, type ExceptionAttrs, type FaaSAttrs, type FeatureFlagAttrs, FilteringSpanProcessor, type FilteringSpanProcessorOptions, type ForkLifecycle, type ForkOptions, type FunnelStatus, type GraphQLAttrs, HTTPAttributes, type HTTPClientAttrs, type HTTPConfig, type HTTPServerAttrs, type HrTime, type HttpDrainOptions, type HttpDrainRequest, type InstrumentOptions, type K8sAttrs, type LagMetricsConfig, type Link, type MaskFn, type MessagingAttrs, type MessagingConfig, type MessagingOperation, type MessagingSystem, Metric, type MetricsOptions, NORMALIZER_PATTERNS, NORMALIZER_PRESETS, type NetworkAttrs, NeverSampler, type OTelAttrs, type OperationContext, type TraceContext as OtelTraceContext, type OutcomeStatus, type ParsedError, type PeerAttrs, type PipelineDrainFn, type ProcessAttrs, type ProcessHandlersConfig, type ProducerConfig, type ProducerContext, REDACTOR_PATTERNS, REDACTOR_PRESETS, ROOT_CONTEXT, type RPCAttrs, RandomSampler, type RequestLogSnapshot, type RequestLogger, type RequestLoggerOptions, type SafeBaggageOptions, type SafeBaggageSchema, type Sampler, type SamplingContext, type SamplingPreset, type SchemaLike, type ServerAddressAttrs, ServiceAttributes, type ServiceAttrs, type SessionAttrs, type SingleInstrumentOptions, type Span, type SpanAttributes, type SpanContext, type SpanFilterPredicate, SpanKind, type SpanLink, type SpanNameNormalizerConfig, type SpanNameNormalizerFn, type SpanNameNormalizerPreset, SpanNameNormalizingProcessor, type SpanNameNormalizingProcessorOptions, type SpanOptions, SpanStatusCode, type StepConfig, type StepContext, type StepStatus, type StringRedactor, type StructuredError, type StructuredErrorInput, type TLSAttrs, type TextMapGetter, type TextMapSetter, type ThreadAttrs, type TimeInput, type TraceContext$1 as TraceContext, type TraceFlags, type TraceState, type Tracer, type TracerProvider, URLAttributes, type URLAttrs, type UserAttrs, UserIdSampler, type ValuePatternConfig, type WithBaggageOptions, type WithNewContextOptions, type WorkflowConfig, type WorkflowContext, type WorkflowStatus, attrs, autoRedactPII, builtinPatterns, context, createAttributeRedactor, createCounter, createDeterministicTraceId, createDrainPipeline, createHistogram, createLinkFromHeaders, createNoopRequestLogger, createObservableGauge, createRedactedSpan, createSafeBaggageSchema, createStringRedactor, createStructuredError, createUpDownCounter, ctx, dbClient, defineAuditCatalog, defineBaggageSchema, defineDrain, defineEnricher, defineErrorCatalog, defineEvent, defineHttpDrain, enrichWithTraceContext, extractLinksFromBatch, finalizeSpan, flattenMetadata, flattenToAttributes, flush, formatDuration, generateCorrelationId, getActiveContext, getActiveSpan, getActiveTraceContext, getAutotelTracer, getAutotelTracerProvider, getCatalogCode, getCorrelationId, getCurrentWorkflowContext, getEventQueue, getEvents, getMeter, getMetrics, getOperationContext, getOrCreateCorrelationId, getRequestLogger, getRequestLoggerSafe, getStructuredErrorAttributes, getTraceContext, getTracer, hasRequestContext, httpClient, httpRequestHeaderAttribute, httpResponseHeaderAttribute, httpServer, identify, init, instrument, isCatalogError, isInWorkflow, isInitialized, isLoggerLocked, isTracing, lockLogger, mergeAttrs, mergeServiceResource, normalizeAttributeRedactorConfig, otelTrace, parseError, propagation, recordStructuredError, request, resetEvents, resetMetrics, resolveSamplingPreset, resolveTraceUrl, runInOperationContext, runWithCorrelationId, runWithRequestContext, runWithSpan, safeSetAttributes, samplingPresets, setAutotelTracerProvider, setCorrelationId, setCorrelationIdInBaggage, setDevice, setError, setException, setSession, setUser, shutdown, span, structuredErrorToJSON, toAttributeValue, trace, traceConsumer, traceDB, traceHTTP, traceMessaging, traceProducer, traceStep, traceWorkflow, track, validateAttribute, withBaggage, withNewContext, withTracing };
638
- //# sourceMappingURL=index.d.cts.map
640
+ export { AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, type AttributeGuardrails, type AttributePolicy, AttributeRedactingProcessor, type AttributeRedactingProcessorOptions, type AttributeRedactorConfig, type AttributeRedactorFn, type AttributeRedactorPreset, type AttributeValue, type Attributes, type AuditAction, type AuditCatalog, type AuditCatalogEntry, type AuditDescriptor, type AuditSeverity, type AutotelConfig, type Baggage, type BaggageEntry, type BaggageError, type BaggageFieldDefinition, type BaggageFieldType, BaggageSpanProcessor, type BaggageSpanProcessorOptions, type BuiltinPatternName, BusinessBaggage, type BusinessBaggageValues, CORRELATION_ID_BAGGAGE_KEY, type ClientAttrs, type CloudAttrs, type CodeAttrs, type ConsumerConfig, type ConsumerContext, type ContainerAttrs, type Context, type DBAttrs, type DBConfig, type DefineEventOptions, type DefinedEvent, type DeploymentAttrs, type DeviceAttrs, type DrainOptions, type DrainPipelineOptions, type EnrichContext, type EnricherDefinition, type EnricherOptions, type ErrorAttrs, type ErrorBuildOptions, type ErrorBuilder, type ErrorCatalog, type ErrorCatalogEntry, Event, type EventAttributes, type EventSubscriber, type EventsOptions, type Exception, type ExceptionAttrs, type FaaSAttrs, type FeatureFlagAttrs, FilteringSpanProcessor, type FilteringSpanProcessorOptions, type ForkLifecycle, type ForkOptions, type FunnelStatus, type GraphQLAttrs, HTTPAttributes, type HTTPClientAttrs, type HTTPConfig, type HTTPServerAttrs, type HrTime, type HttpDrainOptions, type HttpDrainRequest, type InstrumentOptions, type K8sAttrs, type LagMetricsConfig, type Link, type MaskFn, type MessagingAttrs, type MessagingConfig, type MessagingOperation, type MessagingSystem, Metric, type MetricsOptions, NORMALIZER_PATTERNS, NORMALIZER_PRESETS, type NetworkAttrs, NeverSampler, type OTelAttrs, type OperationContext, type TraceContext as OtelTraceContext, type OutcomeStatus, type ParsedError, type PeerAttrs, type PipelineDrainFn, type ProcessAttrs, type ProcessHandlersConfig, type ProducerConfig, type ProducerContext, REDACTOR_PATTERNS, REDACTOR_PRESETS, ROOT_CONTEXT, type RPCAttrs, RandomSampler, type RequestLogLevel, type RequestLogSnapshot, type RequestLogger, type RequestLoggerOptions, type SafeBaggageOptions, type SafeBaggageSchema, type Sampler, type SamplingContext, type SamplingPreset, type SchemaLike, type ServerAddressAttrs, ServiceAttributes, type ServiceAttrs, type SessionAttrs, type SingleInstrumentOptions, type Span, type SpanAttributes, type SpanContext, type SpanFilterPredicate, SpanKind, type SpanLink, type SpanNameNormalizerConfig, type SpanNameNormalizerFn, type SpanNameNormalizerPreset, SpanNameNormalizingProcessor, type SpanNameNormalizingProcessorOptions, type SpanOptions, SpanStatusCode, type StepConfig, type StepContext, type StepStatus, type StringRedactor, type StructuredError, type StructuredErrorInput, type TLSAttrs, type TextMapGetter, type TextMapSetter, type ThreadAttrs, type TimeInput, type TraceContext$1 as TraceContext, type TraceFlags, type TraceState, type Tracer, type TracerProvider, URLAttributes, type URLAttrs, type UserAttrs, UserIdSampler, type ValuePatternConfig, type WithBaggageOptions, type WithNewContextOptions, type WorkflowConfig, type WorkflowContext, type WorkflowStatus, attrs, autoRedactPII, builtinPatterns, context, createAttributeRedactor, createCounter, createDeterministicTraceId, createDrainPipeline, createHistogram, createLinkFromHeaders, createNoopRequestLogger, createObservableGauge, createRedactedSpan, createSafeBaggageSchema, createStringRedactor, createStructuredError, createUpDownCounter, ctx, dbClient, defineAuditCatalog, defineBaggageSchema, defineDrain, defineEnricher, defineErrorCatalog, defineEvent, defineHttpDrain, enrichWithTraceContext, extractLinksFromBatch, finalizeSpan, flattenMetadata, flattenToAttributes, flush, formatDuration, generateCorrelationId, getActiveContext, getActiveSpan, getActiveTraceContext, getAutotelTracer, getAutotelTracerProvider, getCatalogCode, getCorrelationId, getCurrentWorkflowContext, getEventQueue, getEvents, getMeter, getMetrics, getOperationContext, getOrCreateCorrelationId, getRequestLogger, getRequestLoggerSafe, getStructuredErrorAttributes, getTraceContext, getTracer, hasRequestContext, httpClient, httpRequestHeaderAttribute, httpResponseHeaderAttribute, httpServer, identify, init, instrument, isCatalogError, isInWorkflow, isInitialized, isLoggerLocked, isTracing, lockLogger, mergeAttrs, mergeServiceResource, normalizeAttributeRedactorConfig, otelTrace, parseError, propagation, recordStructuredError, request, resetEvents, resetMetrics, resolveSamplingPreset, resolveTraceUrl, runInOperationContext, runWithCorrelationId, runWithRequestContext, runWithSpan, safeSetAttributes, samplingPresets, setAutotelTracerProvider, setCorrelationId, setCorrelationIdInBaggage, setDevice, setError, setException, setSession, setUser, shutdown, span, structuredErrorToJSON, toAttributeValue, trace, traceConsumer, traceDB, traceHTTP, traceMessaging, traceProducer, traceStep, traceWorkflow, track, validateAttribute, withBaggage, withNewContext, withTracing };
package/dist/index.d.ts CHANGED
@@ -9,7 +9,7 @@ import { DrainPipelineOptions, PipelineDrainFn, createDrainPipeline } from "./dr
9
9
  import { a as EventSubscriber, c as OutcomeStatus, i as EventSchemaMetadata, n as EventAttributes, o as EventTrackingOptions, s as FunnelStatus, t as AutotelEventContext } from "./event-subscriber-CWh8sTGh.js";
10
10
  import { Event, EventsOptions, getEvents, resetEvents } from "./event.js";
11
11
  import { n as FilteringSpanProcessorOptions, r as SpanFilterPredicate, t as FilteringSpanProcessor } from "./filtering-span-processor-BpDagWNa.js";
12
- import { a as isLoggerLocked, c as StringRedactor, i as isInitialized, l as createStringRedactor, o as lockLogger, r as init, s as ProcessHandlersConfig, t as AutotelConfig } from "./init-D6n2diBy.js";
12
+ import { a as isLoggerLocked, c as StringRedactor, i as isInitialized, l as createStringRedactor, o as lockLogger, r as init, s as ProcessHandlersConfig, t as AutotelConfig } from "./init-BHp-kqLJ.js";
13
13
  import { a as SpanNameNormalizerPreset, i as SpanNameNormalizerFn, n as NORMALIZER_PRESETS, o as SpanNameNormalizingProcessor, r as SpanNameNormalizerConfig, s as SpanNameNormalizingProcessorOptions, t as NORMALIZER_PATTERNS } from "./span-name-normalizer-CN1-8C76.js";
14
14
  import "./canonical-log-line-processor-CL_J7gb5.js";
15
15
  import { i as defineEvent, n as DefinedEvent, r as SchemaLike, t as DefineEventOptions } from "./define-event-B2z1SBe7.js";
@@ -391,6 +391,8 @@ declare function shutdown(): Promise<void>;
391
391
  declare function runWithRequestContext<T>(ctx: TraceContext$1, fn: () => T): T;
392
392
  interface RequestLogger {
393
393
  set(fields: Record<string, unknown>): void;
394
+ /** Set snapshot severity without adding a log event or exception. */
395
+ setLevel(level: RequestLogLevel): void;
394
396
  info(message: string, fields?: Record<string, unknown>): void;
395
397
  warn(message: string, fields?: Record<string, unknown>): void;
396
398
  error(error: Error | string, fields?: Record<string, unknown>): void;
@@ -398,6 +400,7 @@ interface RequestLogger {
398
400
  emitNow(overrides?: Record<string, unknown>): RequestLogSnapshot;
399
401
  fork(label: string, fn: () => void | Promise<void>, options?: ForkOptions): void;
400
402
  }
403
+ type RequestLogLevel = 'debug' | 'info' | 'warn' | 'error';
401
404
  interface RequestLogSnapshot {
402
405
  timestamp: string;
403
406
  traceId: string;
@@ -634,5 +637,4 @@ declare function defineEnricher<TEvent extends Record<string, unknown>, TValue e
634
637
  */
635
638
  declare function formatDuration(ms: number): string;
636
639
  //#endregion
637
- export { AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, type AttributeGuardrails, type AttributePolicy, AttributeRedactingProcessor, type AttributeRedactingProcessorOptions, type AttributeRedactorConfig, type AttributeRedactorFn, type AttributeRedactorPreset, type AttributeValue, type Attributes, type AuditAction, type AuditCatalog, type AuditCatalogEntry, type AuditDescriptor, type AuditSeverity, type AutotelConfig, type Baggage, type BaggageEntry, type BaggageError, type BaggageFieldDefinition, type BaggageFieldType, BaggageSpanProcessor, type BaggageSpanProcessorOptions, type BuiltinPatternName, BusinessBaggage, type BusinessBaggageValues, CORRELATION_ID_BAGGAGE_KEY, type ClientAttrs, type CloudAttrs, type CodeAttrs, type ConsumerConfig, type ConsumerContext, type ContainerAttrs, type Context, type DBAttrs, type DBConfig, type DefineEventOptions, type DefinedEvent, type DeploymentAttrs, type DeviceAttrs, type DrainOptions, type DrainPipelineOptions, type EnrichContext, type EnricherDefinition, type EnricherOptions, type ErrorAttrs, type ErrorBuildOptions, type ErrorBuilder, type ErrorCatalog, type ErrorCatalogEntry, Event, type EventAttributes, type EventSubscriber, type EventsOptions, type Exception, type ExceptionAttrs, type FaaSAttrs, type FeatureFlagAttrs, FilteringSpanProcessor, type FilteringSpanProcessorOptions, type ForkLifecycle, type ForkOptions, type FunnelStatus, type GraphQLAttrs, HTTPAttributes, type HTTPClientAttrs, type HTTPConfig, type HTTPServerAttrs, type HrTime, type HttpDrainOptions, type HttpDrainRequest, type InstrumentOptions, type K8sAttrs, type LagMetricsConfig, type Link, type MaskFn, type MessagingAttrs, type MessagingConfig, type MessagingOperation, type MessagingSystem, Metric, type MetricsOptions, NORMALIZER_PATTERNS, NORMALIZER_PRESETS, type NetworkAttrs, NeverSampler, type OTelAttrs, type OperationContext, type TraceContext as OtelTraceContext, type OutcomeStatus, type ParsedError, type PeerAttrs, type PipelineDrainFn, type ProcessAttrs, type ProcessHandlersConfig, type ProducerConfig, type ProducerContext, REDACTOR_PATTERNS, REDACTOR_PRESETS, ROOT_CONTEXT, type RPCAttrs, RandomSampler, type RequestLogSnapshot, type RequestLogger, type RequestLoggerOptions, type SafeBaggageOptions, type SafeBaggageSchema, type Sampler, type SamplingContext, type SamplingPreset, type SchemaLike, type ServerAddressAttrs, ServiceAttributes, type ServiceAttrs, type SessionAttrs, type SingleInstrumentOptions, type Span, type SpanAttributes, type SpanContext, type SpanFilterPredicate, SpanKind, type SpanLink, type SpanNameNormalizerConfig, type SpanNameNormalizerFn, type SpanNameNormalizerPreset, SpanNameNormalizingProcessor, type SpanNameNormalizingProcessorOptions, type SpanOptions, SpanStatusCode, type StepConfig, type StepContext, type StepStatus, type StringRedactor, type StructuredError, type StructuredErrorInput, type TLSAttrs, type TextMapGetter, type TextMapSetter, type ThreadAttrs, type TimeInput, type TraceContext$1 as TraceContext, type TraceFlags, type TraceState, type Tracer, type TracerProvider, URLAttributes, type URLAttrs, type UserAttrs, UserIdSampler, type ValuePatternConfig, type WithBaggageOptions, type WithNewContextOptions, type WorkflowConfig, type WorkflowContext, type WorkflowStatus, attrs, autoRedactPII, builtinPatterns, context, createAttributeRedactor, createCounter, createDeterministicTraceId, createDrainPipeline, createHistogram, createLinkFromHeaders, createNoopRequestLogger, createObservableGauge, createRedactedSpan, createSafeBaggageSchema, createStringRedactor, createStructuredError, createUpDownCounter, ctx, dbClient, defineAuditCatalog, defineBaggageSchema, defineDrain, defineEnricher, defineErrorCatalog, defineEvent, defineHttpDrain, enrichWithTraceContext, extractLinksFromBatch, finalizeSpan, flattenMetadata, flattenToAttributes, flush, formatDuration, generateCorrelationId, getActiveContext, getActiveSpan, getActiveTraceContext, getAutotelTracer, getAutotelTracerProvider, getCatalogCode, getCorrelationId, getCurrentWorkflowContext, getEventQueue, getEvents, getMeter, getMetrics, getOperationContext, getOrCreateCorrelationId, getRequestLogger, getRequestLoggerSafe, getStructuredErrorAttributes, getTraceContext, getTracer, hasRequestContext, httpClient, httpRequestHeaderAttribute, httpResponseHeaderAttribute, httpServer, identify, init, instrument, isCatalogError, isInWorkflow, isInitialized, isLoggerLocked, isTracing, lockLogger, mergeAttrs, mergeServiceResource, normalizeAttributeRedactorConfig, otelTrace, parseError, propagation, recordStructuredError, request, resetEvents, resetMetrics, resolveSamplingPreset, resolveTraceUrl, runInOperationContext, runWithCorrelationId, runWithRequestContext, runWithSpan, safeSetAttributes, samplingPresets, setAutotelTracerProvider, setCorrelationId, setCorrelationIdInBaggage, setDevice, setError, setException, setSession, setUser, shutdown, span, structuredErrorToJSON, toAttributeValue, trace, traceConsumer, traceDB, traceHTTP, traceMessaging, traceProducer, traceStep, traceWorkflow, track, validateAttribute, withBaggage, withNewContext, withTracing };
638
- //# sourceMappingURL=index.d.ts.map
640
+ export { AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, type AttributeGuardrails, type AttributePolicy, AttributeRedactingProcessor, type AttributeRedactingProcessorOptions, type AttributeRedactorConfig, type AttributeRedactorFn, type AttributeRedactorPreset, type AttributeValue, type Attributes, type AuditAction, type AuditCatalog, type AuditCatalogEntry, type AuditDescriptor, type AuditSeverity, type AutotelConfig, type Baggage, type BaggageEntry, type BaggageError, type BaggageFieldDefinition, type BaggageFieldType, BaggageSpanProcessor, type BaggageSpanProcessorOptions, type BuiltinPatternName, BusinessBaggage, type BusinessBaggageValues, CORRELATION_ID_BAGGAGE_KEY, type ClientAttrs, type CloudAttrs, type CodeAttrs, type ConsumerConfig, type ConsumerContext, type ContainerAttrs, type Context, type DBAttrs, type DBConfig, type DefineEventOptions, type DefinedEvent, type DeploymentAttrs, type DeviceAttrs, type DrainOptions, type DrainPipelineOptions, type EnrichContext, type EnricherDefinition, type EnricherOptions, type ErrorAttrs, type ErrorBuildOptions, type ErrorBuilder, type ErrorCatalog, type ErrorCatalogEntry, Event, type EventAttributes, type EventSubscriber, type EventsOptions, type Exception, type ExceptionAttrs, type FaaSAttrs, type FeatureFlagAttrs, FilteringSpanProcessor, type FilteringSpanProcessorOptions, type ForkLifecycle, type ForkOptions, type FunnelStatus, type GraphQLAttrs, HTTPAttributes, type HTTPClientAttrs, type HTTPConfig, type HTTPServerAttrs, type HrTime, type HttpDrainOptions, type HttpDrainRequest, type InstrumentOptions, type K8sAttrs, type LagMetricsConfig, type Link, type MaskFn, type MessagingAttrs, type MessagingConfig, type MessagingOperation, type MessagingSystem, Metric, type MetricsOptions, NORMALIZER_PATTERNS, NORMALIZER_PRESETS, type NetworkAttrs, NeverSampler, type OTelAttrs, type OperationContext, type TraceContext as OtelTraceContext, type OutcomeStatus, type ParsedError, type PeerAttrs, type PipelineDrainFn, type ProcessAttrs, type ProcessHandlersConfig, type ProducerConfig, type ProducerContext, REDACTOR_PATTERNS, REDACTOR_PRESETS, ROOT_CONTEXT, type RPCAttrs, RandomSampler, type RequestLogLevel, type RequestLogSnapshot, type RequestLogger, type RequestLoggerOptions, type SafeBaggageOptions, type SafeBaggageSchema, type Sampler, type SamplingContext, type SamplingPreset, type SchemaLike, type ServerAddressAttrs, ServiceAttributes, type ServiceAttrs, type SessionAttrs, type SingleInstrumentOptions, type Span, type SpanAttributes, type SpanContext, type SpanFilterPredicate, SpanKind, type SpanLink, type SpanNameNormalizerConfig, type SpanNameNormalizerFn, type SpanNameNormalizerPreset, SpanNameNormalizingProcessor, type SpanNameNormalizingProcessorOptions, type SpanOptions, SpanStatusCode, type StepConfig, type StepContext, type StepStatus, type StringRedactor, type StructuredError, type StructuredErrorInput, type TLSAttrs, type TextMapGetter, type TextMapSetter, type ThreadAttrs, type TimeInput, type TraceContext$1 as TraceContext, type TraceFlags, type TraceState, type Tracer, type TracerProvider, URLAttributes, type URLAttrs, type UserAttrs, UserIdSampler, type ValuePatternConfig, type WithBaggageOptions, type WithNewContextOptions, type WorkflowConfig, type WorkflowContext, type WorkflowStatus, attrs, autoRedactPII, builtinPatterns, context, createAttributeRedactor, createCounter, createDeterministicTraceId, createDrainPipeline, createHistogram, createLinkFromHeaders, createNoopRequestLogger, createObservableGauge, createRedactedSpan, createSafeBaggageSchema, createStringRedactor, createStructuredError, createUpDownCounter, ctx, dbClient, defineAuditCatalog, defineBaggageSchema, defineDrain, defineEnricher, defineErrorCatalog, defineEvent, defineHttpDrain, enrichWithTraceContext, extractLinksFromBatch, finalizeSpan, flattenMetadata, flattenToAttributes, flush, formatDuration, generateCorrelationId, getActiveContext, getActiveSpan, getActiveTraceContext, getAutotelTracer, getAutotelTracerProvider, getCatalogCode, getCorrelationId, getCurrentWorkflowContext, getEventQueue, getEvents, getMeter, getMetrics, getOperationContext, getOrCreateCorrelationId, getRequestLogger, getRequestLoggerSafe, getStructuredErrorAttributes, getTraceContext, getTracer, hasRequestContext, httpClient, httpRequestHeaderAttribute, httpResponseHeaderAttribute, httpServer, identify, init, instrument, isCatalogError, isInWorkflow, isInitialized, isLoggerLocked, isTracing, lockLogger, mergeAttrs, mergeServiceResource, normalizeAttributeRedactorConfig, otelTrace, parseError, propagation, recordStructuredError, request, resetEvents, resetMetrics, resolveSamplingPreset, resolveTraceUrl, runInOperationContext, runWithCorrelationId, runWithRequestContext, runWithSpan, safeSetAttributes, samplingPresets, setAutotelTracerProvider, setCorrelationId, setCorrelationIdInBaggage, setDevice, setError, setException, setSession, setUser, shutdown, span, structuredErrorToJSON, toAttributeValue, trace, traceConsumer, traceDB, traceHTTP, traceMessaging, traceProducer, traceStep, traceWorkflow, track, validateAttribute, withBaggage, withNewContext, withTracing };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { getAutotelTracer, getAutotelTracerProvider, setAutotelTracerProvider } from "./tracer-provider.js";
2
2
  import { AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, NeverSampler, RandomSampler, UserIdSampler, createLinkFromHeaders, extractLinksFromBatch, resolveSamplingPreset, samplingPresets } from "./sampling.js";
3
- import { A as BaggageSpanProcessor, C as setCorrelationId, E as defineBaggageSchema, S as runWithCorrelationId, T as createTraceContext, _ as CORRELATION_ID_BAGGAGE_KEY, a as isInitialized, c as flush, d as getEvents, f as resetEvents, g as track, h as getEventQueue, i as init, k as createStringRedactor, l as shutdown, m as runInOperationContext, o as isLoggerLocked, p as getOperationContext, s as lockLogger, u as Event, v as generateCorrelationId, w as setCorrelationIdInBaggage, x as getOrCreateCorrelationId, y as getCorrelationId } from "./init-R-gSEXkJ.js";
3
+ import { A as BaggageSpanProcessor, C as setCorrelationId, E as defineBaggageSchema, S as runWithCorrelationId, T as createTraceContext, _ as CORRELATION_ID_BAGGAGE_KEY, a as isInitialized, c as flush, d as getEvents, f as resetEvents, g as track, h as getEventQueue, i as init, k as createStringRedactor, l as shutdown, m as runInOperationContext, o as isLoggerLocked, p as getOperationContext, s as lockLogger, u as Event, v as generateCorrelationId, w as setCorrelationIdInBaggage, x as getOrCreateCorrelationId, y as getCorrelationId } from "./init-DDkh2brw.js";
4
4
  import { FilteringSpanProcessor } from "./filtering-span-processor.js";
5
5
  import { NORMALIZER_PATTERNS, NORMALIZER_PRESETS, SpanNameNormalizingProcessor } from "./span-name-normalizer.js";
6
6
  import { AttributeRedactingProcessor, REDACTOR_PATTERNS, REDACTOR_PRESETS, builtinPatterns, createAttributeRedactor, createRedactedSpan, normalizeAttributeRedactorConfig } from "./attribute-redacting-processor.js";
@@ -8,7 +8,7 @@ import { n as formatDuration } from "./canonical-log-line-processor-mKABvGP0.js"
8
8
  import { a as flattenToAttributes, i as structuredErrorToJSON, n as getStructuredErrorAttributes, o as toAttributeValue, r as recordStructuredError, t as createStructuredError } from "./structured-error-9--cxBay.js";
9
9
  import { Metric, getMetrics, resetMetrics } from "./metric.js";
10
10
  import { createDeterministicTraceId, enrichWithTraceContext, finalizeSpan, flattenMetadata, getActiveContext, getActiveSpan, getTraceContext, getTracer, isTracing, resolveTraceUrl, runWithSpan } from "./trace-helpers.js";
11
- import { a as trace$2, c as withTracing, i as span, n as getActiveTraceContext, o as withBaggage, r as instrument, s as withNewContext, t as ctx } from "./functional-BnDUxnSl.js";
11
+ import { a as trace$2, c as withTracing, i as span, n as getActiveTraceContext, o as withBaggage, r as instrument, s as withNewContext, t as ctx } from "./functional-DYAZiYxr.js";
12
12
  import { t as hashJson } from "./stable-hash-ChFBIhNt.js";
13
13
  import { t as emitCorrelatedEvent } from "./correlated-events-Bzh5y-UB.js";
14
14
  import { parseError } from "./parse-error.js";
@@ -105,6 +105,7 @@ function getRequestLogger(ctx, options) {
105
105
  const contextState = {};
106
106
  let emitted = false;
107
107
  let lastSnapshot = null;
108
+ let hasExplicitLevel = false;
108
109
  const addLogEvent = (level, message, fields) => {
109
110
  const attrs = fields ? flattenToAttributes(fields) : void 0;
110
111
  emitCorrelatedEvent(activeContext, `log.${level}`, {
@@ -122,6 +123,12 @@ function getRequestLogger(ctx, options) {
122
123
  mergeInto$1(contextState, fields);
123
124
  activeContext.setAttributes(flattenToAttributes(fields));
124
125
  },
126
+ setLevel(level) {
127
+ sealCheck("log.setLevel()", ["autotel.log.level"]);
128
+ if (emitted) return;
129
+ hasExplicitLevel = true;
130
+ activeContext.setAttribute("autotel.log.level", level);
131
+ },
125
132
  info(message, fields) {
126
133
  const keys = fields ? ["message", ...Object.keys(fields).filter((k) => k !== "requestLogs")] : ["message"];
127
134
  sealCheck("log.info()", keys);
@@ -137,7 +144,7 @@ function getRequestLogger(ctx, options) {
137
144
  sealCheck("log.warn()", keys);
138
145
  if (emitted) return;
139
146
  addLogEvent("warn", message, fields);
140
- activeContext.setAttribute("autotel.log.level", "warn");
147
+ if (!hasExplicitLevel) activeContext.setAttribute("autotel.log.level", "warn");
141
148
  if (fields) {
142
149
  mergeInto$1(contextState, fields);
143
150
  activeContext.setAttributes(flattenToAttributes(fields));
@@ -154,7 +161,7 @@ function getRequestLogger(ctx, options) {
154
161
  mergeInto$1(contextState, fields);
155
162
  activeContext.setAttributes(flattenToAttributes(fields));
156
163
  }
157
- activeContext.setAttribute("autotel.log.level", "error");
164
+ if (!hasExplicitLevel) activeContext.setAttribute("autotel.log.level", "error");
158
165
  },
159
166
  getContext() {
160
167
  return { ...contextState };
@@ -258,6 +265,7 @@ function createNoopRequestLogger() {
258
265
  });
259
266
  return {
260
267
  set() {},
268
+ setLevel() {},
261
269
  info() {},
262
270
  warn() {},
263
271
  error() {},
@@ -499,5 +507,4 @@ function defineEnricher(def, options = {}) {
499
507
  }
500
508
 
501
509
  //#endregion
502
- export { AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, AttributeRedactingProcessor, BaggageSpanProcessor, BusinessBaggage, CORRELATION_ID_BAGGAGE_KEY, Event, FilteringSpanProcessor, HTTPAttributes, Metric, NORMALIZER_PATTERNS, NORMALIZER_PRESETS, NeverSampler, REDACTOR_PATTERNS, REDACTOR_PRESETS, ROOT_CONTEXT, RandomSampler, ServiceAttributes, SpanKind, SpanNameNormalizingProcessor, SpanStatusCode, URLAttributes, UserIdSampler, attrs, autoRedactPII, builtinPatterns, context, createAttributeRedactor, createCounter, createDeterministicTraceId, createDrainPipeline, createHistogram, createLinkFromHeaders, createNoopRequestLogger, createObservableGauge, createRedactedSpan, createSafeBaggageSchema, createStringRedactor, createStructuredError, createUpDownCounter, ctx, dbClient, defineAuditCatalog, defineBaggageSchema, defineDrain, defineEnricher, defineErrorCatalog, defineEvent, defineHttpDrain, enrichWithTraceContext, extractLinksFromBatch, finalizeSpan, flattenMetadata, flattenToAttributes, flush, formatDuration, generateCorrelationId, getActiveContext, getActiveSpan, getActiveTraceContext, getAutotelTracer, getAutotelTracerProvider, getCatalogCode, getCorrelationId, getCurrentWorkflowContext, getEventQueue, getEvents, getMeter, getMetrics, getOperationContext, getOrCreateCorrelationId, getRequestLogger, getRequestLoggerSafe, getStructuredErrorAttributes, getTraceContext, getTracer, hasRequestContext, httpClient, httpRequestHeaderAttribute, httpResponseHeaderAttribute, httpServer, identify, init, instrument, isCatalogError, isInWorkflow, isInitialized, isLoggerLocked, isTracing, lockLogger, mergeAttrs, mergeServiceResource, normalizeAttributeRedactorConfig, otelTrace, parseError, propagation, recordStructuredError, request, resetEvents, resetMetrics, resolveSamplingPreset, resolveTraceUrl, runInOperationContext, runWithCorrelationId, runWithRequestContext, runWithSpan, safeSetAttributes, samplingPresets, setAutotelTracerProvider, setCorrelationId, setCorrelationIdInBaggage, setDevice, setError, setException, setSession, setUser, shutdown, span, structuredErrorToJSON, toAttributeValue, trace, traceConsumer, traceDB, traceHTTP, traceMessaging, traceProducer, traceStep, traceWorkflow, track, validateAttribute, withBaggage, withNewContext, withTracing };
503
- //# sourceMappingURL=index.js.map
510
+ export { AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, AttributeRedactingProcessor, BaggageSpanProcessor, BusinessBaggage, CORRELATION_ID_BAGGAGE_KEY, Event, FilteringSpanProcessor, HTTPAttributes, Metric, NORMALIZER_PATTERNS, NORMALIZER_PRESETS, NeverSampler, REDACTOR_PATTERNS, REDACTOR_PRESETS, ROOT_CONTEXT, RandomSampler, ServiceAttributes, SpanKind, SpanNameNormalizingProcessor, SpanStatusCode, URLAttributes, UserIdSampler, attrs, autoRedactPII, builtinPatterns, context, createAttributeRedactor, createCounter, createDeterministicTraceId, createDrainPipeline, createHistogram, createLinkFromHeaders, createNoopRequestLogger, createObservableGauge, createRedactedSpan, createSafeBaggageSchema, createStringRedactor, createStructuredError, createUpDownCounter, ctx, dbClient, defineAuditCatalog, defineBaggageSchema, defineDrain, defineEnricher, defineErrorCatalog, defineEvent, defineHttpDrain, enrichWithTraceContext, extractLinksFromBatch, finalizeSpan, flattenMetadata, flattenToAttributes, flush, formatDuration, generateCorrelationId, getActiveContext, getActiveSpan, getActiveTraceContext, getAutotelTracer, getAutotelTracerProvider, getCatalogCode, getCorrelationId, getCurrentWorkflowContext, getEventQueue, getEvents, getMeter, getMetrics, getOperationContext, getOrCreateCorrelationId, getRequestLogger, getRequestLoggerSafe, getStructuredErrorAttributes, getTraceContext, getTracer, hasRequestContext, httpClient, httpRequestHeaderAttribute, httpResponseHeaderAttribute, httpServer, identify, init, instrument, isCatalogError, isInWorkflow, isInitialized, isLoggerLocked, isTracing, lockLogger, mergeAttrs, mergeServiceResource, normalizeAttributeRedactorConfig, otelTrace, parseError, propagation, recordStructuredError, request, resetEvents, resetMetrics, resolveSamplingPreset, resolveTraceUrl, runInOperationContext, runWithCorrelationId, runWithRequestContext, runWithSpan, safeSetAttributes, samplingPresets, setAutotelTracerProvider, setCorrelationId, setCorrelationIdInBaggage, setDevice, setError, setException, setSession, setUser, shutdown, span, structuredErrorToJSON, toAttributeValue, trace, traceConsumer, traceDB, traceHTTP, traceMessaging, traceProducer, traceStep, traceWorkflow, track, validateAttribute, withBaggage, withNewContext, withTracing };
@@ -238,13 +238,22 @@ interface OtlpDestinationConfig {
238
238
  /**
239
239
  * Protocol for this destination. Falls back to top-level `protocol`.
240
240
  */
241
- protocol?: 'http' | 'grpc';
241
+ protocol?: AutotelProtocol;
242
242
  /**
243
243
  * Signals to send to this destination.
244
244
  * Defaults to all signals supported by the current init() config.
245
245
  */
246
246
  signals?: OtlpSignal[];
247
247
  }
248
+ /**
249
+ * OTLP wire protocols.
250
+ *
251
+ * `http` is OTLP/HTTP with a JSON body; `http/protobuf` is OTLP/HTTP with a
252
+ * protobuf body. They are not interchangeable: several vendors (Pydantic
253
+ * Logfire, PostHog) accept protobuf only and drop JSON silently, which looks
254
+ * exactly like emitting no telemetry at all.
255
+ */
256
+ type AutotelProtocol = 'http' | 'http/protobuf' | 'grpc';
248
257
  interface AutotelConfig {
249
258
  /** Service name (required) */
250
259
  service: string;
@@ -576,7 +585,7 @@ interface AutotelConfig {
576
585
  *
577
586
  * @default 'http'
578
587
  */
579
- protocol?: 'http' | 'grpc';
588
+ protocol?: AutotelProtocol;
580
589
  /**
581
590
  * Optional factory to build a customised NodeSDK instance from our defaults.
582
591
  */
@@ -1234,5 +1243,4 @@ declare function init(cfg: AutotelConfig): void;
1234
1243
  */
1235
1244
  declare function isInitialized(): boolean;
1236
1245
  //#endregion
1237
- export { isLoggerLocked as a, StringRedactor as c, isInitialized as i, createStringRedactor as l, OtlpSignal as n, lockLogger as o, init as r, ProcessHandlersConfig as s, AutotelConfig as t };
1238
- //# sourceMappingURL=init-D6n2diBy.d.ts.map
1246
+ export { isLoggerLocked as a, StringRedactor as c, isInitialized as i, createStringRedactor as l, OtlpSignal as n, lockLogger as o, init as r, ProcessHandlersConfig as s, AutotelConfig as t };
@@ -238,13 +238,22 @@ interface OtlpDestinationConfig {
238
238
  /**
239
239
  * Protocol for this destination. Falls back to top-level `protocol`.
240
240
  */
241
- protocol?: 'http' | 'grpc';
241
+ protocol?: AutotelProtocol;
242
242
  /**
243
243
  * Signals to send to this destination.
244
244
  * Defaults to all signals supported by the current init() config.
245
245
  */
246
246
  signals?: OtlpSignal[];
247
247
  }
248
+ /**
249
+ * OTLP wire protocols.
250
+ *
251
+ * `http` is OTLP/HTTP with a JSON body; `http/protobuf` is OTLP/HTTP with a
252
+ * protobuf body. They are not interchangeable: several vendors (Pydantic
253
+ * Logfire, PostHog) accept protobuf only and drop JSON silently, which looks
254
+ * exactly like emitting no telemetry at all.
255
+ */
256
+ type AutotelProtocol = 'http' | 'http/protobuf' | 'grpc';
248
257
  interface AutotelConfig {
249
258
  /** Service name (required) */
250
259
  service: string;
@@ -576,7 +585,7 @@ interface AutotelConfig {
576
585
  *
577
586
  * @default 'http'
578
587
  */
579
- protocol?: 'http' | 'grpc';
588
+ protocol?: AutotelProtocol;
580
589
  /**
581
590
  * Optional factory to build a customised NodeSDK instance from our defaults.
582
591
  */
@@ -1234,5 +1243,4 @@ declare function init(cfg: AutotelConfig): void;
1234
1243
  */
1235
1244
  declare function isInitialized(): boolean;
1236
1245
  //#endregion
1237
- export { isLoggerLocked as a, StringRedactor as c, isInitialized as i, createStringRedactor as l, OtlpSignal as n, lockLogger as o, init as r, ProcessHandlersConfig as s, AutotelConfig as t };
1238
- //# sourceMappingURL=init-XzXzrarP.d.cts.map
1246
+ export { isLoggerLocked as a, StringRedactor as c, isInitialized as i, createStringRedactor as l, OtlpSignal as n, lockLogger as o, init as r, ProcessHandlersConfig as s, AutotelConfig as t };