@sentry/node 10.70.0 → 11.0.0-alpha.1

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 (1194) hide show
  1. package/build/cjs/bundler-plugin/esbuild.js +19 -0
  2. package/build/cjs/bundler-plugin/esbuild.js.map +1 -0
  3. package/build/cjs/bundler-plugin/rollup.js +12 -0
  4. package/build/cjs/bundler-plugin/rollup.js.map +1 -0
  5. package/build/cjs/bundler-plugin/vite.js +12 -0
  6. package/build/cjs/bundler-plugin/vite.js.map +1 -0
  7. package/build/cjs/bundler-plugin/webpack.js +18 -0
  8. package/build/cjs/bundler-plugin/webpack.js.map +1 -0
  9. package/build/cjs/cron/common.js +52 -0
  10. package/build/cjs/cron/common.js.map +1 -0
  11. package/build/cjs/cron/cron.js +88 -0
  12. package/build/cjs/cron/cron.js.map +1 -0
  13. package/build/cjs/cron/index.js +14 -0
  14. package/build/cjs/cron/index.js.map +1 -0
  15. package/build/cjs/cron/node-cron.js +52 -0
  16. package/build/cjs/cron/node-cron.js.map +1 -0
  17. package/build/cjs/cron/node-schedule.js +41 -0
  18. package/build/cjs/cron/node-schedule.js.map +1 -0
  19. package/build/cjs/index.js +112 -123
  20. package/build/cjs/index.js.map +1 -1
  21. package/build/cjs/integrations/anr/index.js +159 -0
  22. package/build/cjs/integrations/anr/index.js.map +1 -0
  23. package/build/cjs/integrations/childProcess.js +81 -0
  24. package/build/cjs/integrations/childProcess.js.map +1 -0
  25. package/build/cjs/integrations/console.js +95 -0
  26. package/build/cjs/integrations/console.js.map +1 -0
  27. package/build/cjs/integrations/context.js +391 -0
  28. package/build/cjs/integrations/context.js.map +1 -0
  29. package/build/cjs/integrations/contextlines.js +251 -0
  30. package/build/cjs/integrations/contextlines.js.map +1 -0
  31. package/build/cjs/integrations/fs/index.js +1 -1
  32. package/build/cjs/integrations/fs/index.js.map +1 -1
  33. package/build/cjs/integrations/fs/vendored/constants.js.map +1 -1
  34. package/build/cjs/integrations/http/SentryHttpInstrumentation.js +67 -0
  35. package/build/cjs/integrations/http/SentryHttpInstrumentation.js.map +1 -0
  36. package/build/cjs/integrations/http/httpServerIntegration.js +77 -0
  37. package/build/cjs/integrations/http/httpServerIntegration.js.map +1 -0
  38. package/build/cjs/integrations/http/httpServerSpansIntegration.js +241 -0
  39. package/build/cjs/integrations/http/httpServerSpansIntegration.js.map +1 -0
  40. package/build/cjs/integrations/http/index.js +71 -0
  41. package/build/cjs/integrations/http/index.js.map +1 -0
  42. package/build/cjs/integrations/local-variables/common.js +20 -0
  43. package/build/cjs/integrations/local-variables/common.js.map +1 -0
  44. package/build/cjs/integrations/local-variables/index.js +10 -0
  45. package/build/cjs/integrations/local-variables/index.js.map +1 -0
  46. package/build/cjs/integrations/local-variables/local-variables-async.js +106 -0
  47. package/build/cjs/integrations/local-variables/local-variables-async.js.map +1 -0
  48. package/build/cjs/integrations/modules.js +98 -0
  49. package/build/cjs/integrations/modules.js.map +1 -0
  50. package/build/cjs/integrations/node-fetch/index.js +24 -0
  51. package/build/cjs/integrations/node-fetch/index.js.map +1 -0
  52. package/build/cjs/integrations/node-fetch/undici-instrumentation.js +262 -0
  53. package/build/cjs/integrations/node-fetch/undici-instrumentation.js.map +1 -0
  54. package/build/cjs/integrations/nodeRuntimeMetrics.js +181 -0
  55. package/build/cjs/integrations/nodeRuntimeMetrics.js.map +1 -0
  56. package/build/cjs/integrations/onuncaughtexception.js +92 -0
  57. package/build/cjs/integrations/onuncaughtexception.js.map +1 -0
  58. package/build/cjs/integrations/onunhandledrejection.js +92 -0
  59. package/build/cjs/integrations/onunhandledrejection.js.map +1 -0
  60. package/build/cjs/integrations/pino.js +116 -0
  61. package/build/cjs/integrations/pino.js.map +1 -0
  62. package/build/cjs/integrations/processSession.js +22 -0
  63. package/build/cjs/integrations/processSession.js.map +1 -0
  64. package/build/cjs/integrations/spotlight.js +79 -0
  65. package/build/cjs/integrations/spotlight.js.map +1 -0
  66. package/build/cjs/integrations/systemError.js +54 -0
  67. package/build/cjs/integrations/systemError.js.map +1 -0
  68. package/build/cjs/integrations/tracing/express.js +0 -52
  69. package/build/cjs/integrations/tracing/express.js.map +1 -1
  70. package/build/cjs/integrations/tracing/fastify/index.js +1 -16
  71. package/build/cjs/integrations/tracing/fastify/index.js.map +1 -1
  72. package/build/cjs/integrations/tracing/hapi/index.js +0 -16
  73. package/build/cjs/integrations/tracing/hapi/index.js.map +1 -1
  74. package/build/cjs/integrations/tracing/index.js +29 -87
  75. package/build/cjs/integrations/tracing/index.js.map +1 -1
  76. package/build/cjs/integrations/tracing/koa/index.js +0 -24
  77. package/build/cjs/integrations/tracing/koa/index.js.map +1 -1
  78. package/build/cjs/integrations/tracing/redis/cache.js +6 -4
  79. package/build/cjs/integrations/tracing/redis/cache.js.map +1 -1
  80. package/build/cjs/integrations/tracing/redis/index.js +10 -26
  81. package/build/cjs/integrations/tracing/redis/index.js.map +1 -1
  82. package/build/cjs/integrations/winston.js +84 -0
  83. package/build/cjs/integrations/winston.js.map +1 -0
  84. package/build/cjs/logs/capture.js +26 -0
  85. package/build/cjs/logs/capture.js.map +1 -0
  86. package/build/cjs/logs/exports.js +32 -0
  87. package/build/cjs/logs/exports.js.map +1 -0
  88. package/build/cjs/nodeVersion.js +10 -0
  89. package/build/cjs/nodeVersion.js.map +1 -0
  90. package/build/cjs/otel/logger.js +21 -0
  91. package/build/cjs/otel/logger.js.map +1 -0
  92. package/build/cjs/proxy/base.js +69 -0
  93. package/build/cjs/proxy/base.js.map +1 -0
  94. package/build/cjs/proxy/index.js +112 -0
  95. package/build/cjs/proxy/index.js.map +1 -0
  96. package/build/cjs/proxy/parse-proxy-response.js +88 -0
  97. package/build/cjs/proxy/parse-proxy-response.js.map +1 -0
  98. package/build/cjs/sdk/api.js +61 -0
  99. package/build/cjs/sdk/api.js.map +1 -0
  100. package/build/cjs/sdk/client.js +113 -0
  101. package/build/cjs/sdk/client.js.map +1 -0
  102. package/build/cjs/sdk/index.js +183 -41
  103. package/build/cjs/sdk/index.js.map +1 -1
  104. package/build/cjs/sdk/initOtel.js +9 -95
  105. package/build/cjs/sdk/initOtel.js.map +1 -1
  106. package/build/cjs/transports/http.js +102 -0
  107. package/build/cjs/transports/http.js.map +1 -0
  108. package/build/cjs/utils/debug.js +17 -0
  109. package/build/cjs/utils/debug.js.map +1 -0
  110. package/build/cjs/utils/entry-point.js +36 -0
  111. package/build/cjs/utils/entry-point.js.map +1 -0
  112. package/build/cjs/utils/errorhandling.js +33 -0
  113. package/build/cjs/utils/errorhandling.js.map +1 -0
  114. package/build/cjs/utils/module.js +37 -0
  115. package/build/cjs/utils/module.js.map +1 -0
  116. package/build/cjs/utils/outgoingFetchRequest.js +178 -0
  117. package/build/cjs/utils/outgoingFetchRequest.js.map +1 -0
  118. package/build/cjs/utils/spotlight.js +18 -0
  119. package/build/cjs/utils/spotlight.js.map +1 -0
  120. package/build/esm/bundler-plugin/esbuild.js +17 -0
  121. package/build/esm/bundler-plugin/esbuild.js.map +1 -0
  122. package/build/esm/bundler-plugin/rollup.js +10 -0
  123. package/build/esm/bundler-plugin/rollup.js.map +1 -0
  124. package/build/esm/bundler-plugin/vite.js +10 -0
  125. package/build/esm/bundler-plugin/vite.js.map +1 -0
  126. package/build/esm/bundler-plugin/webpack.js +16 -0
  127. package/build/esm/bundler-plugin/webpack.js.map +1 -0
  128. package/build/esm/cron/common.js +50 -0
  129. package/build/esm/cron/common.js.map +1 -0
  130. package/build/esm/cron/cron.js +86 -0
  131. package/build/esm/cron/cron.js.map +1 -0
  132. package/build/esm/cron/index.js +12 -0
  133. package/build/esm/cron/index.js.map +1 -0
  134. package/build/esm/cron/node-cron.js +50 -0
  135. package/build/esm/cron/node-cron.js.map +1 -0
  136. package/build/esm/cron/node-schedule.js +39 -0
  137. package/build/esm/cron/node-schedule.js.map +1 -0
  138. package/build/esm/index.js +36 -36
  139. package/build/esm/integrations/anr/index.js +155 -0
  140. package/build/esm/integrations/anr/index.js.map +1 -0
  141. package/build/esm/integrations/anr/worker-script.js +2 -0
  142. package/build/esm/integrations/childProcess.js +79 -0
  143. package/build/esm/integrations/childProcess.js.map +1 -0
  144. package/build/esm/integrations/console.js +93 -0
  145. package/build/esm/integrations/console.js.map +1 -0
  146. package/build/esm/integrations/context.js +383 -0
  147. package/build/esm/integrations/context.js.map +1 -0
  148. package/build/esm/integrations/contextlines.js +245 -0
  149. package/build/esm/integrations/contextlines.js.map +1 -0
  150. package/build/esm/integrations/fs/index.js +1 -1
  151. package/build/esm/integrations/fs/index.js.map +1 -1
  152. package/build/esm/integrations/fs/vendored/constants.js.map +1 -1
  153. package/build/esm/integrations/http/SentryHttpInstrumentation.js +65 -0
  154. package/build/esm/integrations/http/SentryHttpInstrumentation.js.map +1 -0
  155. package/build/esm/integrations/http/httpServerIntegration.js +74 -0
  156. package/build/esm/integrations/http/httpServerIntegration.js.map +1 -0
  157. package/build/esm/integrations/http/httpServerSpansIntegration.js +238 -0
  158. package/build/esm/integrations/http/httpServerSpansIntegration.js.map +1 -0
  159. package/build/esm/integrations/http/index.js +69 -0
  160. package/build/esm/integrations/http/index.js.map +1 -0
  161. package/build/esm/integrations/local-variables/common.js +15 -0
  162. package/build/esm/integrations/local-variables/common.js.map +1 -0
  163. package/build/esm/integrations/local-variables/index.js +8 -0
  164. package/build/esm/integrations/local-variables/index.js.map +1 -0
  165. package/build/esm/integrations/local-variables/local-variables-async.js +103 -0
  166. package/build/esm/integrations/local-variables/local-variables-async.js.map +1 -0
  167. package/build/esm/integrations/local-variables/worker-script.js +2 -0
  168. package/build/esm/integrations/modules.js +57 -0
  169. package/build/esm/integrations/modules.js.map +1 -0
  170. package/build/esm/integrations/node-fetch/index.js +22 -0
  171. package/build/esm/integrations/node-fetch/index.js.map +1 -0
  172. package/build/esm/integrations/node-fetch/undici-instrumentation.js +260 -0
  173. package/build/esm/integrations/node-fetch/undici-instrumentation.js.map +1 -0
  174. package/build/esm/integrations/nodeRuntimeMetrics.js +178 -0
  175. package/build/esm/integrations/nodeRuntimeMetrics.js.map +1 -0
  176. package/build/esm/integrations/onuncaughtexception.js +89 -0
  177. package/build/esm/integrations/onuncaughtexception.js.map +1 -0
  178. package/build/esm/integrations/onunhandledrejection.js +89 -0
  179. package/build/esm/integrations/onunhandledrejection.js.map +1 -0
  180. package/build/esm/integrations/pino.js +114 -0
  181. package/build/esm/integrations/pino.js.map +1 -0
  182. package/build/esm/integrations/processSession.js +20 -0
  183. package/build/esm/integrations/processSession.js.map +1 -0
  184. package/build/esm/integrations/spotlight.js +76 -0
  185. package/build/esm/integrations/spotlight.js.map +1 -0
  186. package/build/esm/integrations/systemError.js +52 -0
  187. package/build/esm/integrations/systemError.js.map +1 -0
  188. package/build/esm/integrations/tracing/express.js +2 -51
  189. package/build/esm/integrations/tracing/express.js.map +1 -1
  190. package/build/esm/integrations/tracing/fastify/index.js +3 -17
  191. package/build/esm/integrations/tracing/fastify/index.js.map +1 -1
  192. package/build/esm/integrations/tracing/hapi/index.js +2 -16
  193. package/build/esm/integrations/tracing/hapi/index.js.map +1 -1
  194. package/build/esm/integrations/tracing/index.js +12 -69
  195. package/build/esm/integrations/tracing/index.js.map +1 -1
  196. package/build/esm/integrations/tracing/koa/index.js +2 -24
  197. package/build/esm/integrations/tracing/koa/index.js.map +1 -1
  198. package/build/esm/integrations/tracing/redis/cache.js +7 -5
  199. package/build/esm/integrations/tracing/redis/cache.js.map +1 -1
  200. package/build/esm/integrations/tracing/redis/index.js +11 -26
  201. package/build/esm/integrations/tracing/redis/index.js.map +1 -1
  202. package/build/esm/integrations/winston.js +82 -0
  203. package/build/esm/integrations/winston.js.map +1 -0
  204. package/build/esm/logs/capture.js +24 -0
  205. package/build/esm/logs/capture.js.map +1 -0
  206. package/build/esm/logs/exports.js +24 -0
  207. package/build/esm/logs/exports.js.map +1 -0
  208. package/build/esm/nodeVersion.js +8 -0
  209. package/build/esm/nodeVersion.js.map +1 -0
  210. package/build/esm/otel/logger.js +19 -0
  211. package/build/esm/otel/logger.js.map +1 -0
  212. package/build/esm/package.json +1 -1
  213. package/build/esm/proxy/base.js +67 -0
  214. package/build/esm/proxy/base.js.map +1 -0
  215. package/build/esm/proxy/index.js +110 -0
  216. package/build/esm/proxy/index.js.map +1 -0
  217. package/build/esm/proxy/parse-proxy-response.js +86 -0
  218. package/build/esm/proxy/parse-proxy-response.js.map +1 -0
  219. package/build/esm/sdk/api.js +58 -0
  220. package/build/esm/sdk/api.js.map +1 -0
  221. package/build/esm/sdk/client.js +111 -0
  222. package/build/esm/sdk/client.js.map +1 -0
  223. package/build/esm/sdk/index.js +184 -41
  224. package/build/esm/sdk/index.js.map +1 -1
  225. package/build/esm/sdk/initOtel.js +12 -96
  226. package/build/esm/sdk/initOtel.js.map +1 -1
  227. package/build/esm/transports/http.js +100 -0
  228. package/build/esm/transports/http.js.map +1 -0
  229. package/build/esm/utils/debug.js +15 -0
  230. package/build/esm/utils/debug.js.map +1 -0
  231. package/build/esm/utils/entry-point.js +33 -0
  232. package/build/esm/utils/entry-point.js.map +1 -0
  233. package/build/esm/utils/errorhandling.js +31 -0
  234. package/build/esm/utils/errorhandling.js.map +1 -0
  235. package/build/esm/utils/module.js +35 -0
  236. package/build/esm/utils/module.js.map +1 -0
  237. package/build/esm/utils/outgoingFetchRequest.js +174 -0
  238. package/build/esm/utils/outgoingFetchRequest.js.map +1 -0
  239. package/build/esm/utils/spotlight.js +16 -0
  240. package/build/esm/utils/spotlight.js.map +1 -0
  241. package/build/import-hook.mjs +0 -10
  242. package/build/types/bundler-plugin/esbuild.d.ts +34 -0
  243. package/build/types/bundler-plugin/esbuild.d.ts.map +1 -0
  244. package/build/types/bundler-plugin/rollup.d.ts +35 -0
  245. package/build/types/bundler-plugin/rollup.d.ts.map +1 -0
  246. package/build/types/bundler-plugin/vite.d.ts +36 -0
  247. package/build/types/bundler-plugin/vite.d.ts.map +1 -0
  248. package/build/types/bundler-plugin/webpack.d.ts +37 -0
  249. package/build/types/bundler-plugin/webpack.d.ts.map +1 -0
  250. package/build/types/cron/common.d.ts +5 -0
  251. package/build/types/cron/common.d.ts.map +1 -0
  252. package/build/types/cron/cron.d.ts +43 -0
  253. package/build/types/cron/cron.d.ts.map +1 -0
  254. package/build/types/cron/index.d.ts +10 -0
  255. package/build/types/cron/index.d.ts.map +1 -0
  256. package/build/types/cron/node-cron.d.ts +28 -0
  257. package/build/types/cron/node-cron.d.ts.map +1 -0
  258. package/build/types/cron/node-schedule.d.ts +19 -0
  259. package/build/types/cron/node-schedule.d.ts.map +1 -0
  260. package/build/types/index.d.ts +34 -34
  261. package/build/types/index.d.ts.map +1 -1
  262. package/build/types/integrations/anr/common.d.ts +79 -0
  263. package/build/types/integrations/anr/common.d.ts.map +1 -0
  264. package/build/types/integrations/anr/index.d.ts +59 -0
  265. package/build/types/integrations/anr/index.d.ts.map +1 -0
  266. package/build/types/integrations/anr/worker.d.ts +2 -0
  267. package/build/types/integrations/anr/worker.d.ts.map +1 -0
  268. package/build/types/integrations/childProcess.d.ts +22 -0
  269. package/build/types/integrations/childProcess.d.ts.map +1 -0
  270. package/build/types/integrations/console.d.ts +23 -0
  271. package/build/types/integrations/console.d.ts.map +1 -0
  272. package/build/types/integrations/context.d.ts +33 -0
  273. package/build/types/integrations/context.d.ts.map +1 -0
  274. package/build/types/integrations/contextlines.d.ts +35 -0
  275. package/build/types/integrations/contextlines.d.ts.map +1 -0
  276. package/build/types/integrations/featureFlagShims/openFeature.d.ts.map +1 -1
  277. package/build/types/integrations/fs/index.d.ts.map +1 -1
  278. package/build/types/integrations/http/SentryHttpInstrumentation.d.ts +102 -0
  279. package/build/types/integrations/http/SentryHttpInstrumentation.d.ts.map +1 -0
  280. package/build/types/integrations/http/httpServerIntegration.d.ts +67 -0
  281. package/build/types/integrations/http/httpServerIntegration.d.ts.map +1 -0
  282. package/build/types/integrations/http/httpServerSpansIntegration.d.ts +59 -0
  283. package/build/types/integrations/http/httpServerSpansIntegration.d.ts.map +1 -0
  284. package/build/types/integrations/http/index.d.ts +127 -0
  285. package/build/types/integrations/http/index.d.ts.map +1 -0
  286. package/build/types/integrations/local-variables/common.d.ts +79 -0
  287. package/build/types/integrations/local-variables/common.d.ts.map +1 -0
  288. package/build/types/integrations/local-variables/index.d.ts +4 -0
  289. package/build/types/integrations/local-variables/index.d.ts.map +1 -0
  290. package/build/types/integrations/local-variables/local-variables-async.d.ts +9 -0
  291. package/build/types/integrations/local-variables/local-variables-async.d.ts.map +1 -0
  292. package/build/types/integrations/local-variables/worker.d.ts +2 -0
  293. package/build/types/integrations/local-variables/worker.d.ts.map +1 -0
  294. package/build/types/integrations/modules.d.ts +17 -0
  295. package/build/types/integrations/modules.d.ts.map +1 -0
  296. package/build/types/integrations/node-fetch/index.d.ts +9 -0
  297. package/build/types/integrations/node-fetch/index.d.ts.map +1 -0
  298. package/build/types/integrations/node-fetch/types.d.ts +95 -0
  299. package/build/types/integrations/node-fetch/types.d.ts.map +1 -0
  300. package/build/types/integrations/node-fetch/undici-instrumentation.d.ts +17 -0
  301. package/build/types/integrations/node-fetch/undici-instrumentation.d.ts.map +1 -0
  302. package/build/types/integrations/nodeRuntimeMetrics.d.ts +66 -0
  303. package/build/types/integrations/nodeRuntimeMetrics.d.ts.map +1 -0
  304. package/build/types/integrations/onuncaughtexception.d.ts +33 -0
  305. package/build/types/integrations/onuncaughtexception.d.ts.map +1 -0
  306. package/build/types/integrations/onunhandledrejection.d.ts +22 -0
  307. package/build/types/integrations/onunhandledrejection.d.ts.map +1 -0
  308. package/build/types/integrations/pino.d.ts +61 -0
  309. package/build/types/integrations/pino.d.ts.map +1 -0
  310. package/build/types/integrations/processSession.d.ts +7 -0
  311. package/build/types/integrations/processSession.d.ts.map +1 -0
  312. package/build/types/integrations/spotlight.d.ts +18 -0
  313. package/build/types/integrations/spotlight.d.ts.map +1 -0
  314. package/build/types/integrations/systemError.d.ts +14 -0
  315. package/build/types/integrations/systemError.d.ts.map +1 -0
  316. package/build/types/integrations/tracing/express.d.ts +1 -14
  317. package/build/types/integrations/tracing/express.d.ts.map +1 -1
  318. package/build/types/integrations/tracing/fastify/index.d.ts +1 -5
  319. package/build/types/integrations/tracing/fastify/index.d.ts.map +1 -1
  320. package/build/types/integrations/tracing/hapi/index.d.ts +0 -23
  321. package/build/types/integrations/tracing/hapi/index.d.ts.map +1 -1
  322. package/build/types/integrations/tracing/index.d.ts +0 -9
  323. package/build/types/integrations/tracing/index.d.ts.map +1 -1
  324. package/build/types/integrations/tracing/koa/index.d.ts +0 -46
  325. package/build/types/integrations/tracing/koa/index.d.ts.map +1 -1
  326. package/build/types/integrations/tracing/redis/cache.d.ts.map +1 -1
  327. package/build/types/integrations/tracing/redis/index.d.ts +0 -7
  328. package/build/types/integrations/tracing/redis/index.d.ts.map +1 -1
  329. package/build/types/integrations/tracing/redis/vendored/types.d.ts +0 -15
  330. package/build/types/integrations/tracing/redis/vendored/types.d.ts.map +1 -1
  331. package/build/types/integrations/winston.d.ts +55 -0
  332. package/build/types/integrations/winston.d.ts.map +1 -0
  333. package/build/types/logs/capture.d.ts +29 -0
  334. package/build/types/logs/capture.d.ts.map +1 -0
  335. package/build/types/logs/exports.d.ts +150 -0
  336. package/build/types/logs/exports.d.ts.map +1 -0
  337. package/build/types/nodeVersion.d.ts +8 -0
  338. package/build/types/nodeVersion.d.ts.map +1 -0
  339. package/build/types/otel/logger.d.ts +5 -0
  340. package/build/types/otel/logger.d.ts.map +1 -0
  341. package/build/types/proxy/base.d.ts +61 -0
  342. package/build/types/proxy/base.d.ts.map +1 -0
  343. package/build/types/proxy/helpers.d.ts +37 -0
  344. package/build/types/proxy/helpers.d.ts.map +1 -0
  345. package/build/types/proxy/index.d.ts +70 -0
  346. package/build/types/proxy/index.d.ts.map +1 -0
  347. package/build/types/proxy/parse-proxy-response.d.ts +39 -0
  348. package/build/types/proxy/parse-proxy-response.d.ts.map +1 -0
  349. package/build/types/sdk/api.d.ts +8 -0
  350. package/build/types/sdk/api.d.ts.map +1 -0
  351. package/build/types/sdk/client.d.ts +31 -0
  352. package/build/types/sdk/client.d.ts.map +1 -0
  353. package/build/types/sdk/index.d.ts +1 -19
  354. package/build/types/sdk/index.d.ts.map +1 -1
  355. package/build/types/sdk/initOtel.d.ts +4 -22
  356. package/build/types/sdk/initOtel.d.ts.map +1 -1
  357. package/build/types/sdk/scope.d.ts +7 -0
  358. package/build/types/sdk/scope.d.ts.map +1 -0
  359. package/build/types/transports/http-module.d.ts +27 -0
  360. package/build/types/transports/http-module.d.ts.map +1 -0
  361. package/build/types/transports/http.d.ts +17 -0
  362. package/build/types/transports/http.d.ts.map +1 -0
  363. package/build/types/transports/index.d.ts +3 -0
  364. package/build/types/transports/index.d.ts.map +1 -0
  365. package/build/types/types.d.ts +23 -39
  366. package/build/types/types.d.ts.map +1 -1
  367. package/build/types/utils/addOriginToSpan.d.ts +5 -0
  368. package/build/types/utils/addOriginToSpan.d.ts.map +1 -0
  369. package/build/types/utils/debug.d.ts +5 -0
  370. package/build/types/utils/debug.d.ts.map +1 -0
  371. package/build/types/utils/entry-point.d.ts +24 -0
  372. package/build/types/utils/entry-point.d.ts.map +1 -0
  373. package/build/types/utils/errorhandling.d.ts +5 -0
  374. package/build/types/utils/errorhandling.d.ts.map +1 -0
  375. package/build/types/utils/module.d.ts +3 -0
  376. package/build/types/utils/module.d.ts.map +1 -0
  377. package/build/types/utils/outgoingFetchRequest.d.ts +20 -0
  378. package/build/types/utils/outgoingFetchRequest.d.ts.map +1 -0
  379. package/build/types/utils/prepareEvent.d.ts +17 -0
  380. package/build/types/utils/prepareEvent.d.ts.map +1 -0
  381. package/build/types/utils/spotlight.d.ts +8 -0
  382. package/build/types/utils/spotlight.d.ts.map +1 -0
  383. package/package.json +38 -32
  384. package/build/cjs/init.js +0 -4
  385. package/build/cjs/init.js.map +0 -1
  386. package/build/cjs/integrations/http.js +0 -69
  387. package/build/cjs/integrations/http.js.map +0 -1
  388. package/build/cjs/integrations/node-fetch.js +0 -24
  389. package/build/cjs/integrations/node-fetch.js.map +0 -1
  390. package/build/cjs/integrations/tracing/InstrumentationNodeModuleFile.js +0 -15
  391. package/build/cjs/integrations/tracing/InstrumentationNodeModuleFile.js.map +0 -1
  392. package/build/cjs/integrations/tracing/amqplib/index.js +0 -21
  393. package/build/cjs/integrations/tracing/amqplib/index.js.map +0 -1
  394. package/build/cjs/integrations/tracing/amqplib/vendored/instrumentation.js +0 -117
  395. package/build/cjs/integrations/tracing/amqplib/vendored/instrumentation.js.map +0 -1
  396. package/build/cjs/integrations/tracing/amqplib/vendored/patches.js +0 -185
  397. package/build/cjs/integrations/tracing/amqplib/vendored/patches.js.map +0 -1
  398. package/build/cjs/integrations/tracing/amqplib/vendored/semconv.js +0 -26
  399. package/build/cjs/integrations/tracing/amqplib/vendored/semconv.js.map +0 -1
  400. package/build/cjs/integrations/tracing/amqplib/vendored/types.js +0 -17
  401. package/build/cjs/integrations/tracing/amqplib/vendored/types.js.map +0 -1
  402. package/build/cjs/integrations/tracing/amqplib/vendored/utils.js +0 -129
  403. package/build/cjs/integrations/tracing/amqplib/vendored/utils.js.map +0 -1
  404. package/build/cjs/integrations/tracing/anthropic-ai/index.js +0 -24
  405. package/build/cjs/integrations/tracing/anthropic-ai/index.js.map +0 -1
  406. package/build/cjs/integrations/tracing/anthropic-ai/instrumentation.js +0 -72
  407. package/build/cjs/integrations/tracing/anthropic-ai/instrumentation.js.map +0 -1
  408. package/build/cjs/integrations/tracing/connect/index.js +0 -35
  409. package/build/cjs/integrations/tracing/connect/index.js.map +0 -1
  410. package/build/cjs/integrations/tracing/connect/vendored/enums/AttributeNames.js +0 -16
  411. package/build/cjs/integrations/tracing/connect/vendored/enums/AttributeNames.js.map +0 -1
  412. package/build/cjs/integrations/tracing/connect/vendored/instrumentation.js +0 -137
  413. package/build/cjs/integrations/tracing/connect/vendored/instrumentation.js.map +0 -1
  414. package/build/cjs/integrations/tracing/connect/vendored/internal-types.js +0 -8
  415. package/build/cjs/integrations/tracing/connect/vendored/internal-types.js.map +0 -1
  416. package/build/cjs/integrations/tracing/connect/vendored/utils.js +0 -36
  417. package/build/cjs/integrations/tracing/connect/vendored/utils.js.map +0 -1
  418. package/build/cjs/integrations/tracing/dataloader/index.js +0 -26
  419. package/build/cjs/integrations/tracing/dataloader/index.js.map +0 -1
  420. package/build/cjs/integrations/tracing/dataloader/vendored/instrumentation.js +0 -227
  421. package/build/cjs/integrations/tracing/dataloader/vendored/instrumentation.js.map +0 -1
  422. package/build/cjs/integrations/tracing/fastify/v3/constants.js +0 -6
  423. package/build/cjs/integrations/tracing/fastify/v3/constants.js.map +0 -1
  424. package/build/cjs/integrations/tracing/fastify/v3/enums/AttributeNames.js +0 -24
  425. package/build/cjs/integrations/tracing/fastify/v3/enums/AttributeNames.js.map +0 -1
  426. package/build/cjs/integrations/tracing/fastify/v3/instrumentation.js +0 -220
  427. package/build/cjs/integrations/tracing/fastify/v3/instrumentation.js.map +0 -1
  428. package/build/cjs/integrations/tracing/fastify/v3/utils.js +0 -64
  429. package/build/cjs/integrations/tracing/fastify/v3/utils.js.map +0 -1
  430. package/build/cjs/integrations/tracing/firebase/firebase.js +0 -21
  431. package/build/cjs/integrations/tracing/firebase/firebase.js.map +0 -1
  432. package/build/cjs/integrations/tracing/firebase/otel/firebaseInstrumentation.js +0 -28
  433. package/build/cjs/integrations/tracing/firebase/otel/firebaseInstrumentation.js.map +0 -1
  434. package/build/cjs/integrations/tracing/firebase/otel/patches/firestore.js +0 -155
  435. package/build/cjs/integrations/tracing/firebase/otel/patches/firestore.js.map +0 -1
  436. package/build/cjs/integrations/tracing/firebase/otel/patches/functions.js +0 -141
  437. package/build/cjs/integrations/tracing/firebase/otel/patches/functions.js.map +0 -1
  438. package/build/cjs/integrations/tracing/genericPool/index.js +0 -21
  439. package/build/cjs/integrations/tracing/genericPool/index.js.map +0 -1
  440. package/build/cjs/integrations/tracing/genericPool/vendored/instrumentation.js +0 -122
  441. package/build/cjs/integrations/tracing/genericPool/vendored/instrumentation.js.map +0 -1
  442. package/build/cjs/integrations/tracing/google-genai/index.js +0 -23
  443. package/build/cjs/integrations/tracing/google-genai/index.js.map +0 -1
  444. package/build/cjs/integrations/tracing/google-genai/instrumentation.js +0 -68
  445. package/build/cjs/integrations/tracing/google-genai/instrumentation.js.map +0 -1
  446. package/build/cjs/integrations/tracing/graphql/index.js +0 -34
  447. package/build/cjs/integrations/tracing/graphql/index.js.map +0 -1
  448. package/build/cjs/integrations/tracing/graphql/vendored/enum.js +0 -47
  449. package/build/cjs/integrations/tracing/graphql/vendored/enum.js.map +0 -1
  450. package/build/cjs/integrations/tracing/graphql/vendored/enums/AttributeNames.js +0 -15
  451. package/build/cjs/integrations/tracing/graphql/vendored/enums/AttributeNames.js.map +0 -1
  452. package/build/cjs/integrations/tracing/graphql/vendored/instrumentation.js +0 -329
  453. package/build/cjs/integrations/tracing/graphql/vendored/instrumentation.js.map +0 -1
  454. package/build/cjs/integrations/tracing/graphql/vendored/internal-types.js +0 -6
  455. package/build/cjs/integrations/tracing/graphql/vendored/internal-types.js.map +0 -1
  456. package/build/cjs/integrations/tracing/graphql/vendored/symbols.js +0 -8
  457. package/build/cjs/integrations/tracing/graphql/vendored/symbols.js.map +0 -1
  458. package/build/cjs/integrations/tracing/graphql/vendored/utils.js +0 -265
  459. package/build/cjs/integrations/tracing/graphql/vendored/utils.js.map +0 -1
  460. package/build/cjs/integrations/tracing/hapi/vendored/enums/AttributeNames.js +0 -11
  461. package/build/cjs/integrations/tracing/hapi/vendored/enums/AttributeNames.js.map +0 -1
  462. package/build/cjs/integrations/tracing/hapi/vendored/instrumentation.js +0 -255
  463. package/build/cjs/integrations/tracing/hapi/vendored/instrumentation.js.map +0 -1
  464. package/build/cjs/integrations/tracing/hapi/vendored/internal-types.js +0 -24
  465. package/build/cjs/integrations/tracing/hapi/vendored/internal-types.js.map +0 -1
  466. package/build/cjs/integrations/tracing/hapi/vendored/utils.js +0 -85
  467. package/build/cjs/integrations/tracing/hapi/vendored/utils.js.map +0 -1
  468. package/build/cjs/integrations/tracing/hono/constants.js +0 -14
  469. package/build/cjs/integrations/tracing/hono/constants.js.map +0 -1
  470. package/build/cjs/integrations/tracing/hono/index.js +0 -86
  471. package/build/cjs/integrations/tracing/hono/index.js.map +0 -1
  472. package/build/cjs/integrations/tracing/hono/instrumentation.js +0 -201
  473. package/build/cjs/integrations/tracing/hono/instrumentation.js.map +0 -1
  474. package/build/cjs/integrations/tracing/kafka/index.js +0 -21
  475. package/build/cjs/integrations/tracing/kafka/index.js.map +0 -1
  476. package/build/cjs/integrations/tracing/kafka/vendored/instrumentation.js +0 -237
  477. package/build/cjs/integrations/tracing/kafka/vendored/instrumentation.js.map +0 -1
  478. package/build/cjs/integrations/tracing/kafka/vendored/semconv.js +0 -22
  479. package/build/cjs/integrations/tracing/kafka/vendored/semconv.js.map +0 -1
  480. package/build/cjs/integrations/tracing/kafka/vendored/utils.js +0 -114
  481. package/build/cjs/integrations/tracing/kafka/vendored/utils.js.map +0 -1
  482. package/build/cjs/integrations/tracing/knex/index.js +0 -26
  483. package/build/cjs/integrations/tracing/knex/index.js.map +0 -1
  484. package/build/cjs/integrations/tracing/knex/vendored/instrumentation.js +0 -135
  485. package/build/cjs/integrations/tracing/knex/vendored/instrumentation.js.map +0 -1
  486. package/build/cjs/integrations/tracing/knex/vendored/semconv.js +0 -10
  487. package/build/cjs/integrations/tracing/knex/vendored/semconv.js.map +0 -1
  488. package/build/cjs/integrations/tracing/knex/vendored/utils.js +0 -84
  489. package/build/cjs/integrations/tracing/knex/vendored/utils.js.map +0 -1
  490. package/build/cjs/integrations/tracing/koa/vendored/enums/AttributeNames.js +0 -10
  491. package/build/cjs/integrations/tracing/koa/vendored/enums/AttributeNames.js.map +0 -1
  492. package/build/cjs/integrations/tracing/koa/vendored/instrumentation.js +0 -127
  493. package/build/cjs/integrations/tracing/koa/vendored/instrumentation.js.map +0 -1
  494. package/build/cjs/integrations/tracing/koa/vendored/internal-types.js +0 -6
  495. package/build/cjs/integrations/tracing/koa/vendored/internal-types.js.map +0 -1
  496. package/build/cjs/integrations/tracing/koa/vendored/types.js +0 -10
  497. package/build/cjs/integrations/tracing/koa/vendored/types.js.map +0 -1
  498. package/build/cjs/integrations/tracing/koa/vendored/utils.js +0 -36
  499. package/build/cjs/integrations/tracing/koa/vendored/utils.js.map +0 -1
  500. package/build/cjs/integrations/tracing/langchain/index.js +0 -23
  501. package/build/cjs/integrations/tracing/langchain/index.js.map +0 -1
  502. package/build/cjs/integrations/tracing/langchain/instrumentation.js +0 -160
  503. package/build/cjs/integrations/tracing/langchain/instrumentation.js.map +0 -1
  504. package/build/cjs/integrations/tracing/langgraph/index.js +0 -23
  505. package/build/cjs/integrations/tracing/langgraph/index.js.map +0 -1
  506. package/build/cjs/integrations/tracing/langgraph/instrumentation.js +0 -96
  507. package/build/cjs/integrations/tracing/langgraph/instrumentation.js.map +0 -1
  508. package/build/cjs/integrations/tracing/lrumemoizer/index.js +0 -21
  509. package/build/cjs/integrations/tracing/lrumemoizer/index.js.map +0 -1
  510. package/build/cjs/integrations/tracing/lrumemoizer/vendored/instrumentation.js +0 -38
  511. package/build/cjs/integrations/tracing/lrumemoizer/vendored/instrumentation.js.map +0 -1
  512. package/build/cjs/integrations/tracing/mongo/index.js +0 -21
  513. package/build/cjs/integrations/tracing/mongo/index.js.map +0 -1
  514. package/build/cjs/integrations/tracing/mongo/vendored/instrumentation.js +0 -129
  515. package/build/cjs/integrations/tracing/mongo/vendored/instrumentation.js.map +0 -1
  516. package/build/cjs/integrations/tracing/mongo/vendored/patches.js +0 -150
  517. package/build/cjs/integrations/tracing/mongo/vendored/patches.js.map +0 -1
  518. package/build/cjs/integrations/tracing/mongo/vendored/utils.js +0 -40
  519. package/build/cjs/integrations/tracing/mongo/vendored/utils.js.map +0 -1
  520. package/build/cjs/integrations/tracing/mongoose/index.js +0 -22
  521. package/build/cjs/integrations/tracing/mongoose/index.js.map +0 -1
  522. package/build/cjs/integrations/tracing/mongoose/vendored/mongoose.js +0 -240
  523. package/build/cjs/integrations/tracing/mongoose/vendored/mongoose.js.map +0 -1
  524. package/build/cjs/integrations/tracing/mongoose/vendored/utils.js +0 -41
  525. package/build/cjs/integrations/tracing/mongoose/vendored/utils.js.map +0 -1
  526. package/build/cjs/integrations/tracing/mysql/index.js +0 -21
  527. package/build/cjs/integrations/tracing/mysql/index.js.map +0 -1
  528. package/build/cjs/integrations/tracing/mysql/vendored/instrumentation.js +0 -185
  529. package/build/cjs/integrations/tracing/mysql/vendored/instrumentation.js.map +0 -1
  530. package/build/cjs/integrations/tracing/mysql/vendored/semconv.js +0 -8
  531. package/build/cjs/integrations/tracing/mysql/vendored/semconv.js.map +0 -1
  532. package/build/cjs/integrations/tracing/mysql/vendored/utils.js +0 -38
  533. package/build/cjs/integrations/tracing/mysql/vendored/utils.js.map +0 -1
  534. package/build/cjs/integrations/tracing/mysql2/index.js +0 -22
  535. package/build/cjs/integrations/tracing/mysql2/index.js.map +0 -1
  536. package/build/cjs/integrations/tracing/mysql2/vendored/instrumentation.js +0 -138
  537. package/build/cjs/integrations/tracing/mysql2/vendored/instrumentation.js.map +0 -1
  538. package/build/cjs/integrations/tracing/mysql2/vendored/semconv.js +0 -8
  539. package/build/cjs/integrations/tracing/mysql2/vendored/semconv.js.map +0 -1
  540. package/build/cjs/integrations/tracing/mysql2/vendored/utils.js +0 -81
  541. package/build/cjs/integrations/tracing/mysql2/vendored/utils.js.map +0 -1
  542. package/build/cjs/integrations/tracing/openai/index.js +0 -23
  543. package/build/cjs/integrations/tracing/openai/index.js.map +0 -1
  544. package/build/cjs/integrations/tracing/openai/instrumentation.js +0 -80
  545. package/build/cjs/integrations/tracing/openai/instrumentation.js.map +0 -1
  546. package/build/cjs/integrations/tracing/postgres/index.js +0 -27
  547. package/build/cjs/integrations/tracing/postgres/index.js.map +0 -1
  548. package/build/cjs/integrations/tracing/postgres/vendored/enums/AttributeNames.js +0 -11
  549. package/build/cjs/integrations/tracing/postgres/vendored/enums/AttributeNames.js.map +0 -1
  550. package/build/cjs/integrations/tracing/postgres/vendored/enums/SpanNames.js +0 -11
  551. package/build/cjs/integrations/tracing/postgres/vendored/enums/SpanNames.js.map +0 -1
  552. package/build/cjs/integrations/tracing/postgres/vendored/instrumentation.js +0 -225
  553. package/build/cjs/integrations/tracing/postgres/vendored/instrumentation.js.map +0 -1
  554. package/build/cjs/integrations/tracing/postgres/vendored/semconv.js +0 -8
  555. package/build/cjs/integrations/tracing/postgres/vendored/semconv.js.map +0 -1
  556. package/build/cjs/integrations/tracing/postgres/vendored/utils.js +0 -151
  557. package/build/cjs/integrations/tracing/postgres/vendored/utils.js.map +0 -1
  558. package/build/cjs/integrations/tracing/postgresjs.js +0 -265
  559. package/build/cjs/integrations/tracing/postgresjs.js.map +0 -1
  560. package/build/cjs/integrations/tracing/redis/vendored/ioredis-instrumentation.js +0 -147
  561. package/build/cjs/integrations/tracing/redis/vendored/ioredis-instrumentation.js.map +0 -1
  562. package/build/cjs/integrations/tracing/redis/vendored/redis-instrumentation.js +0 -445
  563. package/build/cjs/integrations/tracing/redis/vendored/redis-instrumentation.js.map +0 -1
  564. package/build/cjs/integrations/tracing/redis/vendored/semconv.js +0 -8
  565. package/build/cjs/integrations/tracing/redis/vendored/semconv.js.map +0 -1
  566. package/build/cjs/integrations/tracing/tedious/index.js +0 -21
  567. package/build/cjs/integrations/tracing/tedious/index.js.map +0 -1
  568. package/build/cjs/integrations/tracing/tedious/vendored/instrumentation.js +0 -154
  569. package/build/cjs/integrations/tracing/tedious/vendored/instrumentation.js.map +0 -1
  570. package/build/cjs/integrations/tracing/tedious/vendored/semconv.js +0 -8
  571. package/build/cjs/integrations/tracing/tedious/vendored/semconv.js.map +0 -1
  572. package/build/cjs/integrations/tracing/tedious/vendored/utils.js +0 -29
  573. package/build/cjs/integrations/tracing/tedious/vendored/utils.js.map +0 -1
  574. package/build/cjs/integrations/tracing/vercelai/constants.js +0 -6
  575. package/build/cjs/integrations/tracing/vercelai/constants.js.map +0 -1
  576. package/build/cjs/integrations/tracing/vercelai/index.js +0 -36
  577. package/build/cjs/integrations/tracing/vercelai/index.js.map +0 -1
  578. package/build/cjs/integrations/tracing/vercelai/instrumentation.js +0 -176
  579. package/build/cjs/integrations/tracing/vercelai/instrumentation.js.map +0 -1
  580. package/build/cjs/preload.js +0 -8
  581. package/build/cjs/preload.js.map +0 -1
  582. package/build/cjs/sdk/diagnosticsChannelInjection.js +0 -21
  583. package/build/cjs/sdk/diagnosticsChannelInjection.js.map +0 -1
  584. package/build/cjs/sdk/experimentalUseDiagnosticsChannelInjection.js +0 -33
  585. package/build/cjs/sdk/experimentalUseDiagnosticsChannelInjection.js.map +0 -1
  586. package/build/cjs/utils/setHttpServerSpanRouteAttribute.js +0 -21
  587. package/build/cjs/utils/setHttpServerSpanRouteAttribute.js.map +0 -1
  588. package/build/esm/init.js +0 -4
  589. package/build/esm/init.js.map +0 -1
  590. package/build/esm/integrations/http.js +0 -66
  591. package/build/esm/integrations/http.js.map +0 -1
  592. package/build/esm/integrations/node-fetch.js +0 -22
  593. package/build/esm/integrations/node-fetch.js.map +0 -1
  594. package/build/esm/integrations/tracing/InstrumentationNodeModuleFile.js +0 -13
  595. package/build/esm/integrations/tracing/InstrumentationNodeModuleFile.js.map +0 -1
  596. package/build/esm/integrations/tracing/amqplib/index.js +0 -18
  597. package/build/esm/integrations/tracing/amqplib/index.js.map +0 -1
  598. package/build/esm/integrations/tracing/amqplib/vendored/instrumentation.js +0 -115
  599. package/build/esm/integrations/tracing/amqplib/vendored/instrumentation.js.map +0 -1
  600. package/build/esm/integrations/tracing/amqplib/vendored/patches.js +0 -177
  601. package/build/esm/integrations/tracing/amqplib/vendored/patches.js.map +0 -1
  602. package/build/esm/integrations/tracing/amqplib/vendored/semconv.js +0 -14
  603. package/build/esm/integrations/tracing/amqplib/vendored/semconv.js.map +0 -1
  604. package/build/esm/integrations/tracing/amqplib/vendored/types.js +0 -15
  605. package/build/esm/integrations/tracing/amqplib/vendored/types.js.map +0 -1
  606. package/build/esm/integrations/tracing/amqplib/vendored/utils.js +0 -117
  607. package/build/esm/integrations/tracing/amqplib/vendored/utils.js.map +0 -1
  608. package/build/esm/integrations/tracing/anthropic-ai/index.js +0 -21
  609. package/build/esm/integrations/tracing/anthropic-ai/index.js.map +0 -1
  610. package/build/esm/integrations/tracing/anthropic-ai/instrumentation.js +0 -70
  611. package/build/esm/integrations/tracing/anthropic-ai/instrumentation.js.map +0 -1
  612. package/build/esm/integrations/tracing/connect/index.js +0 -31
  613. package/build/esm/integrations/tracing/connect/index.js.map +0 -1
  614. package/build/esm/integrations/tracing/connect/vendored/enums/AttributeNames.js +0 -13
  615. package/build/esm/integrations/tracing/connect/vendored/enums/AttributeNames.js.map +0 -1
  616. package/build/esm/integrations/tracing/connect/vendored/instrumentation.js +0 -135
  617. package/build/esm/integrations/tracing/connect/vendored/instrumentation.js.map +0 -1
  618. package/build/esm/integrations/tracing/connect/vendored/internal-types.js +0 -6
  619. package/build/esm/integrations/tracing/connect/vendored/internal-types.js.map +0 -1
  620. package/build/esm/integrations/tracing/connect/vendored/utils.js +0 -32
  621. package/build/esm/integrations/tracing/connect/vendored/utils.js.map +0 -1
  622. package/build/esm/integrations/tracing/dataloader/index.js +0 -23
  623. package/build/esm/integrations/tracing/dataloader/index.js.map +0 -1
  624. package/build/esm/integrations/tracing/dataloader/vendored/instrumentation.js +0 -225
  625. package/build/esm/integrations/tracing/dataloader/vendored/instrumentation.js.map +0 -1
  626. package/build/esm/integrations/tracing/fastify/v3/constants.js +0 -4
  627. package/build/esm/integrations/tracing/fastify/v3/constants.js.map +0 -1
  628. package/build/esm/integrations/tracing/fastify/v3/enums/AttributeNames.js +0 -20
  629. package/build/esm/integrations/tracing/fastify/v3/enums/AttributeNames.js.map +0 -1
  630. package/build/esm/integrations/tracing/fastify/v3/instrumentation.js +0 -218
  631. package/build/esm/integrations/tracing/fastify/v3/instrumentation.js.map +0 -1
  632. package/build/esm/integrations/tracing/fastify/v3/utils.js +0 -60
  633. package/build/esm/integrations/tracing/fastify/v3/utils.js.map +0 -1
  634. package/build/esm/integrations/tracing/firebase/firebase.js +0 -18
  635. package/build/esm/integrations/tracing/firebase/firebase.js.map +0 -1
  636. package/build/esm/integrations/tracing/firebase/otel/firebaseInstrumentation.js +0 -26
  637. package/build/esm/integrations/tracing/firebase/otel/firebaseInstrumentation.js.map +0 -1
  638. package/build/esm/integrations/tracing/firebase/otel/patches/firestore.js +0 -152
  639. package/build/esm/integrations/tracing/firebase/otel/patches/firestore.js.map +0 -1
  640. package/build/esm/integrations/tracing/firebase/otel/patches/functions.js +0 -138
  641. package/build/esm/integrations/tracing/firebase/otel/patches/functions.js.map +0 -1
  642. package/build/esm/integrations/tracing/genericPool/index.js +0 -18
  643. package/build/esm/integrations/tracing/genericPool/index.js.map +0 -1
  644. package/build/esm/integrations/tracing/genericPool/vendored/instrumentation.js +0 -120
  645. package/build/esm/integrations/tracing/genericPool/vendored/instrumentation.js.map +0 -1
  646. package/build/esm/integrations/tracing/google-genai/index.js +0 -20
  647. package/build/esm/integrations/tracing/google-genai/index.js.map +0 -1
  648. package/build/esm/integrations/tracing/google-genai/instrumentation.js +0 -66
  649. package/build/esm/integrations/tracing/google-genai/instrumentation.js.map +0 -1
  650. package/build/esm/integrations/tracing/graphql/index.js +0 -31
  651. package/build/esm/integrations/tracing/graphql/index.js.map +0 -1
  652. package/build/esm/integrations/tracing/graphql/vendored/enum.js +0 -43
  653. package/build/esm/integrations/tracing/graphql/vendored/enum.js.map +0 -1
  654. package/build/esm/integrations/tracing/graphql/vendored/enums/AttributeNames.js +0 -13
  655. package/build/esm/integrations/tracing/graphql/vendored/enums/AttributeNames.js.map +0 -1
  656. package/build/esm/integrations/tracing/graphql/vendored/instrumentation.js +0 -327
  657. package/build/esm/integrations/tracing/graphql/vendored/instrumentation.js.map +0 -1
  658. package/build/esm/integrations/tracing/graphql/vendored/internal-types.js +0 -4
  659. package/build/esm/integrations/tracing/graphql/vendored/internal-types.js.map +0 -1
  660. package/build/esm/integrations/tracing/graphql/vendored/symbols.js +0 -5
  661. package/build/esm/integrations/tracing/graphql/vendored/symbols.js.map +0 -1
  662. package/build/esm/integrations/tracing/graphql/vendored/utils.js +0 -257
  663. package/build/esm/integrations/tracing/graphql/vendored/utils.js.map +0 -1
  664. package/build/esm/integrations/tracing/hapi/vendored/enums/AttributeNames.js +0 -9
  665. package/build/esm/integrations/tracing/hapi/vendored/enums/AttributeNames.js.map +0 -1
  666. package/build/esm/integrations/tracing/hapi/vendored/instrumentation.js +0 -253
  667. package/build/esm/integrations/tracing/hapi/vendored/instrumentation.js.map +0 -1
  668. package/build/esm/integrations/tracing/hapi/vendored/internal-types.js +0 -19
  669. package/build/esm/integrations/tracing/hapi/vendored/internal-types.js.map +0 -1
  670. package/build/esm/integrations/tracing/hapi/vendored/utils.js +0 -76
  671. package/build/esm/integrations/tracing/hapi/vendored/utils.js.map +0 -1
  672. package/build/esm/integrations/tracing/hono/constants.js +0 -11
  673. package/build/esm/integrations/tracing/hono/constants.js.map +0 -1
  674. package/build/esm/integrations/tracing/hono/index.js +0 -82
  675. package/build/esm/integrations/tracing/hono/index.js.map +0 -1
  676. package/build/esm/integrations/tracing/hono/instrumentation.js +0 -199
  677. package/build/esm/integrations/tracing/hono/instrumentation.js.map +0 -1
  678. package/build/esm/integrations/tracing/kafka/index.js +0 -18
  679. package/build/esm/integrations/tracing/kafka/index.js.map +0 -1
  680. package/build/esm/integrations/tracing/kafka/vendored/instrumentation.js +0 -235
  681. package/build/esm/integrations/tracing/kafka/vendored/instrumentation.js.map +0 -1
  682. package/build/esm/integrations/tracing/kafka/vendored/semconv.js +0 -12
  683. package/build/esm/integrations/tracing/kafka/vendored/semconv.js.map +0 -1
  684. package/build/esm/integrations/tracing/kafka/vendored/utils.js +0 -108
  685. package/build/esm/integrations/tracing/kafka/vendored/utils.js.map +0 -1
  686. package/build/esm/integrations/tracing/knex/index.js +0 -23
  687. package/build/esm/integrations/tracing/knex/index.js.map +0 -1
  688. package/build/esm/integrations/tracing/knex/vendored/instrumentation.js +0 -133
  689. package/build/esm/integrations/tracing/knex/vendored/instrumentation.js.map +0 -1
  690. package/build/esm/integrations/tracing/knex/vendored/semconv.js +0 -6
  691. package/build/esm/integrations/tracing/knex/vendored/semconv.js.map +0 -1
  692. package/build/esm/integrations/tracing/knex/vendored/utils.js +0 -75
  693. package/build/esm/integrations/tracing/knex/vendored/utils.js.map +0 -1
  694. package/build/esm/integrations/tracing/koa/vendored/enums/AttributeNames.js +0 -8
  695. package/build/esm/integrations/tracing/koa/vendored/enums/AttributeNames.js.map +0 -1
  696. package/build/esm/integrations/tracing/koa/vendored/instrumentation.js +0 -125
  697. package/build/esm/integrations/tracing/koa/vendored/instrumentation.js.map +0 -1
  698. package/build/esm/integrations/tracing/koa/vendored/internal-types.js +0 -4
  699. package/build/esm/integrations/tracing/koa/vendored/internal-types.js.map +0 -1
  700. package/build/esm/integrations/tracing/koa/vendored/types.js +0 -8
  701. package/build/esm/integrations/tracing/koa/vendored/types.js.map +0 -1
  702. package/build/esm/integrations/tracing/koa/vendored/utils.js +0 -33
  703. package/build/esm/integrations/tracing/koa/vendored/utils.js.map +0 -1
  704. package/build/esm/integrations/tracing/langchain/index.js +0 -20
  705. package/build/esm/integrations/tracing/langchain/index.js.map +0 -1
  706. package/build/esm/integrations/tracing/langchain/instrumentation.js +0 -158
  707. package/build/esm/integrations/tracing/langchain/instrumentation.js.map +0 -1
  708. package/build/esm/integrations/tracing/langgraph/index.js +0 -20
  709. package/build/esm/integrations/tracing/langgraph/index.js.map +0 -1
  710. package/build/esm/integrations/tracing/langgraph/instrumentation.js +0 -94
  711. package/build/esm/integrations/tracing/langgraph/instrumentation.js.map +0 -1
  712. package/build/esm/integrations/tracing/lrumemoizer/index.js +0 -18
  713. package/build/esm/integrations/tracing/lrumemoizer/index.js.map +0 -1
  714. package/build/esm/integrations/tracing/lrumemoizer/vendored/instrumentation.js +0 -36
  715. package/build/esm/integrations/tracing/lrumemoizer/vendored/instrumentation.js.map +0 -1
  716. package/build/esm/integrations/tracing/mongo/index.js +0 -18
  717. package/build/esm/integrations/tracing/mongo/index.js.map +0 -1
  718. package/build/esm/integrations/tracing/mongo/vendored/instrumentation.js +0 -127
  719. package/build/esm/integrations/tracing/mongo/vendored/instrumentation.js.map +0 -1
  720. package/build/esm/integrations/tracing/mongo/vendored/patches.js +0 -142
  721. package/build/esm/integrations/tracing/mongo/vendored/patches.js.map +0 -1
  722. package/build/esm/integrations/tracing/mongo/vendored/utils.js +0 -34
  723. package/build/esm/integrations/tracing/mongo/vendored/utils.js.map +0 -1
  724. package/build/esm/integrations/tracing/mongoose/index.js +0 -19
  725. package/build/esm/integrations/tracing/mongoose/index.js.map +0 -1
  726. package/build/esm/integrations/tracing/mongoose/vendored/mongoose.js +0 -236
  727. package/build/esm/integrations/tracing/mongoose/vendored/mongoose.js.map +0 -1
  728. package/build/esm/integrations/tracing/mongoose/vendored/utils.js +0 -38
  729. package/build/esm/integrations/tracing/mongoose/vendored/utils.js.map +0 -1
  730. package/build/esm/integrations/tracing/mysql/index.js +0 -18
  731. package/build/esm/integrations/tracing/mysql/index.js.map +0 -1
  732. package/build/esm/integrations/tracing/mysql/vendored/instrumentation.js +0 -183
  733. package/build/esm/integrations/tracing/mysql/vendored/instrumentation.js.map +0 -1
  734. package/build/esm/integrations/tracing/mysql/vendored/semconv.js +0 -5
  735. package/build/esm/integrations/tracing/mysql/vendored/semconv.js.map +0 -1
  736. package/build/esm/integrations/tracing/mysql/vendored/utils.js +0 -33
  737. package/build/esm/integrations/tracing/mysql/vendored/utils.js.map +0 -1
  738. package/build/esm/integrations/tracing/mysql2/index.js +0 -19
  739. package/build/esm/integrations/tracing/mysql2/index.js.map +0 -1
  740. package/build/esm/integrations/tracing/mysql2/vendored/instrumentation.js +0 -136
  741. package/build/esm/integrations/tracing/mysql2/vendored/instrumentation.js.map +0 -1
  742. package/build/esm/integrations/tracing/mysql2/vendored/semconv.js +0 -5
  743. package/build/esm/integrations/tracing/mysql2/vendored/semconv.js.map +0 -1
  744. package/build/esm/integrations/tracing/mysql2/vendored/utils.js +0 -75
  745. package/build/esm/integrations/tracing/mysql2/vendored/utils.js.map +0 -1
  746. package/build/esm/integrations/tracing/openai/index.js +0 -20
  747. package/build/esm/integrations/tracing/openai/index.js.map +0 -1
  748. package/build/esm/integrations/tracing/openai/instrumentation.js +0 -78
  749. package/build/esm/integrations/tracing/openai/instrumentation.js.map +0 -1
  750. package/build/esm/integrations/tracing/postgres/index.js +0 -24
  751. package/build/esm/integrations/tracing/postgres/index.js.map +0 -1
  752. package/build/esm/integrations/tracing/postgres/vendored/enums/AttributeNames.js +0 -9
  753. package/build/esm/integrations/tracing/postgres/vendored/enums/AttributeNames.js.map +0 -1
  754. package/build/esm/integrations/tracing/postgres/vendored/enums/SpanNames.js +0 -9
  755. package/build/esm/integrations/tracing/postgres/vendored/enums/SpanNames.js.map +0 -1
  756. package/build/esm/integrations/tracing/postgres/vendored/instrumentation.js +0 -223
  757. package/build/esm/integrations/tracing/postgres/vendored/instrumentation.js.map +0 -1
  758. package/build/esm/integrations/tracing/postgres/vendored/semconv.js +0 -5
  759. package/build/esm/integrations/tracing/postgres/vendored/semconv.js.map +0 -1
  760. package/build/esm/integrations/tracing/postgres/vendored/utils.js +0 -136
  761. package/build/esm/integrations/tracing/postgres/vendored/utils.js.map +0 -1
  762. package/build/esm/integrations/tracing/postgresjs.js +0 -261
  763. package/build/esm/integrations/tracing/postgresjs.js.map +0 -1
  764. package/build/esm/integrations/tracing/redis/vendored/ioredis-instrumentation.js +0 -145
  765. package/build/esm/integrations/tracing/redis/vendored/ioredis-instrumentation.js.map +0 -1
  766. package/build/esm/integrations/tracing/redis/vendored/redis-instrumentation.js +0 -443
  767. package/build/esm/integrations/tracing/redis/vendored/redis-instrumentation.js.map +0 -1
  768. package/build/esm/integrations/tracing/redis/vendored/semconv.js +0 -5
  769. package/build/esm/integrations/tracing/redis/vendored/semconv.js.map +0 -1
  770. package/build/esm/integrations/tracing/tedious/index.js +0 -18
  771. package/build/esm/integrations/tracing/tedious/index.js.map +0 -1
  772. package/build/esm/integrations/tracing/tedious/vendored/instrumentation.js +0 -152
  773. package/build/esm/integrations/tracing/tedious/vendored/instrumentation.js.map +0 -1
  774. package/build/esm/integrations/tracing/tedious/vendored/semconv.js +0 -5
  775. package/build/esm/integrations/tracing/tedious/vendored/semconv.js.map +0 -1
  776. package/build/esm/integrations/tracing/tedious/vendored/utils.js +0 -26
  777. package/build/esm/integrations/tracing/tedious/vendored/utils.js.map +0 -1
  778. package/build/esm/integrations/tracing/vercelai/constants.js +0 -4
  779. package/build/esm/integrations/tracing/vercelai/constants.js.map +0 -1
  780. package/build/esm/integrations/tracing/vercelai/index.js +0 -33
  781. package/build/esm/integrations/tracing/vercelai/index.js.map +0 -1
  782. package/build/esm/integrations/tracing/vercelai/instrumentation.js +0 -171
  783. package/build/esm/integrations/tracing/vercelai/instrumentation.js.map +0 -1
  784. package/build/esm/preload.js +0 -8
  785. package/build/esm/preload.js.map +0 -1
  786. package/build/esm/sdk/diagnosticsChannelInjection.js +0 -17
  787. package/build/esm/sdk/diagnosticsChannelInjection.js.map +0 -1
  788. package/build/esm/sdk/experimentalUseDiagnosticsChannelInjection.js +0 -30
  789. package/build/esm/sdk/experimentalUseDiagnosticsChannelInjection.js.map +0 -1
  790. package/build/esm/utils/setHttpServerSpanRouteAttribute.js +0 -19
  791. package/build/esm/utils/setHttpServerSpanRouteAttribute.js.map +0 -1
  792. package/build/loader-hook.mjs +0 -1
  793. package/build/types/init.d.ts +0 -2
  794. package/build/types/init.d.ts.map +0 -1
  795. package/build/types/integrations/http.d.ts +0 -131
  796. package/build/types/integrations/http.d.ts.map +0 -1
  797. package/build/types/integrations/node-fetch.d.ts +0 -9
  798. package/build/types/integrations/node-fetch.d.ts.map +0 -1
  799. package/build/types/integrations/tracing/InstrumentationNodeModuleFile.d.ts +0 -9
  800. package/build/types/integrations/tracing/InstrumentationNodeModuleFile.d.ts.map +0 -1
  801. package/build/types/integrations/tracing/amqplib/index.d.ts +0 -22
  802. package/build/types/integrations/tracing/amqplib/index.d.ts.map +0 -1
  803. package/build/types/integrations/tracing/amqplib/vendored/amqplib-types.d.ts +0 -44
  804. package/build/types/integrations/tracing/amqplib/vendored/amqplib-types.d.ts.map +0 -1
  805. package/build/types/integrations/tracing/amqplib/vendored/instrumentation.d.ts +0 -11
  806. package/build/types/integrations/tracing/amqplib/vendored/instrumentation.d.ts.map +0 -1
  807. package/build/types/integrations/tracing/amqplib/vendored/patches.d.ts +0 -11
  808. package/build/types/integrations/tracing/amqplib/vendored/patches.d.ts.map +0 -1
  809. package/build/types/integrations/tracing/amqplib/vendored/semconv.d.ts +0 -23
  810. package/build/types/integrations/tracing/amqplib/vendored/semconv.d.ts.map +0 -1
  811. package/build/types/integrations/tracing/amqplib/vendored/types.d.ts +0 -49
  812. package/build/types/integrations/tracing/amqplib/vendored/types.d.ts.map +0 -1
  813. package/build/types/integrations/tracing/amqplib/vendored/utils.d.ts +0 -42
  814. package/build/types/integrations/tracing/amqplib/vendored/utils.d.ts.map +0 -1
  815. package/build/types/integrations/tracing/anthropic-ai/index.d.ts +0 -62
  816. package/build/types/integrations/tracing/anthropic-ai/index.d.ts.map +0 -1
  817. package/build/types/integrations/tracing/anthropic-ai/instrumentation.d.ts +0 -19
  818. package/build/types/integrations/tracing/anthropic-ai/instrumentation.d.ts.map +0 -1
  819. package/build/types/integrations/tracing/connect/index.d.ts +0 -48
  820. package/build/types/integrations/tracing/connect/index.d.ts.map +0 -1
  821. package/build/types/integrations/tracing/connect/vendored/enums/AttributeNames.d.ts +0 -9
  822. package/build/types/integrations/tracing/connect/vendored/enums/AttributeNames.d.ts.map +0 -1
  823. package/build/types/integrations/tracing/connect/vendored/instrumentation.d.ts +0 -18
  824. package/build/types/integrations/tracing/connect/vendored/instrumentation.d.ts.map +0 -1
  825. package/build/types/integrations/tracing/connect/vendored/internal-types.d.ts +0 -31
  826. package/build/types/integrations/tracing/connect/vendored/internal-types.d.ts.map +0 -1
  827. package/build/types/integrations/tracing/connect/vendored/utils.d.ts +0 -5
  828. package/build/types/integrations/tracing/connect/vendored/utils.d.ts.map +0 -1
  829. package/build/types/integrations/tracing/dataloader/index.d.ts +0 -22
  830. package/build/types/integrations/tracing/dataloader/index.d.ts.map +0 -1
  831. package/build/types/integrations/tracing/dataloader/vendored/instrumentation.d.ts +0 -18
  832. package/build/types/integrations/tracing/dataloader/vendored/instrumentation.d.ts.map +0 -1
  833. package/build/types/integrations/tracing/dataloader/vendored/types.d.ts +0 -22
  834. package/build/types/integrations/tracing/dataloader/vendored/types.d.ts.map +0 -1
  835. package/build/types/integrations/tracing/fastify/v3/constants.d.ts +0 -3
  836. package/build/types/integrations/tracing/fastify/v3/constants.d.ts.map +0 -1
  837. package/build/types/integrations/tracing/fastify/v3/enums/AttributeNames.d.ts +0 -15
  838. package/build/types/integrations/tracing/fastify/v3/enums/AttributeNames.d.ts.map +0 -1
  839. package/build/types/integrations/tracing/fastify/v3/instrumentation.d.ts +0 -16
  840. package/build/types/integrations/tracing/fastify/v3/instrumentation.d.ts.map +0 -1
  841. package/build/types/integrations/tracing/fastify/v3/internal-types.d.ts +0 -7
  842. package/build/types/integrations/tracing/fastify/v3/internal-types.d.ts.map +0 -1
  843. package/build/types/integrations/tracing/fastify/v3/types.d.ts +0 -21
  844. package/build/types/integrations/tracing/fastify/v3/types.d.ts.map +0 -1
  845. package/build/types/integrations/tracing/fastify/v3/utils.d.ts +0 -28
  846. package/build/types/integrations/tracing/fastify/v3/utils.d.ts.map +0 -1
  847. package/build/types/integrations/tracing/firebase/firebase.d.ts +0 -8
  848. package/build/types/integrations/tracing/firebase/firebase.d.ts.map +0 -1
  849. package/build/types/integrations/tracing/firebase/index.d.ts +0 -2
  850. package/build/types/integrations/tracing/firebase/index.d.ts.map +0 -1
  851. package/build/types/integrations/tracing/firebase/otel/firebaseInstrumentation.d.ts +0 -14
  852. package/build/types/integrations/tracing/firebase/otel/firebaseInstrumentation.d.ts.map +0 -1
  853. package/build/types/integrations/tracing/firebase/otel/index.d.ts +0 -3
  854. package/build/types/integrations/tracing/firebase/otel/index.d.ts.map +0 -1
  855. package/build/types/integrations/tracing/firebase/otel/patches/firestore.d.ts +0 -22
  856. package/build/types/integrations/tracing/firebase/otel/patches/firestore.d.ts.map +0 -1
  857. package/build/types/integrations/tracing/firebase/otel/patches/functions.d.ts +0 -18
  858. package/build/types/integrations/tracing/firebase/otel/patches/functions.d.ts.map +0 -1
  859. package/build/types/integrations/tracing/firebase/otel/types.d.ts +0 -100
  860. package/build/types/integrations/tracing/firebase/otel/types.d.ts.map +0 -1
  861. package/build/types/integrations/tracing/genericPool/index.d.ts +0 -22
  862. package/build/types/integrations/tracing/genericPool/index.d.ts.map +0 -1
  863. package/build/types/integrations/tracing/genericPool/vendored/generic-pool-types.d.ts +0 -5
  864. package/build/types/integrations/tracing/genericPool/vendored/generic-pool-types.d.ts.map +0 -1
  865. package/build/types/integrations/tracing/genericPool/vendored/instrumentation.d.ts +0 -11
  866. package/build/types/integrations/tracing/genericPool/vendored/instrumentation.d.ts.map +0 -1
  867. package/build/types/integrations/tracing/google-genai/index.d.ts +0 -62
  868. package/build/types/integrations/tracing/google-genai/index.d.ts.map +0 -1
  869. package/build/types/integrations/tracing/google-genai/instrumentation.d.ts +0 -20
  870. package/build/types/integrations/tracing/google-genai/instrumentation.d.ts.map +0 -1
  871. package/build/types/integrations/tracing/graphql/index.d.ts +0 -50
  872. package/build/types/integrations/tracing/graphql/index.d.ts.map +0 -1
  873. package/build/types/integrations/tracing/graphql/vendored/enum.d.ts +0 -38
  874. package/build/types/integrations/tracing/graphql/vendored/enum.d.ts.map +0 -1
  875. package/build/types/integrations/tracing/graphql/vendored/enums/AttributeNames.d.ts +0 -10
  876. package/build/types/integrations/tracing/graphql/vendored/enums/AttributeNames.d.ts.map +0 -1
  877. package/build/types/integrations/tracing/graphql/vendored/graphql-types.d.ts +0 -2
  878. package/build/types/integrations/tracing/graphql/vendored/graphql-types.d.ts.map +0 -1
  879. package/build/types/integrations/tracing/graphql/vendored/instrumentation.d.ts +0 -25
  880. package/build/types/integrations/tracing/graphql/vendored/instrumentation.d.ts.map +0 -1
  881. package/build/types/integrations/tracing/graphql/vendored/internal-types.d.ts +0 -63
  882. package/build/types/integrations/tracing/graphql/vendored/internal-types.d.ts.map +0 -1
  883. package/build/types/integrations/tracing/graphql/vendored/symbols.d.ts +0 -3
  884. package/build/types/integrations/tracing/graphql/vendored/symbols.d.ts.map +0 -1
  885. package/build/types/integrations/tracing/graphql/vendored/types.d.ts +0 -33
  886. package/build/types/integrations/tracing/graphql/vendored/types.d.ts.map +0 -1
  887. package/build/types/integrations/tracing/graphql/vendored/utils.d.ts +0 -14
  888. package/build/types/integrations/tracing/graphql/vendored/utils.d.ts.map +0 -1
  889. package/build/types/integrations/tracing/hapi/vendored/enums/AttributeNames.d.ts +0 -6
  890. package/build/types/integrations/tracing/hapi/vendored/enums/AttributeNames.d.ts.map +0 -1
  891. package/build/types/integrations/tracing/hapi/vendored/hapi-types.d.ts +0 -70
  892. package/build/types/integrations/tracing/hapi/vendored/hapi-types.d.ts.map +0 -1
  893. package/build/types/integrations/tracing/hapi/vendored/instrumentation.d.ts +0 -72
  894. package/build/types/integrations/tracing/hapi/vendored/instrumentation.d.ts.map +0 -1
  895. package/build/types/integrations/tracing/hapi/vendored/internal-types.d.ts +0 -32
  896. package/build/types/integrations/tracing/hapi/vendored/internal-types.d.ts.map +0 -1
  897. package/build/types/integrations/tracing/hapi/vendored/utils.d.ts +0 -18
  898. package/build/types/integrations/tracing/hapi/vendored/utils.d.ts.map +0 -1
  899. package/build/types/integrations/tracing/hono/constants.d.ts +0 -11
  900. package/build/types/integrations/tracing/hono/constants.d.ts.map +0 -1
  901. package/build/types/integrations/tracing/hono/index.d.ts +0 -60
  902. package/build/types/integrations/tracing/hono/index.d.ts.map +0 -1
  903. package/build/types/integrations/tracing/hono/instrumentation.d.ts +0 -55
  904. package/build/types/integrations/tracing/hono/instrumentation.d.ts.map +0 -1
  905. package/build/types/integrations/tracing/hono/types.d.ts +0 -36
  906. package/build/types/integrations/tracing/hono/types.d.ts.map +0 -1
  907. package/build/types/integrations/tracing/kafka/index.d.ts +0 -21
  908. package/build/types/integrations/tracing/kafka/index.d.ts.map +0 -1
  909. package/build/types/integrations/tracing/kafka/vendored/instrumentation.d.ts +0 -15
  910. package/build/types/integrations/tracing/kafka/vendored/instrumentation.d.ts.map +0 -1
  911. package/build/types/integrations/tracing/kafka/vendored/kafkajs-types.d.ts +0 -79
  912. package/build/types/integrations/tracing/kafka/vendored/kafkajs-types.d.ts.map +0 -1
  913. package/build/types/integrations/tracing/kafka/vendored/semconv.d.ts +0 -54
  914. package/build/types/integrations/tracing/kafka/vendored/semconv.d.ts.map +0 -1
  915. package/build/types/integrations/tracing/kafka/vendored/utils.d.ts +0 -29
  916. package/build/types/integrations/tracing/kafka/vendored/utils.d.ts.map +0 -1
  917. package/build/types/integrations/tracing/knex/index.d.ts +0 -22
  918. package/build/types/integrations/tracing/knex/index.d.ts.map +0 -1
  919. package/build/types/integrations/tracing/knex/vendored/instrumentation.d.ts +0 -12
  920. package/build/types/integrations/tracing/knex/vendored/instrumentation.d.ts.map +0 -1
  921. package/build/types/integrations/tracing/knex/vendored/semconv.d.ts +0 -7
  922. package/build/types/integrations/tracing/knex/vendored/semconv.d.ts.map +0 -1
  923. package/build/types/integrations/tracing/knex/vendored/utils.d.ts +0 -9
  924. package/build/types/integrations/tracing/knex/vendored/utils.d.ts.map +0 -1
  925. package/build/types/integrations/tracing/koa/vendored/enums/AttributeNames.d.ts +0 -5
  926. package/build/types/integrations/tracing/koa/vendored/enums/AttributeNames.d.ts.map +0 -1
  927. package/build/types/integrations/tracing/koa/vendored/instrumentation.d.ts +0 -32
  928. package/build/types/integrations/tracing/koa/vendored/instrumentation.d.ts.map +0 -1
  929. package/build/types/integrations/tracing/koa/vendored/internal-types.d.ts +0 -34
  930. package/build/types/integrations/tracing/koa/vendored/internal-types.d.ts.map +0 -1
  931. package/build/types/integrations/tracing/koa/vendored/types.d.ts +0 -13
  932. package/build/types/integrations/tracing/koa/vendored/types.d.ts.map +0 -1
  933. package/build/types/integrations/tracing/koa/vendored/utils.d.ts +0 -15
  934. package/build/types/integrations/tracing/koa/vendored/utils.d.ts.map +0 -1
  935. package/build/types/integrations/tracing/langchain/index.d.ts +0 -101
  936. package/build/types/integrations/tracing/langchain/index.d.ts.map +0 -1
  937. package/build/types/integrations/tracing/langchain/instrumentation.d.ts +0 -38
  938. package/build/types/integrations/tracing/langchain/instrumentation.d.ts.map +0 -1
  939. package/build/types/integrations/tracing/langgraph/index.d.ts +0 -77
  940. package/build/types/integrations/tracing/langgraph/index.d.ts.map +0 -1
  941. package/build/types/integrations/tracing/langgraph/instrumentation.d.ts +0 -19
  942. package/build/types/integrations/tracing/langgraph/instrumentation.d.ts.map +0 -1
  943. package/build/types/integrations/tracing/lrumemoizer/index.d.ts +0 -21
  944. package/build/types/integrations/tracing/lrumemoizer/index.d.ts.map +0 -1
  945. package/build/types/integrations/tracing/lrumemoizer/vendored/instrumentation.d.ts +0 -6
  946. package/build/types/integrations/tracing/lrumemoizer/vendored/instrumentation.d.ts.map +0 -1
  947. package/build/types/integrations/tracing/mongo/index.d.ts +0 -22
  948. package/build/types/integrations/tracing/mongo/index.d.ts.map +0 -1
  949. package/build/types/integrations/tracing/mongo/vendored/instrumentation.d.ts +0 -11
  950. package/build/types/integrations/tracing/mongo/vendored/instrumentation.d.ts.map +0 -1
  951. package/build/types/integrations/tracing/mongo/vendored/internal-types.d.ts +0 -62
  952. package/build/types/integrations/tracing/mongo/vendored/internal-types.d.ts.map +0 -1
  953. package/build/types/integrations/tracing/mongo/vendored/patches.d.ts +0 -15
  954. package/build/types/integrations/tracing/mongo/vendored/patches.d.ts.map +0 -1
  955. package/build/types/integrations/tracing/mongo/vendored/utils.d.ts +0 -15
  956. package/build/types/integrations/tracing/mongo/vendored/utils.d.ts.map +0 -1
  957. package/build/types/integrations/tracing/mongoose/index.d.ts +0 -22
  958. package/build/types/integrations/tracing/mongoose/index.d.ts.map +0 -1
  959. package/build/types/integrations/tracing/mongoose/vendored/mongoose-types.d.ts +0 -33
  960. package/build/types/integrations/tracing/mongoose/vendored/mongoose-types.d.ts.map +0 -1
  961. package/build/types/integrations/tracing/mongoose/vendored/mongoose.d.ts +0 -18
  962. package/build/types/integrations/tracing/mongoose/vendored/mongoose.d.ts.map +0 -1
  963. package/build/types/integrations/tracing/mongoose/vendored/utils.d.ts +0 -4
  964. package/build/types/integrations/tracing/mongoose/vendored/utils.d.ts.map +0 -1
  965. package/build/types/integrations/tracing/mysql/index.d.ts +0 -22
  966. package/build/types/integrations/tracing/mysql/index.d.ts.map +0 -1
  967. package/build/types/integrations/tracing/mysql/vendored/instrumentation.d.ts +0 -14
  968. package/build/types/integrations/tracing/mysql/vendored/instrumentation.d.ts.map +0 -1
  969. package/build/types/integrations/tracing/mysql/vendored/mysql-types.d.ts +0 -78
  970. package/build/types/integrations/tracing/mysql/vendored/mysql-types.d.ts.map +0 -1
  971. package/build/types/integrations/tracing/mysql/vendored/semconv.d.ts +0 -19
  972. package/build/types/integrations/tracing/mysql/vendored/semconv.d.ts.map +0 -1
  973. package/build/types/integrations/tracing/mysql/vendored/utils.d.ts +0 -22
  974. package/build/types/integrations/tracing/mysql/vendored/utils.d.ts.map +0 -1
  975. package/build/types/integrations/tracing/mysql2/index.d.ts +0 -22
  976. package/build/types/integrations/tracing/mysql2/index.d.ts.map +0 -1
  977. package/build/types/integrations/tracing/mysql2/vendored/instrumentation.d.ts +0 -9
  978. package/build/types/integrations/tracing/mysql2/vendored/instrumentation.d.ts.map +0 -1
  979. package/build/types/integrations/tracing/mysql2/vendored/mysql2-types.d.ts +0 -39
  980. package/build/types/integrations/tracing/mysql2/vendored/mysql2-types.d.ts.map +0 -1
  981. package/build/types/integrations/tracing/mysql2/vendored/semconv.d.ts +0 -3
  982. package/build/types/integrations/tracing/mysql2/vendored/semconv.d.ts.map +0 -1
  983. package/build/types/integrations/tracing/mysql2/vendored/utils.d.ts +0 -25
  984. package/build/types/integrations/tracing/mysql2/vendored/utils.d.ts.map +0 -1
  985. package/build/types/integrations/tracing/openai/index.d.ts +0 -62
  986. package/build/types/integrations/tracing/openai/index.d.ts.map +0 -1
  987. package/build/types/integrations/tracing/openai/instrumentation.d.ts +0 -26
  988. package/build/types/integrations/tracing/openai/instrumentation.d.ts.map +0 -1
  989. package/build/types/integrations/tracing/postgres/index.d.ts +0 -26
  990. package/build/types/integrations/tracing/postgres/index.d.ts.map +0 -1
  991. package/build/types/integrations/tracing/postgres/vendored/enums/AttributeNames.d.ts +0 -6
  992. package/build/types/integrations/tracing/postgres/vendored/enums/AttributeNames.d.ts.map +0 -1
  993. package/build/types/integrations/tracing/postgres/vendored/enums/SpanNames.d.ts +0 -6
  994. package/build/types/integrations/tracing/postgres/vendored/enums/SpanNames.d.ts.map +0 -1
  995. package/build/types/integrations/tracing/postgres/vendored/instrumentation.d.ts +0 -12
  996. package/build/types/integrations/tracing/postgres/vendored/instrumentation.d.ts.map +0 -1
  997. package/build/types/integrations/tracing/postgres/vendored/internal-types.d.ts +0 -33
  998. package/build/types/integrations/tracing/postgres/vendored/internal-types.d.ts.map +0 -1
  999. package/build/types/integrations/tracing/postgres/vendored/pg-pool-types.d.ts +0 -20
  1000. package/build/types/integrations/tracing/postgres/vendored/pg-pool-types.d.ts.map +0 -1
  1001. package/build/types/integrations/tracing/postgres/vendored/pg-types.d.ts +0 -54
  1002. package/build/types/integrations/tracing/postgres/vendored/pg-types.d.ts.map +0 -1
  1003. package/build/types/integrations/tracing/postgres/vendored/semconv.d.ts +0 -13
  1004. package/build/types/integrations/tracing/postgres/vendored/semconv.d.ts.map +0 -1
  1005. package/build/types/integrations/tracing/postgres/vendored/types.d.ts +0 -11
  1006. package/build/types/integrations/tracing/postgres/vendored/types.d.ts.map +0 -1
  1007. package/build/types/integrations/tracing/postgres/vendored/utils.d.ts +0 -56
  1008. package/build/types/integrations/tracing/postgres/vendored/utils.d.ts.map +0 -1
  1009. package/build/types/integrations/tracing/postgresjs.d.ts +0 -103
  1010. package/build/types/integrations/tracing/postgresjs.d.ts.map +0 -1
  1011. package/build/types/integrations/tracing/redis/vendored/ioredis-instrumentation.d.ts +0 -10
  1012. package/build/types/integrations/tracing/redis/vendored/ioredis-instrumentation.d.ts.map +0 -1
  1013. package/build/types/integrations/tracing/redis/vendored/redis-instrumentation.d.ts +0 -16
  1014. package/build/types/integrations/tracing/redis/vendored/redis-instrumentation.d.ts.map +0 -1
  1015. package/build/types/integrations/tracing/redis/vendored/semconv.d.ts +0 -4
  1016. package/build/types/integrations/tracing/redis/vendored/semconv.d.ts.map +0 -1
  1017. package/build/types/integrations/tracing/tedious/index.d.ts +0 -22
  1018. package/build/types/integrations/tracing/tedious/index.d.ts.map +0 -1
  1019. package/build/types/integrations/tracing/tedious/vendored/instrumentation.d.ts +0 -11
  1020. package/build/types/integrations/tracing/tedious/vendored/instrumentation.d.ts.map +0 -1
  1021. package/build/types/integrations/tracing/tedious/vendored/semconv.d.ts +0 -19
  1022. package/build/types/integrations/tracing/tedious/vendored/semconv.d.ts.map +0 -1
  1023. package/build/types/integrations/tracing/tedious/vendored/tedious-types.d.ts +0 -21
  1024. package/build/types/integrations/tracing/tedious/vendored/tedious-types.d.ts.map +0 -1
  1025. package/build/types/integrations/tracing/tedious/vendored/utils.d.ts +0 -9
  1026. package/build/types/integrations/tracing/tedious/vendored/utils.d.ts.map +0 -1
  1027. package/build/types/integrations/tracing/vercelai/constants.d.ts +0 -2
  1028. package/build/types/integrations/tracing/vercelai/constants.d.ts.map +0 -1
  1029. package/build/types/integrations/tracing/vercelai/index.d.ts +0 -44
  1030. package/build/types/integrations/tracing/vercelai/index.d.ts.map +0 -1
  1031. package/build/types/integrations/tracing/vercelai/instrumentation.d.ts +0 -56
  1032. package/build/types/integrations/tracing/vercelai/instrumentation.d.ts.map +0 -1
  1033. package/build/types/integrations/tracing/vercelai/types.d.ts +0 -50
  1034. package/build/types/integrations/tracing/vercelai/types.d.ts.map +0 -1
  1035. package/build/types/preload.d.ts +0 -2
  1036. package/build/types/preload.d.ts.map +0 -1
  1037. package/build/types/sdk/diagnosticsChannelInjection.d.ts +0 -41
  1038. package/build/types/sdk/diagnosticsChannelInjection.d.ts.map +0 -1
  1039. package/build/types/sdk/experimentalUseDiagnosticsChannelInjection.d.ts +0 -37
  1040. package/build/types/sdk/experimentalUseDiagnosticsChannelInjection.d.ts.map +0 -1
  1041. package/build/types/utils/setHttpServerSpanRouteAttribute.d.ts +0 -9
  1042. package/build/types/utils/setHttpServerSpanRouteAttribute.d.ts.map +0 -1
  1043. package/build/types-ts3.8/debug-build.d.ts +0 -7
  1044. package/build/types-ts3.8/index.d.ts +0 -44
  1045. package/build/types-ts3.8/init.d.ts +0 -2
  1046. package/build/types-ts3.8/integrations/featureFlagShims/growthbook.d.ts +0 -6
  1047. package/build/types-ts3.8/integrations/featureFlagShims/index.d.ts +0 -6
  1048. package/build/types-ts3.8/integrations/featureFlagShims/launchDarkly.d.ts +0 -12
  1049. package/build/types-ts3.8/integrations/featureFlagShims/openFeature.d.ts +0 -25
  1050. package/build/types-ts3.8/integrations/featureFlagShims/statsig.d.ts +0 -8
  1051. package/build/types-ts3.8/integrations/featureFlagShims/unleash.d.ts +0 -8
  1052. package/build/types-ts3.8/integrations/fs/index.d.ts +0 -14
  1053. package/build/types-ts3.8/integrations/fs/vendored/constants.d.ts +0 -5
  1054. package/build/types-ts3.8/integrations/fs/vendored/instrumentation.d.ts +0 -3
  1055. package/build/types-ts3.8/integrations/fs/vendored/types.d.ts +0 -23
  1056. package/build/types-ts3.8/integrations/fs/vendored/utils.d.ts +0 -15
  1057. package/build/types-ts3.8/integrations/http.d.ts +0 -134
  1058. package/build/types-ts3.8/integrations/node-fetch.d.ts +0 -9
  1059. package/build/types-ts3.8/integrations/tracing/InstrumentationNodeModuleFile.d.ts +0 -9
  1060. package/build/types-ts3.8/integrations/tracing/amqplib/index.d.ts +0 -22
  1061. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/amqplib-types.d.ts +0 -44
  1062. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/instrumentation.d.ts +0 -11
  1063. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/patches.d.ts +0 -11
  1064. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/semconv.d.ts +0 -23
  1065. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/types.d.ts +0 -49
  1066. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/utils.d.ts +0 -42
  1067. package/build/types-ts3.8/integrations/tracing/anthropic-ai/index.d.ts +0 -62
  1068. package/build/types-ts3.8/integrations/tracing/anthropic-ai/instrumentation.d.ts +0 -19
  1069. package/build/types-ts3.8/integrations/tracing/connect/index.d.ts +0 -48
  1070. package/build/types-ts3.8/integrations/tracing/connect/vendored/enums/AttributeNames.d.ts +0 -9
  1071. package/build/types-ts3.8/integrations/tracing/connect/vendored/instrumentation.d.ts +0 -18
  1072. package/build/types-ts3.8/integrations/tracing/connect/vendored/internal-types.d.ts +0 -36
  1073. package/build/types-ts3.8/integrations/tracing/connect/vendored/utils.d.ts +0 -5
  1074. package/build/types-ts3.8/integrations/tracing/dataloader/index.d.ts +0 -22
  1075. package/build/types-ts3.8/integrations/tracing/dataloader/vendored/instrumentation.d.ts +0 -18
  1076. package/build/types-ts3.8/integrations/tracing/dataloader/vendored/types.d.ts +0 -22
  1077. package/build/types-ts3.8/integrations/tracing/express.d.ts +0 -19
  1078. package/build/types-ts3.8/integrations/tracing/fastify/index.d.ts +0 -119
  1079. package/build/types-ts3.8/integrations/tracing/fastify/types.d.ts +0 -33
  1080. package/build/types-ts3.8/integrations/tracing/fastify/v3/constants.d.ts +0 -3
  1081. package/build/types-ts3.8/integrations/tracing/fastify/v3/enums/AttributeNames.d.ts +0 -15
  1082. package/build/types-ts3.8/integrations/tracing/fastify/v3/instrumentation.d.ts +0 -16
  1083. package/build/types-ts3.8/integrations/tracing/fastify/v3/internal-types.d.ts +0 -7
  1084. package/build/types-ts3.8/integrations/tracing/fastify/v3/types.d.ts +0 -21
  1085. package/build/types-ts3.8/integrations/tracing/fastify/v3/utils.d.ts +0 -28
  1086. package/build/types-ts3.8/integrations/tracing/firebase/firebase.d.ts +0 -8
  1087. package/build/types-ts3.8/integrations/tracing/firebase/index.d.ts +0 -2
  1088. package/build/types-ts3.8/integrations/tracing/firebase/otel/firebaseInstrumentation.d.ts +0 -14
  1089. package/build/types-ts3.8/integrations/tracing/firebase/otel/index.d.ts +0 -3
  1090. package/build/types-ts3.8/integrations/tracing/firebase/otel/patches/firestore.d.ts +0 -22
  1091. package/build/types-ts3.8/integrations/tracing/firebase/otel/patches/functions.d.ts +0 -18
  1092. package/build/types-ts3.8/integrations/tracing/firebase/otel/types.d.ts +0 -100
  1093. package/build/types-ts3.8/integrations/tracing/genericPool/index.d.ts +0 -22
  1094. package/build/types-ts3.8/integrations/tracing/genericPool/vendored/generic-pool-types.d.ts +0 -5
  1095. package/build/types-ts3.8/integrations/tracing/genericPool/vendored/instrumentation.d.ts +0 -11
  1096. package/build/types-ts3.8/integrations/tracing/google-genai/index.d.ts +0 -62
  1097. package/build/types-ts3.8/integrations/tracing/google-genai/instrumentation.d.ts +0 -20
  1098. package/build/types-ts3.8/integrations/tracing/graphql/index.d.ts +0 -50
  1099. package/build/types-ts3.8/integrations/tracing/graphql/vendored/enum.d.ts +0 -38
  1100. package/build/types-ts3.8/integrations/tracing/graphql/vendored/enums/AttributeNames.d.ts +0 -10
  1101. package/build/types-ts3.8/integrations/tracing/graphql/vendored/graphql-types.d.ts +0 -2
  1102. package/build/types-ts3.8/integrations/tracing/graphql/vendored/instrumentation.d.ts +0 -25
  1103. package/build/types-ts3.8/integrations/tracing/graphql/vendored/internal-types.d.ts +0 -63
  1104. package/build/types-ts3.8/integrations/tracing/graphql/vendored/symbols.d.ts +0 -3
  1105. package/build/types-ts3.8/integrations/tracing/graphql/vendored/types.d.ts +0 -33
  1106. package/build/types-ts3.8/integrations/tracing/graphql/vendored/utils.d.ts +0 -14
  1107. package/build/types-ts3.8/integrations/tracing/hapi/index.d.ts +0 -52
  1108. package/build/types-ts3.8/integrations/tracing/hapi/types.d.ts +0 -166
  1109. package/build/types-ts3.8/integrations/tracing/hapi/vendored/enums/AttributeNames.d.ts +0 -6
  1110. package/build/types-ts3.8/integrations/tracing/hapi/vendored/hapi-types.d.ts +0 -70
  1111. package/build/types-ts3.8/integrations/tracing/hapi/vendored/instrumentation.d.ts +0 -72
  1112. package/build/types-ts3.8/integrations/tracing/hapi/vendored/internal-types.d.ts +0 -32
  1113. package/build/types-ts3.8/integrations/tracing/hapi/vendored/utils.d.ts +0 -18
  1114. package/build/types-ts3.8/integrations/tracing/hono/constants.d.ts +0 -11
  1115. package/build/types-ts3.8/integrations/tracing/hono/index.d.ts +0 -60
  1116. package/build/types-ts3.8/integrations/tracing/hono/instrumentation.d.ts +0 -55
  1117. package/build/types-ts3.8/integrations/tracing/hono/types.d.ts +0 -36
  1118. package/build/types-ts3.8/integrations/tracing/index.d.ts +0 -12
  1119. package/build/types-ts3.8/integrations/tracing/kafka/index.d.ts +0 -21
  1120. package/build/types-ts3.8/integrations/tracing/kafka/vendored/instrumentation.d.ts +0 -15
  1121. package/build/types-ts3.8/integrations/tracing/kafka/vendored/kafkajs-types.d.ts +0 -79
  1122. package/build/types-ts3.8/integrations/tracing/kafka/vendored/semconv.d.ts +0 -54
  1123. package/build/types-ts3.8/integrations/tracing/kafka/vendored/utils.d.ts +0 -29
  1124. package/build/types-ts3.8/integrations/tracing/knex/index.d.ts +0 -22
  1125. package/build/types-ts3.8/integrations/tracing/knex/vendored/instrumentation.d.ts +0 -12
  1126. package/build/types-ts3.8/integrations/tracing/knex/vendored/semconv.d.ts +0 -7
  1127. package/build/types-ts3.8/integrations/tracing/knex/vendored/utils.d.ts +0 -9
  1128. package/build/types-ts3.8/integrations/tracing/koa/index.d.ts +0 -72
  1129. package/build/types-ts3.8/integrations/tracing/koa/vendored/enums/AttributeNames.d.ts +0 -5
  1130. package/build/types-ts3.8/integrations/tracing/koa/vendored/instrumentation.d.ts +0 -32
  1131. package/build/types-ts3.8/integrations/tracing/koa/vendored/internal-types.d.ts +0 -34
  1132. package/build/types-ts3.8/integrations/tracing/koa/vendored/types.d.ts +0 -13
  1133. package/build/types-ts3.8/integrations/tracing/koa/vendored/utils.d.ts +0 -15
  1134. package/build/types-ts3.8/integrations/tracing/langchain/index.d.ts +0 -101
  1135. package/build/types-ts3.8/integrations/tracing/langchain/instrumentation.d.ts +0 -38
  1136. package/build/types-ts3.8/integrations/tracing/langgraph/index.d.ts +0 -77
  1137. package/build/types-ts3.8/integrations/tracing/langgraph/instrumentation.d.ts +0 -19
  1138. package/build/types-ts3.8/integrations/tracing/lrumemoizer/index.d.ts +0 -21
  1139. package/build/types-ts3.8/integrations/tracing/lrumemoizer/vendored/instrumentation.d.ts +0 -6
  1140. package/build/types-ts3.8/integrations/tracing/mongo/index.d.ts +0 -22
  1141. package/build/types-ts3.8/integrations/tracing/mongo/vendored/instrumentation.d.ts +0 -11
  1142. package/build/types-ts3.8/integrations/tracing/mongo/vendored/internal-types.d.ts +0 -62
  1143. package/build/types-ts3.8/integrations/tracing/mongo/vendored/patches.d.ts +0 -15
  1144. package/build/types-ts3.8/integrations/tracing/mongo/vendored/utils.d.ts +0 -15
  1145. package/build/types-ts3.8/integrations/tracing/mongoose/index.d.ts +0 -22
  1146. package/build/types-ts3.8/integrations/tracing/mongoose/vendored/mongoose-types.d.ts +0 -33
  1147. package/build/types-ts3.8/integrations/tracing/mongoose/vendored/mongoose.d.ts +0 -18
  1148. package/build/types-ts3.8/integrations/tracing/mongoose/vendored/utils.d.ts +0 -4
  1149. package/build/types-ts3.8/integrations/tracing/mysql/index.d.ts +0 -22
  1150. package/build/types-ts3.8/integrations/tracing/mysql/vendored/instrumentation.d.ts +0 -14
  1151. package/build/types-ts3.8/integrations/tracing/mysql/vendored/mysql-types.d.ts +0 -78
  1152. package/build/types-ts3.8/integrations/tracing/mysql/vendored/semconv.d.ts +0 -19
  1153. package/build/types-ts3.8/integrations/tracing/mysql/vendored/utils.d.ts +0 -22
  1154. package/build/types-ts3.8/integrations/tracing/mysql2/index.d.ts +0 -22
  1155. package/build/types-ts3.8/integrations/tracing/mysql2/vendored/instrumentation.d.ts +0 -9
  1156. package/build/types-ts3.8/integrations/tracing/mysql2/vendored/mysql2-types.d.ts +0 -39
  1157. package/build/types-ts3.8/integrations/tracing/mysql2/vendored/semconv.d.ts +0 -3
  1158. package/build/types-ts3.8/integrations/tracing/mysql2/vendored/utils.d.ts +0 -25
  1159. package/build/types-ts3.8/integrations/tracing/openai/index.d.ts +0 -62
  1160. package/build/types-ts3.8/integrations/tracing/openai/instrumentation.d.ts +0 -26
  1161. package/build/types-ts3.8/integrations/tracing/postgres/index.d.ts +0 -26
  1162. package/build/types-ts3.8/integrations/tracing/postgres/vendored/enums/AttributeNames.d.ts +0 -6
  1163. package/build/types-ts3.8/integrations/tracing/postgres/vendored/enums/SpanNames.d.ts +0 -6
  1164. package/build/types-ts3.8/integrations/tracing/postgres/vendored/instrumentation.d.ts +0 -12
  1165. package/build/types-ts3.8/integrations/tracing/postgres/vendored/internal-types.d.ts +0 -33
  1166. package/build/types-ts3.8/integrations/tracing/postgres/vendored/pg-pool-types.d.ts +0 -20
  1167. package/build/types-ts3.8/integrations/tracing/postgres/vendored/pg-types.d.ts +0 -54
  1168. package/build/types-ts3.8/integrations/tracing/postgres/vendored/semconv.d.ts +0 -13
  1169. package/build/types-ts3.8/integrations/tracing/postgres/vendored/types.d.ts +0 -11
  1170. package/build/types-ts3.8/integrations/tracing/postgres/vendored/utils.d.ts +0 -56
  1171. package/build/types-ts3.8/integrations/tracing/postgresjs.d.ts +0 -103
  1172. package/build/types-ts3.8/integrations/tracing/redis/cache.d.ts +0 -22
  1173. package/build/types-ts3.8/integrations/tracing/redis/index.d.ts +0 -28
  1174. package/build/types-ts3.8/integrations/tracing/redis/vendored/ioredis-instrumentation.d.ts +0 -10
  1175. package/build/types-ts3.8/integrations/tracing/redis/vendored/redis-instrumentation.d.ts +0 -16
  1176. package/build/types-ts3.8/integrations/tracing/redis/vendored/semconv.d.ts +0 -4
  1177. package/build/types-ts3.8/integrations/tracing/redis/vendored/types.d.ts +0 -24
  1178. package/build/types-ts3.8/integrations/tracing/tedious/index.d.ts +0 -22
  1179. package/build/types-ts3.8/integrations/tracing/tedious/vendored/instrumentation.d.ts +0 -11
  1180. package/build/types-ts3.8/integrations/tracing/tedious/vendored/semconv.d.ts +0 -19
  1181. package/build/types-ts3.8/integrations/tracing/tedious/vendored/tedious-types.d.ts +0 -21
  1182. package/build/types-ts3.8/integrations/tracing/tedious/vendored/utils.d.ts +0 -9
  1183. package/build/types-ts3.8/integrations/tracing/vercelai/constants.d.ts +0 -2
  1184. package/build/types-ts3.8/integrations/tracing/vercelai/index.d.ts +0 -44
  1185. package/build/types-ts3.8/integrations/tracing/vercelai/instrumentation.d.ts +0 -56
  1186. package/build/types-ts3.8/integrations/tracing/vercelai/types.d.ts +0 -50
  1187. package/build/types-ts3.8/preload.d.ts +0 -2
  1188. package/build/types-ts3.8/sdk/diagnosticsChannelInjection.d.ts +0 -41
  1189. package/build/types-ts3.8/sdk/experimentalUseDiagnosticsChannelInjection.d.ts +0 -37
  1190. package/build/types-ts3.8/sdk/index.d.ts +0 -36
  1191. package/build/types-ts3.8/sdk/initOtel.d.ts +0 -30
  1192. package/build/types-ts3.8/types.d.ts +0 -89
  1193. package/build/types-ts3.8/utils/redisCache.d.ts +0 -17
  1194. package/build/types-ts3.8/utils/setHttpServerSpanRouteAttribute.d.ts +0 -9
@@ -1 +1 @@
1
- {"version":3,"file":"initOtel.js","sources":["../../../src/sdk/initOtel.ts"],"sourcesContent":["import type { TracerProvider } from '@opentelemetry/api';\nimport { context, propagation, trace } from '@opentelemetry/api';\nimport type { SpanProcessor } from '@opentelemetry/sdk-trace-base';\nimport { BasicTracerProvider } from '@opentelemetry/sdk-trace-base';\nimport { debug as coreDebug, hasSpanStreamingEnabled } from '@sentry/core';\nimport {\n initializeEsmLoader,\n type NodeClient,\n SentryContextManager,\n setupOpenTelemetryLogger,\n} from '@sentry/node-core';\nimport {\n applyOtelSpanData,\n type AsyncLocalStorageLookup,\n backfillStreamedSpanDataFromOtel,\n getSentryResource,\n type OpenTelemetryTracerProvider,\n SentryPropagator,\n SentrySampler,\n SentrySpanProcessor,\n SentryTracerProvider,\n setIsSetup,\n} from '@sentry/opentelemetry';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { getOpenTelemetryInstrumentationToPreload } from '../integrations/tracing';\n\n// About 277h - this must fit into new Array(len)!\nconst MAX_MAX_SPAN_WAIT_DURATION = 1_000_000;\n\n// The global registry of @opentelemetry/api 1.x, shared across all copies of the package\nconst OTEL_API_GLOBAL_KEY = Symbol.for('opentelemetry.js.api.1');\n\n/**\n * Registers the given tracer provider as the global tracer provider, recreating the OpenTelemetry\n * API registry when it pre-exists with a different `@opentelemetry/api` version.\n *\n * Some host runtimes (e.g. Neon Functions) pre-create the registry with their own API version.\n * `registerGlobal` requires an exact version match, so every registration through the SDK's copy\n * of `@opentelemetry/api` is rejected and tracing is silently disabled\n * (https://github.com/getsentry/sentry-javascript/issues/22338). This case is identified by a\n * failed registration with an empty `trace` slot: `registerGlobal` checks the slot before the\n * version, so an empty slot means the version gate rejected us and recreating the registry\n * clobbers no other tracer provider. If the slot is occupied (another provider registered first,\n * e.g. a second `Sentry.init()` call), the registry is left untouched and registration fails.\n *\n * Slots Sentry does not claim itself (e.g. `diag`, `metrics`) are carried over into the recreated\n * registry: reads resolve via a semver-compatibility check rather than the exact-match write gate,\n * so they keep working for the copy that registered them. `propagation` and `context` are not\n * carried over because Sentry registers its own right after this.\n */\nfunction registerGlobalTracerProvider(provider: TracerProvider): boolean {\n if (trace.setGlobalTracerProvider(provider)) {\n return true;\n }\n\n // @opentelemetry/api stores the registry under a `Symbol.for` key that no public type\n // describes, so `typeof globalThis` can only be narrowed to it by casting through `unknown`.\n const otelGlobal = globalThis as unknown as Record<symbol, Record<string, unknown> | undefined>;\n const registry = otelGlobal[OTEL_API_GLOBAL_KEY];\n if (registry && !registry.trace) {\n DEBUG_BUILD &&\n coreDebug.warn(\n 'Replaced a pre-existing OpenTelemetry API registry that was created by a different @opentelemetry/api version and would have blocked tracing. If you want to manage OpenTelemetry yourself, set `skipOpenTelemetrySetup: true` in `Sentry.init()`.',\n );\n otelGlobal[OTEL_API_GLOBAL_KEY] = undefined;\n\n if (!trace.setGlobalTracerProvider(provider)) {\n return false;\n }\n\n // The cast is needed because TS still has the slot narrowed to `undefined` from the reset\n // above and cannot know the registration call just recreated the registry.\n const recreatedRegistry = otelGlobal[OTEL_API_GLOBAL_KEY] as Record<string, unknown> | undefined;\n if (recreatedRegistry) {\n const { propagation: _propagation, context: _context, ...carriedOverSlots } = registry;\n otelGlobal[OTEL_API_GLOBAL_KEY] = { ...carriedOverSlots, ...recreatedRegistry };\n }\n\n return true;\n }\n\n return false;\n}\n\ninterface AdditionalOpenTelemetryOptions {\n /** Additional SpanProcessor instances that should be used. */\n spanProcessors?: SpanProcessor[];\n}\n\n/**\n * Initialize OpenTelemetry for Node.\n */\nexport function initOpenTelemetry(client: NodeClient, options: AdditionalOpenTelemetryOptions = {}): void {\n if (client.getOptions().debug) {\n setupOpenTelemetryLogger();\n }\n\n const [provider, asyncLocalStorageLookup] = setupOtel(client, options);\n client.traceProvider = provider;\n client.asyncLocalStorageLookup = asyncLocalStorageLookup;\n}\n\ninterface NodePreloadOptions {\n debug?: boolean;\n integrations?: string[];\n}\n\n/**\n * Preload OpenTelemetry for Node.\n * This can be used to preload instrumentation early, but set up Sentry later.\n * By preloading the OTEL instrumentation wrapping still happens early enough that everything works.\n */\nexport function preloadOpenTelemetry(options: NodePreloadOptions = {}): void {\n const { debug } = options;\n\n if (debug) {\n coreDebug.enable();\n }\n\n initializeEsmLoader();\n\n // These are all integrations that we need to pre-load to ensure they are set up before any other code runs\n getPreloadMethods(options.integrations).forEach(fn => {\n fn();\n\n if (debug) {\n coreDebug.log(`[Sentry] Preloaded ${fn.id} instrumentation`);\n }\n });\n}\n\nfunction getPreloadMethods(integrationNames?: string[]): ((() => void) & { id: string })[] {\n const instruments = getOpenTelemetryInstrumentationToPreload();\n\n if (!integrationNames) {\n return instruments;\n }\n\n // We match exact matches of instrumentation, but also match prefixes, e.g. \"Fastify.v5\" will match \"Fastify\"\n return instruments.filter(instrumentation => {\n const id = instrumentation.id;\n return integrationNames.some(integrationName => id === integrationName || id.startsWith(`${integrationName}.`));\n });\n}\n\n/** Just exported for tests. */\nexport function setupOtel(\n client: NodeClient,\n options: AdditionalOpenTelemetryOptions = {},\n): [OpenTelemetryTracerProvider | undefined, AsyncLocalStorageLookup | undefined] {\n // Sentry's minimal tracer provider is the default. We fall back to the full OpenTelemetry SDK\n // `BasicTracerProvider` when the user explicitly opts in via `openTelemetryBasicTracerProvider`, or\n // when they provide custom `openTelemetrySpanProcessors` — those require the SDK span pipeline\n // that the minimal provider does not run.\n const shouldUseBasicTracerProvider =\n client.getOptions().openTelemetryBasicTracerProvider || !!options.spanProcessors?.length;\n\n if (!shouldUseBasicTracerProvider) {\n return setupSentryTracerProvider(client);\n }\n\n // Create and configure NodeTracerProvider\n const provider = new BasicTracerProvider({\n sampler: new SentrySampler(client),\n resource: getSentryResource('node'),\n forceFlushTimeoutMillis: 500,\n spanProcessors: [\n new SentrySpanProcessor({\n timeout: _clampSpanProcessorTimeout(client.getOptions().maxSpanWaitDuration),\n client,\n }),\n ...(options.spanProcessors || []),\n ],\n });\n\n // Register as globals\n registerGlobalTracerProvider(provider);\n propagation.setGlobalPropagator(new SentryPropagator());\n\n const ctxManager = new SentryContextManager();\n context.setGlobalContextManager(ctxManager);\n\n return [provider, ctxManager.getAsyncLocalStorageLookup()];\n}\n\nfunction setupSentryTracerProvider(\n client: NodeClient,\n): [SentryTracerProvider | undefined, AsyncLocalStorageLookup | undefined] {\n const provider = new SentryTracerProvider({ resource: getSentryResource('node') });\n\n if (!registerGlobalTracerProvider(provider)) {\n DEBUG_BUILD &&\n coreDebug.warn(\n 'Could not register SentryTracerProvider because another OpenTelemetry tracer provider is already registered.',\n );\n return [undefined, undefined];\n }\n\n // Only mark the provider as set up once it is actually the registered global\n // tracer provider, so setup validation doesn't skip required checks when\n // registration failed.\n setIsSetup('SentryTracerProvider');\n\n propagation.setGlobalPropagator(new SentryPropagator());\n\n const ctxManager = new SentryContextManager();\n context.setGlobalContextManager(ctxManager);\n\n client.on('spanEnd', span => {\n applyOtelSpanData(span, { finalizeStatus: true });\n });\n\n if (hasSpanStreamingEnabled(client)) {\n // Streamed spans skip the exporter, so per-span data inferred from OTel semantic conventions\n // (notably `sentry.source` on child spans, which `applyOtelSpanData` only sets on segment roots)\n // is backfilled here, reusing the exact inference the OTel SDK `SentrySpanProcessor` applies.\n client.on('preprocessSpan', backfillStreamedSpanDataFromOtel);\n }\n\n client.on('preprocessEvent', event => {\n if (event.type !== 'transaction') {\n return;\n }\n\n event.contexts = {\n ...event.contexts,\n otel: {\n resource: provider.resource?.attributes,\n ...event.contexts?.otel,\n },\n };\n });\n\n return [provider, ctxManager.getAsyncLocalStorageLookup()];\n}\n\n/** Just exported for tests. */\nexport function _clampSpanProcessorTimeout(maxSpanWaitDuration: number | undefined): number | undefined {\n if (maxSpanWaitDuration == null) {\n return undefined;\n }\n\n // We guard for a max. value here, because we create an array with this length\n // So if this value is too large, this would fail\n if (maxSpanWaitDuration > MAX_MAX_SPAN_WAIT_DURATION) {\n DEBUG_BUILD &&\n coreDebug.warn(`\\`maxSpanWaitDuration\\` is too high, using the maximum value of ${MAX_MAX_SPAN_WAIT_DURATION}`);\n return MAX_MAX_SPAN_WAIT_DURATION;\n } else if (maxSpanWaitDuration <= 0 || Number.isNaN(maxSpanWaitDuration)) {\n DEBUG_BUILD && coreDebug.warn('`maxSpanWaitDuration` must be a positive number, using default value instead.');\n return undefined;\n }\n\n return maxSpanWaitDuration;\n}\n"],"names":["trace","DEBUG_BUILD","coreDebug","setupOpenTelemetryLogger","initializeEsmLoader","getOpenTelemetryInstrumentationToPreload","BasicTracerProvider","SentrySampler","getSentryResource","SentrySpanProcessor","propagation","SentryPropagator","SentryContextManager","context","SentryTracerProvider","setIsSetup","applyOtelSpanData","hasSpanStreamingEnabled","backfillStreamedSpanDataFromOtel"],"mappings":";;;;;;;;;;AA2BA,MAAM,0BAAA,GAA6B,GAAA;AAGnC,MAAM,mBAAA,mBAAsB,MAAA,CAAO,GAAA,CAAI,wBAAwB,CAAA;AAoB/D,SAAS,6BAA6B,QAAA,EAAmC;AACvE,EAAA,IAAIA,SAAA,CAAM,uBAAA,CAAwB,QAAQ,CAAA,EAAG;AAC3C,IAAA,OAAO,IAAA;AAAA,EACT;AAIA,EAAA,MAAM,UAAA,GAAa,UAAA;AACnB,EAAA,MAAM,QAAA,GAAW,WAAW,mBAAmB,CAAA;AAC/C,EAAA,IAAI,QAAA,IAAY,CAAC,QAAA,CAAS,KAAA,EAAO;AAC/B,IAAAC,sBAAA,IACEC,UAAA,CAAU,IAAA;AAAA,MACR;AAAA,KACF;AACF,IAAA,UAAA,CAAW,mBAAmB,CAAA,GAAI,MAAA;AAElC,IAAA,IAAI,CAACF,SAAA,CAAM,uBAAA,CAAwB,QAAQ,CAAA,EAAG;AAC5C,MAAA,OAAO,KAAA;AAAA,IACT;AAIA,IAAA,MAAM,iBAAA,GAAoB,WAAW,mBAAmB,CAAA;AACxD,IAAA,IAAI,iBAAA,EAAmB;AACrB,MAAA,MAAM,EAAE,WAAA,EAAa,YAAA,EAAc,SAAS,QAAA,EAAU,GAAG,kBAAiB,GAAI,QAAA;AAC9E,MAAA,UAAA,CAAW,mBAAmB,CAAA,GAAI,EAAE,GAAG,gBAAA,EAAkB,GAAG,iBAAA,EAAkB;AAAA,IAChF;AAEA,IAAA,OAAO,IAAA;AAAA,EACT;AAEA,EAAA,OAAO,KAAA;AACT;AAUO,SAAS,iBAAA,CAAkB,MAAA,EAAoB,OAAA,GAA0C,EAAC,EAAS;AACxG,EAAA,IAAI,MAAA,CAAO,UA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AA,CAAM,mBAAmB,CAAA,EAAG;AACxE,IAAAD,sBAAA,IAAeC,UAAA,CAAU,KAAK,+EAA+E,CAAA;AAC7G,IAAA,OAAO,MAAA;AAAA,EACT;AAEA,EAAA,OAAO,mBAAA;AACT;;;;;;;"}
1
+ {"version":3,"file":"initOtel.js","sources":["../../../src/sdk/initOtel.ts"],"sourcesContent":["import type { TracerProvider } from '@opentelemetry/api';\nimport { propagation, trace } from '@opentelemetry/api';\nimport { debug as coreDebug } from '@sentry/core';\nimport { setupOpenTelemetryLogger } from '../otel/logger';\nimport type { NodeClient } from './client';\nimport { SentryPropagator, SentryTracerProvider } from '@sentry/opentelemetry';\nimport { DEBUG_BUILD } from '../debug-build';\n\n// The global registry of @opentelemetry/api 1.x, shared across all copies of the package\nconst OTEL_API_GLOBAL_KEY = Symbol.for('opentelemetry.js.api.1');\n\n/**\n * Registers the given tracer provider as the global tracer provider, recreating the OpenTelemetry\n * API registry when it pre-exists with a different `@opentelemetry/api` version.\n *\n * Some host runtimes (e.g. Neon Functions) pre-create the registry with their own API version.\n * `registerGlobal` requires an exact version match, so every registration through the SDK's copy\n * of `@opentelemetry/api` is rejected and tracing is silently disabled\n * (https://github.com/getsentry/sentry-javascript/issues/22338). This case is identified by a\n * failed registration with an empty `trace` slot: `registerGlobal` checks the slot before the\n * version, so an empty slot means the version gate rejected us and recreating the registry\n * clobbers no other tracer provider. If the slot is occupied (another provider registered first,\n * e.g. a second `Sentry.init()` call), the registry is left untouched and registration fails.\n *\n * Slots Sentry does not claim itself (e.g. `diag`, `metrics`) are carried over into the recreated\n * registry: reads resolve via a semver-compatibility check rather than the exact-match write gate,\n * so they keep working for the copy that registered them. `propagation` and `context` are not\n * carried over because Sentry registers its own right after this.\n */\nfunction registerGlobalTracerProvider(provider: TracerProvider): boolean {\n if (trace.setGlobalTracerProvider(provider)) {\n return true;\n }\n\n // @opentelemetry/api stores the registry under a `Symbol.for` key that no public type\n // describes, so `typeof globalThis` can only be narrowed to it by casting through `unknown`.\n const otelGlobal = globalThis as unknown as Record<symbol, Record<string, unknown> | undefined>;\n const registry = otelGlobal[OTEL_API_GLOBAL_KEY];\n if (registry && !registry.trace) {\n DEBUG_BUILD &&\n coreDebug.warn(\n 'Replaced a pre-existing OpenTelemetry API registry that was created by a different @opentelemetry/api version and would have blocked tracing. If you want to manage OpenTelemetry yourself, set `enableOpenTelemetrySetup: false` in `Sentry.init()`.',\n );\n otelGlobal[OTEL_API_GLOBAL_KEY] = undefined;\n\n if (!trace.setGlobalTracerProvider(provider)) {\n return false;\n }\n\n // The cast is needed because TS still has the slot narrowed to `undefined` from the reset\n // above and cannot know the registration call just recreated the registry.\n const recreatedRegistry = otelGlobal[OTEL_API_GLOBAL_KEY] as Record<string, unknown> | undefined;\n if (recreatedRegistry) {\n const { propagation: _propagation, context: _context, ...carriedOverSlots } = registry;\n otelGlobal[OTEL_API_GLOBAL_KEY] = { ...carriedOverSlots, ...recreatedRegistry };\n }\n\n return true;\n }\n\n return false;\n}\n\n/**\n * Initialize OpenTelemetry for Node.\n */\nexport function initOpenTelemetry(client: NodeClient): void {\n if (client.getOptions().debug) {\n setupOpenTelemetryLogger();\n }\n\n const provider = setupOtel();\n client.traceProvider = provider;\n}\n\n/** Just exported for tests. */\nexport function setupOtel(): SentryTracerProvider | undefined {\n const provider = new SentryTracerProvider();\n\n if (!registerGlobalTracerProvider(provider)) {\n DEBUG_BUILD &&\n coreDebug.warn(\n 'Could not register SentryTracerProvider because another OpenTelemetry tracer provider is already registered.',\n );\n return undefined;\n }\n\n propagation.setGlobalPropagator(new SentryPropagator());\n\n return provider;\n}\n"],"names":["trace","DEBUG_BUILD","coreDebug","setupOpenTelemetryLogger","SentryTracerProvider","propagation","SentryPropagator"],"mappings":";;;;;;;;AASA,MAAM,mBAAA,mBAAsB,MAAA,CAAO,GAAA,CAAI,wBAAwB,CAAA;AAoB/D,SAAS,6BAA6B,QAAA,EAAmC;AACvE,EAAA,IAAIA,SAAA,CAAM,uBAAA,CAAw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EACT;AAEA,EAAAG,eAAA,CAAY,mBAAA,CAAoB,IAAIC,8BAAA,EAAkB,CAAA;AAEtD,EAAA,OAAO,QAAA;AACT;;;;;"}
@@ -0,0 +1,102 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ const http = require('node:http');
4
+ const https = require('node:https');
5
+ const node_stream = require('node:stream');
6
+ const node_zlib = require('node:zlib');
7
+ const core = require('@sentry/core');
8
+ const index = require('../proxy/index.js');
9
+
10
+ const GZIP_THRESHOLD = 1024 * 32;
11
+ function streamFromBody(body) {
12
+ return new node_stream.Readable({
13
+ read() {
14
+ this.push(body);
15
+ this.push(null);
16
+ }
17
+ });
18
+ }
19
+ function makeNodeTransport(options) {
20
+ let urlSegments;
21
+ try {
22
+ urlSegments = new URL(options.url);
23
+ } catch {
24
+ core.consoleSandbox(() => {
25
+ console.warn(
26
+ "[@sentry/node]: Invalid dsn or tunnel option, will not send any events. The tunnel option must be a full URL when used."
27
+ );
28
+ });
29
+ return core.createTransport(options, () => Promise.resolve({}));
30
+ }
31
+ const isHttps = urlSegments.protocol === "https:";
32
+ const proxy = applyNoProxyOption(
33
+ urlSegments,
34
+ options.proxy || (isHttps ? process.env.https_proxy : void 0) || process.env.http_proxy
35
+ );
36
+ const nativeHttpModule = isHttps ? https : http;
37
+ const keepAlive = options.keepAlive === void 0 ? false : options.keepAlive;
38
+ const agent = proxy ? new index.HttpsProxyAgent(proxy) : new nativeHttpModule.Agent({ keepAlive, maxSockets: 30, timeout: 2e3 });
39
+ const requestExecutor = createRequestExecutor(options, options.httpModule ?? nativeHttpModule, agent);
40
+ return core.createTransport(options, requestExecutor);
41
+ }
42
+ function applyNoProxyOption(transportUrlSegments, proxy) {
43
+ const { no_proxy } = process.env;
44
+ const urlIsExemptFromProxy = no_proxy?.split(",").some(
45
+ (exemption) => transportUrlSegments.host.endsWith(exemption) || transportUrlSegments.hostname.endsWith(exemption)
46
+ );
47
+ if (urlIsExemptFromProxy) {
48
+ return void 0;
49
+ } else {
50
+ return proxy;
51
+ }
52
+ }
53
+ function createRequestExecutor(options, httpModule, agent) {
54
+ const { hostname, pathname, port, protocol, search } = new URL(options.url);
55
+ return function makeRequest(request) {
56
+ return new Promise((resolve, reject) => {
57
+ core.suppressTracing(() => {
58
+ let body = streamFromBody(request.body);
59
+ const headers = { ...options.headers };
60
+ if (request.body.length > GZIP_THRESHOLD) {
61
+ headers["content-encoding"] = "gzip";
62
+ body = body.pipe(node_zlib.createGzip());
63
+ }
64
+ const hostnameIsIPv6 = hostname.startsWith("[");
65
+ const req = httpModule.request(
66
+ {
67
+ method: "POST",
68
+ agent,
69
+ headers,
70
+ // Remove "[" and "]" from IPv6 hostnames
71
+ hostname: hostnameIsIPv6 ? hostname.slice(1, -1) : hostname,
72
+ path: `${pathname}${search}`,
73
+ port,
74
+ protocol,
75
+ ca: options.caCerts
76
+ },
77
+ (res) => {
78
+ res.on("data", () => {
79
+ });
80
+ res.on("end", () => {
81
+ });
82
+ res.setEncoding("utf8");
83
+ const retryAfterHeader = res.headers["retry-after"] ?? null;
84
+ const rateLimitsHeader = res.headers["x-sentry-rate-limits"] ?? null;
85
+ resolve({
86
+ statusCode: res.statusCode,
87
+ headers: {
88
+ "retry-after": retryAfterHeader,
89
+ "x-sentry-rate-limits": Array.isArray(rateLimitsHeader) ? rateLimitsHeader[0] || null : rateLimitsHeader
90
+ }
91
+ });
92
+ }
93
+ );
94
+ req.on("error", reject);
95
+ body.pipe(req);
96
+ });
97
+ });
98
+ };
99
+ }
100
+
101
+ exports.makeNodeTransport = makeNodeTransport;
102
+ //# sourceMappingURL=http.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http.js","sources":["../../../src/transports/http.ts"],"sourcesContent":["import * as http from 'node:http';\nimport * as https from 'node:https';\nimport { Readable } from 'node:stream';\nimport { createGzip } from 'node:zlib';\nimport type {\n BaseTransportOptions,\n Transport,\n TransportMakeRequestResponse,\n TransportRequest,\n TransportRequestExecutor,\n} from '@sentry/core';\nimport { consoleSandbox, createTransport, suppressTracing } from '@sentry/core';\nimport { HttpsProxyAgent } from '../proxy';\nimport type { HTTPModule } from './http-module';\n\nexport interface NodeTransportOptions extends BaseTransportOptions {\n /** Set a proxy that should be used for outbound requests. */\n proxy?: string;\n /** HTTPS proxy CA certificates */\n caCerts?: string | Buffer | Array<string | Buffer>;\n /** Custom HTTP module. Defaults to the native 'http' and 'https' modules. */\n httpModule?: HTTPModule;\n /** Allow overriding connection keepAlive, defaults to false */\n keepAlive?: boolean;\n}\n\n// Estimated maximum size for reasonable standalone event\nconst GZIP_THRESHOLD = 1024 * 32;\n\n/**\n * Gets a stream from a Uint8Array or string\n * Readable.from is ideal but was added in node.js v12.3.0 and v10.17.0\n */\nfunction streamFromBody(body: Uint8Array | string): Readable {\n return new Readable({\n read() {\n this.push(body);\n this.push(null);\n },\n });\n}\n\n/**\n * Creates a Transport that uses native the native 'http' and 'https' modules to send events to Sentry.\n */\nexport function makeNodeTransport(options: NodeTransportOptions): Transport {\n let urlSegments: URL;\n\n try {\n urlSegments = new URL(options.url);\n } catch {\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.warn(\n '[@sentry/node]: Invalid dsn or tunnel option, will not send any events. The tunnel option must be a full URL when used.',\n );\n });\n return createTransport(options, () => Promise.resolve({}));\n }\n\n const isHttps = urlSegments.protocol === 'https:';\n\n // Proxy prioritization: http => `options.proxy` | `process.env.http_proxy`\n // Proxy prioritization: https => `options.proxy` | `process.env.https_proxy` | `process.env.http_proxy`\n const proxy = applyNoProxyOption(\n urlSegments,\n options.proxy || (isHttps ? process.env.https_proxy : undefined) || process.env.http_proxy,\n );\n\n const nativeHttpModule = isHttps ? https : http;\n const keepAlive = options.keepAlive === undefined ? false : options.keepAlive;\n\n // TODO(v11): Evaluate if we can set keepAlive to true. This would involve testing for memory leaks in older node\n // versions(>= 8) as they had memory leaks when using it: #2555\n const agent = proxy\n ? (new HttpsProxyAgent(proxy) as http.Agent)\n : new nativeHttpModule.Agent({ keepAlive, maxSockets: 30, timeout: 2000 });\n\n const requestExecutor = createRequestExecutor(options, options.httpModule ?? nativeHttpModule, agent);\n return createTransport(options, requestExecutor);\n}\n\n/**\n * Honors the `no_proxy` env variable with the highest priority to allow for hosts exclusion.\n *\n * @param transportUrl The URL the transport intends to send events to.\n * @param proxy The client configured proxy.\n * @returns A proxy the transport should use.\n */\nfunction applyNoProxyOption(transportUrlSegments: URL, proxy: string | undefined): string | undefined {\n const { no_proxy } = process.env;\n\n const urlIsExemptFromProxy = no_proxy\n ?.split(',')\n .some(\n exemption => transportUrlSegments.host.endsWith(exemption) || transportUrlSegments.hostname.endsWith(exemption),\n );\n\n if (urlIsExemptFromProxy) {\n return undefined;\n } else {\n return proxy;\n }\n}\n\n/**\n * Creates a RequestExecutor to be used with `createTransport`.\n */\nfunction createRequestExecutor(\n options: NodeTransportOptions,\n httpModule: HTTPModule,\n agent: http.Agent,\n): TransportRequestExecutor {\n const { hostname, pathname, port, protocol, search } = new URL(options.url);\n return function makeRequest(request: TransportRequest): Promise<TransportMakeRequestResponse> {\n return new Promise((resolve, reject) => {\n // This ensures we do not generate any spans in OpenTelemetry for the transport\n suppressTracing(() => {\n let body = streamFromBody(request.body);\n\n const headers: Record<string, string> = { ...options.headers };\n\n if (request.body.length > GZIP_THRESHOLD) {\n headers['content-encoding'] = 'gzip';\n body = body.pipe(createGzip());\n }\n\n const hostnameIsIPv6 = hostname.startsWith('[');\n\n const req = httpModule.request(\n {\n method: 'POST',\n agent,\n headers,\n // Remove \"[\" and \"]\" from IPv6 hostnames\n hostname: hostnameIsIPv6 ? hostname.slice(1, -1) : hostname,\n path: `${pathname}${search}`,\n port,\n protocol,\n ca: options.caCerts,\n },\n res => {\n res.on('data', () => {\n // Drain socket\n });\n\n res.on('end', () => {\n // Drain socket\n });\n\n res.setEncoding('utf8');\n\n // \"Key-value pairs of header names and values. Header names are lower-cased.\"\n // https://nodejs.org/api/http.html#http_message_headers\n const retryAfterHeader = res.headers['retry-after'] ?? null;\n const rateLimitsHeader = res.headers['x-sentry-rate-limits'] ?? null;\n\n resolve({\n statusCode: res.statusCode,\n headers: {\n 'retry-after': retryAfterHeader,\n 'x-sentry-rate-limits': Array.isArray(rateLimitsHeader)\n ? rateLimitsHeader[0] || null\n : rateLimitsHeader,\n },\n });\n },\n );\n\n req.on('error', reject);\n body.pipe(req);\n });\n });\n };\n}\n"],"names":["Readable","consoleSandbox","createTransport","HttpsProxyAgent","suppressTracing","createGzip"],"mappings":";;;;;;;;;AA2BA,MAAM,iBAAiB,IAAA,GAAO,EAAA;AAM9B,SAAS,eAAe,IAAA,EAAqC;AAC3D,EAAA,OAAO,IAAIA,oBAAA,CAAS;AAAA,IAClB,IAAA,GAAO;AACL,MAAA,IAAA,CAAK,KAAK,IAAI,CAAA;AACd,MAAA,IAAA,CAAK,KAAK,IAAI,CAAA;AAAA,IAChB;AAAA,GACD,CAAA;AACH;AAKO,SAAS,kBAAkB,OAAA,EAA0C;AAC1E,EAAA,IAAI,WAAA;AAEJ,EAAA,IAAI;AACF,IAAA,WAAA,GAAc,IAAI,GAAA,CAAI,OAAA,CAAQ,GAAG,CAAA;AAAA,EACnC,CAAA,CAAA,MAAQ;AACN,IAAAC,mBAAA,CAAe,MAAM;AAEnB,MAAA,OAAA,CAAQ,IAAA;AAAA,QACN;AAAA,OACF;AAAA,IACF,CAAC,CAAA;AACD,IAAA,OAAOC,qBAAgB,OAAA,EAAS,MAAM,QAAQ,OAAA,CAAQ,EAAE,CAAC,CAAA;AAAA,EAC3D;AAEA,EAAA,MAAM,OAAA,GAAU,YAAY,QAAA,KAAa,QAAA;AAIzC,EAAA,MAAM,KAAA,GAAQ,kBAAA;AAAA,IACZ,WAAA;AAAA,IACA,OAAA,CAAQ,UAAU,OAAA,GAAU,OAAA,CAAQ,IAAI,WAAA,GAAc,MAAA,CAAA,IAAc,QAAQ,GAAA,CAAI;AAAA,GAClF;AAEA,EAAA,MAAM,gBAAA,GAAmB,UAAU,KAAA,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EAAS;AAAA,gBACP,aAAA,EAAe,gBAAA;AAAA,gBACf,sBAAA,EAAwB,MAAM,OAAA,CAAQ,gBAAgB,IAClD,gBAAA,CAAiB,CAAC,KAAK,IAAA,GACvB;AAAA;AACN,aACD,CAAA;AAAA,UACH;AAAA,SACF;AAEA,QAAA,GAAA,CAAI,EAAA,CAAG,SAAS,MAAM,CAAA;AACtB,QAAA,IAAA,CAAK,KAAK,GAAG,CAAA;AAAA,MACf,CAAC,CAAA;AAAA,IACH,CAAC,CAAA;AAAA,EACH,CAAA;AACF;;;;"}
@@ -0,0 +1,17 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ let cachedDebuggerEnabled;
4
+ async function isDebuggerEnabled() {
5
+ if (cachedDebuggerEnabled === void 0) {
6
+ try {
7
+ const inspector = await import('node:inspector');
8
+ cachedDebuggerEnabled = !!inspector.url();
9
+ } catch {
10
+ cachedDebuggerEnabled = false;
11
+ }
12
+ }
13
+ return cachedDebuggerEnabled;
14
+ }
15
+
16
+ exports.isDebuggerEnabled = isDebuggerEnabled;
17
+ //# sourceMappingURL=debug.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug.js","sources":["../../../src/utils/debug.ts"],"sourcesContent":["let cachedDebuggerEnabled: boolean | undefined;\n\n/**\n * Was the debugger enabled when this function was first called?\n */\nexport async function isDebuggerEnabled(): Promise<boolean> {\n if (cachedDebuggerEnabled === undefined) {\n try {\n // Node can be built without inspector support\n const inspector = await import('node:inspector');\n cachedDebuggerEnabled = !!inspector.url();\n } catch {\n cachedDebuggerEnabled = false;\n }\n }\n\n return cachedDebuggerEnabled;\n}\n"],"names":[],"mappings":";;AAAA,IAAI,qBAAA;AAKJ,eAAsB,iBAAA,GAAsC;AAC1D,EAAA,IAAI,0BAA0B,MAAA,EAAW;AACvC,IAAA,IAAI;AAEF,MAAA,MAAM,SAAA,GAAY,MAAM,OAAO,gBAAgB,CAAA;AAC/C,MAAA,qBAAA,GAAwB,CAAC,CAAC,SAAA,CAAU,GAAA,EAAI;AAAA,IAC1C,CAAA,CAAA,MAAQ;AACN,MAAA,qBAAA,GAAwB,KAAA;AAAA,IAC1B;AAAA,EACF;AAEA,EAAA,OAAO,qBAAA;AACT;;;;"}
@@ -0,0 +1,36 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ const node_path = require('node:path');
4
+ const api = require('../sdk/api.js');
5
+
6
+ function parseProcessPaths(proc) {
7
+ const { execArgv, argv, cwd: getCwd } = proc;
8
+ const cwd = getCwd();
9
+ const appPath = node_path.resolve(cwd, argv[1] || "");
10
+ const joinedArgs = execArgv.join(" ");
11
+ const importPaths = Array.from(joinedArgs.matchAll(/--import[ =](\S+)/g)).map((e) => node_path.resolve(cwd, e[1] || ""));
12
+ const requirePaths = Array.from(joinedArgs.matchAll(/(?:--require|-r)[ =](\S+)/g)).map((e) => node_path.resolve(cwd, e[1] || ""));
13
+ return { appPath, importPaths, requirePaths };
14
+ }
15
+ function getEntryPointType(proc = process) {
16
+ const filenames = api.defaultStackParser(new Error().stack || "").map((f) => f.filename).filter(Boolean);
17
+ const { appPath, importPaths, requirePaths } = parseProcessPaths(proc);
18
+ const output = [];
19
+ if (appPath && filenames.includes(appPath)) {
20
+ output.push("app");
21
+ }
22
+ if (importPaths.some((p) => filenames.includes(p))) {
23
+ output.push("import");
24
+ }
25
+ if (requirePaths.some((p) => filenames.includes(p))) {
26
+ output.push("require");
27
+ }
28
+ if (output.length === 1) {
29
+ return output[0];
30
+ }
31
+ return "unknown";
32
+ }
33
+
34
+ exports.getEntryPointType = getEntryPointType;
35
+ exports.parseProcessPaths = parseProcessPaths;
36
+ //# sourceMappingURL=entry-point.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entry-point.js","sources":["../../../src/utils/entry-point.ts"],"sourcesContent":["import { resolve } from 'node:path';\nimport { defaultStackParser } from '../sdk/api';\n\nexport interface ProcessInterface {\n execArgv: string[];\n argv: string[];\n cwd: () => string;\n}\n\nexport interface ProcessArgs {\n appPath: string;\n importPaths: string[];\n requirePaths: string[];\n}\n\n/**\n * Parses the process arguments to determine the app path, import paths, and require paths.\n */\nexport function parseProcessPaths(proc: ProcessInterface): ProcessArgs {\n const { execArgv, argv, cwd: getCwd } = proc;\n const cwd = getCwd();\n const appPath = resolve(cwd, argv[1] || '');\n\n const joinedArgs = execArgv.join(' ');\n const importPaths = Array.from(joinedArgs.matchAll(/--import[ =](\\S+)/g)).map(e => resolve(cwd, e[1] || ''));\n const requirePaths = Array.from(joinedArgs.matchAll(/(?:--require|-r)[ =](\\S+)/g)).map(e => resolve(cwd, e[1] || ''));\n\n return { appPath, importPaths, requirePaths };\n}\n\n/**\n * Gets the current entry point type.\n *\n * `app` means this function was most likely called via the app entry point.\n * `import` means this function was most likely called from an --import cli arg.\n * `require` means this function was most likely called from a --require cli arg.\n * `unknown` means we couldn't determine for sure.\n */\nexport function getEntryPointType(proc: ProcessInterface = process): 'import' | 'require' | 'app' | 'unknown' {\n const filenames = defaultStackParser(new Error().stack || '')\n .map(f => f.filename)\n .filter(Boolean) as string[];\n\n const { appPath, importPaths, requirePaths } = parseProcessPaths(proc);\n\n const output = [];\n\n if (appPath && filenames.includes(appPath)) {\n output.push('app');\n }\n\n if (importPaths.some(p => filenames.includes(p))) {\n output.push('import');\n }\n\n if (requirePaths.some(p => filenames.includes(p))) {\n output.push('require');\n }\n\n // We only only return anything other than 'unknown' if we only got one match.\n if (output.length === 1) {\n return output[0] as 'import' | 'require' | 'app';\n }\n\n return 'unknown';\n}\n"],"names":["resolve","defaultStackParser"],"mappings":";;;;;AAkBO,SAAS,kBAAkB,IAAA,EAAqC;AACrE,EAAA,MAAM,EAAE,QAAA,EAAU,IAAA,EAAM,GAAA,EAAK,QAAO,GAAI,IAAA;AACxC,EAAA,MAAM,MAAM,MAAA,EAAO;AACnB,EAAA,MAAM,UAAUA,iBAAA,CAAQ,GAAA,EAAK,IAAA,CAAK,CAAC,KAAK,EA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AAS,CAAC,CAAC,CAAA,EAAG;AACjD,IAAA,MAAA,CAAO,KAAK,SAAS,CAAA;AAAA,EACvB;AAGA,EAAA,IAAI,MAAA,CAAO,WAAW,CAAA,EAAG;AACvB,IAAA,OAAO,OAAO,CAAC,CAAA;AAAA,EACjB;AAEA,EAAA,OAAO,SAAA;AACT;;;;;"}
@@ -0,0 +1,33 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ const core = require('@sentry/core');
4
+ const debugBuild = require('../debug-build.js');
5
+
6
+ const DEFAULT_SHUTDOWN_TIMEOUT = 2e3;
7
+ function logAndExitProcess(error) {
8
+ core.consoleSandbox(() => {
9
+ console.error(error);
10
+ });
11
+ const client = core.getClient();
12
+ if (client === void 0) {
13
+ debugBuild.DEBUG_BUILD && core.debug.warn("No NodeClient was defined, we are exiting the process now.");
14
+ global.process.exit(1);
15
+ return;
16
+ }
17
+ const options = client.getOptions();
18
+ const timeout = options?.shutdownTimeout && options.shutdownTimeout > 0 ? options.shutdownTimeout : DEFAULT_SHUTDOWN_TIMEOUT;
19
+ client.close(timeout).then(
20
+ (result) => {
21
+ if (!result) {
22
+ debugBuild.DEBUG_BUILD && core.debug.warn("We reached the timeout for emptying the request buffer, still exiting now!");
23
+ }
24
+ global.process.exit(1);
25
+ },
26
+ (error2) => {
27
+ debugBuild.DEBUG_BUILD && core.debug.error(error2);
28
+ }
29
+ );
30
+ }
31
+
32
+ exports.logAndExitProcess = logAndExitProcess;
33
+ //# sourceMappingURL=errorhandling.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errorhandling.js","sources":["../../../src/utils/errorhandling.ts"],"sourcesContent":["import { consoleSandbox, debug, getClient } from '@sentry/core';\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { NodeClient } from '../sdk/client';\n\nconst DEFAULT_SHUTDOWN_TIMEOUT = 2000;\n\n/**\n * @hidden\n */\nexport function logAndExitProcess(error: unknown): void {\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.error(error);\n });\n\n const client = getClient<NodeClient>();\n\n if (client === undefined) {\n DEBUG_BUILD && debug.warn('No NodeClient was defined, we are exiting the process now.');\n global.process.exit(1);\n return;\n }\n\n const options = client.getOptions();\n const timeout =\n options?.shutdownTimeout && options.shutdownTimeout > 0 ? options.shutdownTimeout : DEFAULT_SHUTDOWN_TIMEOUT;\n client.close(timeout).then(\n (result: boolean) => {\n if (!result) {\n DEBUG_BUILD && debug.warn('We reached the timeout for emptying the request buffer, still exiting now!');\n }\n global.process.exit(1);\n },\n error => {\n DEBUG_BUILD && debug.error(error);\n },\n );\n}\n"],"names":["consoleSandbox","getClient","DEBUG_BUILD","debug","error"],"mappings":";;;;;AAIA,MAAM,wBAAA,GAA2B,GAAA;AAK1B,SAAS,kBAAkB,KAAA,EAAsB;AACtD,EAAAA,mBAAA,CAAe,MAAM;AAEnB,IAAA,OAAA,CAAQ,MAAM,KAAK,CAAA;AAAA,EACrB,CAAC,CAAA;AAED,EAAA,MAAM,SAASC,cAAA,EAAsB;AAErC,EAAA,IAAI,WAAW,MAAA,EAAW;AACxB,IAAAC,sBAAA,IAAeC,UAAA,CAAM,KAAK,4DAA4D,CAAA;AACtF,IAAA,MAAA,CAAO,OAAA,CAAQ,KAAK,CAAC,CAAA;AACrB,IAAA;AAAA,EACF;AAEA,EAAA,MAAM,OAAA,GAAU,OAAO,UAAA,EAAW;AAClC,EAAA,MAAM,UACJ,OAAA,EAAS,eAAA,IAAmB,QAAQ,eAAA,GAAkB,CAAA,GAAI,QAAQ,eAAA,GAAkB,wBAAA;AACtF,EAAA,MAAA,CAAO,KAAA,CAAM,OAAO,CAAA,CAAE,IAAA;AAAA,IACpB,CAAC,MAAA,KAAoB;AACnB,MAAA,IAAI,CAAC,MAAA,EAAQ;AACX,QAAAD,sBAAA,IAAeC,UAAA,CAAM,KAAK,4EAA4E,CAAA;AAAA,MACxG;AACA,MAAA,MAAA,CAAO,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,IACvB,CAAA;AAAA,IACA,CAAAC,MAAAA,KAAS;AACP,MAAAF,sBAAA,IAAeC,UAAA,CAAM,MAAMC,MAAK,CAAA;AAAA,IAClC;AAAA,GACF;AACF;;;;"}
@@ -0,0 +1,37 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ const node_path = require('node:path');
4
+ const core = require('@sentry/core');
5
+
6
+ function normalizeWindowsPath(path) {
7
+ return path.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
8
+ }
9
+ function createGetModuleFromFilename(basePath = process.argv[1] ? core.dirname(process.argv[1]) : process.cwd(), isWindows = node_path.sep === "\\") {
10
+ const normalizedBase = isWindows ? normalizeWindowsPath(basePath) : basePath;
11
+ return (filename) => {
12
+ if (!filename) {
13
+ return;
14
+ }
15
+ const normalizedFilename = isWindows ? normalizeWindowsPath(filename) : filename;
16
+ let { dir, base: file, ext } = node_path.posix.parse(normalizedFilename);
17
+ if (ext === ".js" || ext === ".mjs" || ext === ".cjs") {
18
+ file = file.slice(0, ext.length * -1);
19
+ }
20
+ const decodedFile = decodeURIComponent(file);
21
+ if (!dir) {
22
+ dir = ".";
23
+ }
24
+ const n = dir.lastIndexOf("/node_modules");
25
+ if (n > -1) {
26
+ return `${dir.slice(n + 14).replace(/\//g, ".")}:${decodedFile}`;
27
+ }
28
+ if (dir.startsWith(normalizedBase)) {
29
+ const moduleName = dir.slice(normalizedBase.length + 1).replace(/\//g, ".");
30
+ return moduleName ? `${moduleName}:${decodedFile}` : decodedFile;
31
+ }
32
+ return decodedFile;
33
+ };
34
+ }
35
+
36
+ exports.createGetModuleFromFilename = createGetModuleFromFilename;
37
+ //# sourceMappingURL=module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.js","sources":["../../../src/utils/module.ts"],"sourcesContent":["import { posix, sep } from 'node:path';\nimport { dirname } from '@sentry/core';\n\n/** normalizes Windows paths */\nfunction normalizeWindowsPath(path: string): string {\n return path\n .replace(/^[A-Z]:/, '') // remove Windows-style prefix\n .replace(/\\\\/g, '/'); // replace all `\\` instances with `/`\n}\n\n/** Creates a function that gets the module name from a filename */\nexport function createGetModuleFromFilename(\n basePath: string = process.argv[1] ? dirname(process.argv[1]) : process.cwd(),\n isWindows: boolean = sep === '\\\\',\n): (filename: string | undefined) => string | undefined {\n const normalizedBase = isWindows ? normalizeWindowsPath(basePath) : basePath;\n\n return (filename: string | undefined) => {\n if (!filename) {\n return;\n }\n\n const normalizedFilename = isWindows ? normalizeWindowsPath(filename) : filename;\n\n // eslint-disable-next-line prefer-const\n let { dir, base: file, ext } = posix.parse(normalizedFilename);\n\n if (ext === '.js' || ext === '.mjs' || ext === '.cjs') {\n file = file.slice(0, ext.length * -1);\n }\n\n // The file name might be URI-encoded which we want to decode to\n // the original file name.\n const decodedFile = decodeURIComponent(file);\n\n if (!dir) {\n // No dirname whatsoever\n dir = '.';\n }\n\n const n = dir.lastIndexOf('/node_modules');\n if (n > -1) {\n return `${dir.slice(n + 14).replace(/\\//g, '.')}:${decodedFile}`;\n }\n\n // Let's see if it's a part of the main module\n // To be a part of main module, it has to share the same base\n if (dir.startsWith(normalizedBase)) {\n const moduleName = dir.slice(normalizedBase.length + 1).replace(/\\//g, '.');\n return moduleName ? `${moduleName}:${decodedFile}` : decodedFile;\n }\n\n return decodedFile;\n };\n}\n"],"names":["dirname","sep","posix"],"mappings":";;;;;AAIA,SAAS,qBAAqB,IAAA,EAAsB;AAClD,EAAA,OAAO,KACJ,OAAA,CAAQ,SAAA,EAAW,EAAE,CAAA,CACrB,OAAA,CAAQ,OAAO,GAAG,CAAA;AACvB;AAGO,SAAS,4BACd,QAAA,GAAmB,OAAA,CAAQ,IAAA,CAAK,CAAC,IAAIA,YAAA,CAAQ,OAAA,CAAQ,IAAA,CAAK,CAAC,CAAC,CAAA,GAAI,OAAA,CAAQ,KAAI,EAC5E,SAAA,GAAqBC,kBAAQ,IAAA,EACyB;AACtD,EAAA,MAAM,cAAA,GAAiB,SAAA,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;AAAA,EACT,CAAA;AACF;;;;"}
@@ -0,0 +1,178 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ const attributes = require('@sentry/conventions/attributes');
4
+ const core = require('@sentry/core');
5
+
6
+ const SENTRY_TRACE_HEADER = "sentry-trace";
7
+ const SENTRY_BAGGAGE_HEADER = "baggage";
8
+ const W3C_TRACEPARENT_HEADER = "traceparent";
9
+ function addTracePropagationHeadersToFetchRequest(request, propagationDecisionMap, span) {
10
+ const url = getAbsoluteUrl(request.origin, request.path);
11
+ const { tracePropagationTargets, propagateTraceparent } = core.getClient()?.getOptions() || {};
12
+ if (!core.shouldPropagateTraceForUrl(url, tracePropagationTargets, propagationDecisionMap)) {
13
+ return;
14
+ }
15
+ const spanForTraceHeaders = span && core.spanIsIgnored(span) && core.getActiveSpan() ? void 0 : span;
16
+ const addedHeaders = spanForTraceHeaders ? core.withActiveSpan(spanForTraceHeaders, () => core.getTraceData({ propagateTraceparent })) : core.getTraceData({ propagateTraceparent });
17
+ if (!addedHeaders) {
18
+ return;
19
+ }
20
+ const { "sentry-trace": sentryTrace, baggage, traceparent } = addedHeaders;
21
+ const requestHeaders = Array.isArray(request.headers) ? normalizeUndiciHeaderPairs(request.headers) : stringToArrayHeaders(request.headers);
22
+ _deduplicateArrayHeader(requestHeaders, SENTRY_TRACE_HEADER);
23
+ _deduplicateArrayHeader(requestHeaders, SENTRY_BAGGAGE_HEADER);
24
+ if (propagateTraceparent) {
25
+ _deduplicateArrayHeader(requestHeaders, W3C_TRACEPARENT_HEADER);
26
+ }
27
+ const hasExistingSentryTraceHeader = _findExistingHeaderIndex(requestHeaders, SENTRY_TRACE_HEADER) !== -1;
28
+ if (!hasExistingSentryTraceHeader) {
29
+ if (sentryTrace) {
30
+ requestHeaders.push(SENTRY_TRACE_HEADER, sentryTrace);
31
+ }
32
+ if (traceparent && _findExistingHeaderIndex(requestHeaders, "traceparent") === -1) {
33
+ requestHeaders.push("traceparent", traceparent);
34
+ }
35
+ const existingBaggageIndex = _findExistingHeaderIndex(requestHeaders, SENTRY_BAGGAGE_HEADER);
36
+ if (baggage && existingBaggageIndex === -1) {
37
+ requestHeaders.push(SENTRY_BAGGAGE_HEADER, baggage);
38
+ } else if (baggage) {
39
+ const existingBaggageValue = requestHeaders[existingBaggageIndex + 1];
40
+ const merged = core.mergeBaggageHeaders(existingBaggageValue, baggage);
41
+ if (merged) {
42
+ requestHeaders[existingBaggageIndex + 1] = merged;
43
+ }
44
+ }
45
+ }
46
+ if (Array.isArray(request.headers)) {
47
+ request.headers.splice(0, request.headers.length, ...requestHeaders);
48
+ } else {
49
+ request.headers = arrayToStringHeaders(requestHeaders);
50
+ }
51
+ }
52
+ function normalizeUndiciHeaderPairs(headers) {
53
+ const out = [];
54
+ for (let i = 0; i < headers.length; i++) {
55
+ const entry = headers[i];
56
+ if (i % 2 === 0) {
57
+ out.push(typeof entry === "string" ? entry : String(entry));
58
+ } else {
59
+ out.push(Array.isArray(entry) ? entry.join(", ") : entry ?? "");
60
+ }
61
+ }
62
+ return out;
63
+ }
64
+ function stringToArrayHeaders(requestHeaders) {
65
+ const headersArray = requestHeaders.split("\r\n");
66
+ const headers = [];
67
+ for (const header of headersArray) {
68
+ try {
69
+ const colonIndex = header.indexOf(":");
70
+ if (colonIndex === -1) {
71
+ continue;
72
+ }
73
+ const key = header.slice(0, colonIndex).trim();
74
+ const value = header.slice(colonIndex + 1).trim();
75
+ if (key) {
76
+ headers.push(key, value);
77
+ }
78
+ } catch {
79
+ core.debug.warn(`Failed to convert string request header to array header: ${header}`);
80
+ }
81
+ }
82
+ return headers;
83
+ }
84
+ function arrayToStringHeaders(headers) {
85
+ const headerPairs = [];
86
+ for (let i = 0; i < headers.length; i += 2) {
87
+ const key = headers[i];
88
+ const value = headers[i + 1];
89
+ if (!key || value == null) {
90
+ continue;
91
+ }
92
+ headerPairs.push(`${key}: ${value}`);
93
+ }
94
+ if (!headerPairs.length) {
95
+ return "";
96
+ }
97
+ return headerPairs.join("\r\n").concat("\r\n");
98
+ }
99
+ function _deduplicateArrayHeader(headers, headerName) {
100
+ let firstIndex = -1;
101
+ for (let i = 0; i < headers.length; i += 2) {
102
+ if (headers[i] !== headerName) {
103
+ continue;
104
+ }
105
+ if (firstIndex === -1) {
106
+ firstIndex = i;
107
+ continue;
108
+ }
109
+ const firstHeaderValue = headers[firstIndex + 1];
110
+ if (headerName === SENTRY_BAGGAGE_HEADER && firstHeaderValue) {
111
+ const merged = core.mergeBaggageHeaders(headers[i + 1], firstHeaderValue);
112
+ if (merged) {
113
+ headers[firstIndex + 1] = merged;
114
+ }
115
+ }
116
+ headers.splice(i, 2);
117
+ i -= 2;
118
+ }
119
+ }
120
+ function _findExistingHeaderIndex(headers, name) {
121
+ return headers.findIndex((header, i) => i % 2 === 0 && header === name);
122
+ }
123
+ function addFetchRequestBreadcrumb(request, response) {
124
+ const data = getBreadcrumbData(request);
125
+ const statusCode = response.statusCode;
126
+ const level = core.getBreadcrumbLogLevelFromHttpStatusCode(statusCode);
127
+ core.addBreadcrumb(
128
+ {
129
+ category: "http",
130
+ data: {
131
+ status_code: statusCode,
132
+ ...data
133
+ },
134
+ type: "http",
135
+ level
136
+ },
137
+ {
138
+ event: "response",
139
+ request,
140
+ response
141
+ }
142
+ );
143
+ }
144
+ function getBreadcrumbData(request) {
145
+ try {
146
+ const url = getAbsoluteUrl(request.origin, request.path);
147
+ const parsedUrl = core.parseUrl(url);
148
+ return {
149
+ url: core.getSanitizedUrlString(parsedUrl),
150
+ // eslint-disable-next-line typescript/no-deprecated
151
+ [attributes.HTTP_METHOD]: request.method || "GET",
152
+ [attributes.URL_QUERY]: core.filterCollectedUrlQuery(core.getUrlQuery(parsedUrl.search)),
153
+ [attributes.URL_FRAGMENT]: core.getUrlFragment(parsedUrl.hash)
154
+ };
155
+ } catch {
156
+ return {};
157
+ }
158
+ }
159
+ function getAbsoluteUrl(origin, path = "/") {
160
+ try {
161
+ const url = new URL(path, origin);
162
+ return url.toString();
163
+ } catch {
164
+ const url = `${origin}`;
165
+ if (url.endsWith("/") && path.startsWith("/")) {
166
+ return `${url}${path.slice(1)}`;
167
+ }
168
+ if (!url.endsWith("/") && !path.startsWith("/")) {
169
+ return `${url}/${path}`;
170
+ }
171
+ return `${url}${path}`;
172
+ }
173
+ }
174
+
175
+ exports.addFetchRequestBreadcrumb = addFetchRequestBreadcrumb;
176
+ exports.addTracePropagationHeadersToFetchRequest = addTracePropagationHeadersToFetchRequest;
177
+ exports.getAbsoluteUrl = getAbsoluteUrl;
178
+ //# sourceMappingURL=outgoingFetchRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outgoingFetchRequest.js","sources":["../../../src/utils/outgoingFetchRequest.ts"],"sourcesContent":["import { HTTP_METHOD, URL_FRAGMENT, URL_QUERY } from '@sentry/conventions/attributes';\nimport type { LRUMap, SanitizedRequestData, Span } from '@sentry/core';\nimport {\n filterCollectedUrlQuery,\n addBreadcrumb,\n getActiveSpan,\n getBreadcrumbLogLevelFromHttpStatusCode,\n getClient,\n getSanitizedUrlString,\n getTraceData,\n getUrlFragment,\n getUrlQuery,\n parseUrl,\n shouldPropagateTraceForUrl,\n mergeBaggageHeaders,\n spanIsIgnored,\n withActiveSpan,\n} from '@sentry/core';\nimport type { UndiciRequest, UndiciResponse } from '../integrations/node-fetch/types';\nimport { debug } from '@sentry/core';\nconst SENTRY_TRACE_HEADER = 'sentry-trace';\nconst SENTRY_BAGGAGE_HEADER = 'baggage';\nconst W3C_TRACEPARENT_HEADER = 'traceparent';\n/**\n * Add trace propagation headers to an outgoing fetch/undici request.\n *\n * Checks if the request URL matches trace propagation targets,\n * then injects sentry-trace, traceparent, and baggage headers.\n *\n * When a `span` is passed (the outgoing `http.client` span), its trace data is propagated so downstream\n * services are parented to that span. Without a span, the active scope's trace data is used.\n *\n * Existing trace headers (e.g. set manually by the user via `getTraceData()`) always take precedence and\n * are de-duplicated rather than overwritten, so we never emit two `sentry-trace`/`baggage` entries.\n */\n// eslint-disable-next-line complexity\nexport function addTracePropagationHeadersToFetchRequest(\n request: UndiciRequest,\n propagationDecisionMap: LRUMap<string, boolean>,\n span?: Span,\n): void {\n const url = getAbsoluteUrl(request.origin, request.path);\n\n // Manually add the trace headers, if it applies\n // Note: We do not use `propagation.inject()` here, because our propagator relies on an active span\n // Which we do not have in this case\n // The propagator _may_ overwrite this, but this should be fine as it is the same data\n const { tracePropagationTargets, propagateTraceparent } = getClient()?.getOptions() || {};\n\n if (!shouldPropagateTraceForUrl(url, tracePropagationTargets, propagationDecisionMap)) {\n return;\n }\n\n // An ignored child must not become the propagation parent because no span will be emitted for it.\n // Otherwise, make the span active so the propagated headers reference it instead of its parent.\n const spanForTraceHeaders = span && spanIsIgnored(span) && getActiveSpan() ? undefined : span;\n const addedHeaders = spanForTraceHeaders\n ? withActiveSpan(spanForTraceHeaders, () => getTraceData({ propagateTraceparent }))\n : getTraceData({ propagateTraceparent });\n\n if (!addedHeaders) {\n return;\n }\n\n const { 'sentry-trace': sentryTrace, baggage, traceparent } = addedHeaders;\n\n // Undici can expose headers either as a raw string (v5-style) or as a flat array of pairs (v6-style).\n // In the array form, even indices are header names and odd indices are values; in undici v6 a value\n // may be `string | string[]` when a header has multiple values. The helpers below (_deduplicateArrayHeader,\n // push, etc.) expect each value slot to be a single string, so we normalize array headers first.\n const requestHeaders: string[] = Array.isArray(request.headers)\n ? normalizeUndiciHeaderPairs(request.headers)\n : stringToArrayHeaders(request.headers);\n\n // OTel's UndiciInstrumentation calls propagation.inject() which unconditionally\n // appends headers to the request. When the user also sets headers via getTraceData(),\n // this results in duplicate sentry-trace and baggage (and optionally traceparent) entries.\n // We clean these up before applying our own logic.\n _deduplicateArrayHeader(requestHeaders, SENTRY_TRACE_HEADER);\n _deduplicateArrayHeader(requestHeaders, SENTRY_BAGGAGE_HEADER);\n if (propagateTraceparent) {\n _deduplicateArrayHeader(requestHeaders, W3C_TRACEPARENT_HEADER);\n }\n\n // We do not want to overwrite existing headers here\n // If the core UndiciInstrumentation is registered, it will already have set the headers\n // We do not want to add any then\n const hasExistingSentryTraceHeader = _findExistingHeaderIndex(requestHeaders, SENTRY_TRACE_HEADER) !== -1;\n\n // We do not want to set any headers if we already have an existing sentry-trace header.\n // sentry-trace is still the source of truth, otherwise we risk mixing up baggage and sentry-trace values.\n if (!hasExistingSentryTraceHeader) {\n if (sentryTrace) {\n requestHeaders.push(SENTRY_TRACE_HEADER, sentryTrace);\n }\n\n if (traceparent && _findExistingHeaderIndex(requestHeaders, 'traceparent') === -1) {\n requestHeaders.push('traceparent', traceparent);\n }\n\n // For baggage, we make sure to merge this into a possibly existing header\n const existingBaggageIndex = _findExistingHeaderIndex(requestHeaders, SENTRY_BAGGAGE_HEADER);\n if (baggage && existingBaggageIndex === -1) {\n requestHeaders.push(SENTRY_BAGGAGE_HEADER, baggage);\n } else if (baggage) {\n // headers in format [key_0, value_0, key_1, value_1, ...], hence the +1 here\n const existingBaggageValue = requestHeaders[existingBaggageIndex + 1];\n const merged = mergeBaggageHeaders(existingBaggageValue, baggage);\n if (merged) {\n requestHeaders[existingBaggageIndex + 1] = merged;\n }\n }\n }\n\n if (Array.isArray(request.headers)) {\n // Replace contents in place so we keep the same array reference undici/fetch still holds.\n // `requestHeaders` is already normalized (string pairs only); splice writes them back.\n request.headers.splice(0, request.headers.length, ...requestHeaders);\n } else {\n request.headers = arrayToStringHeaders(requestHeaders);\n }\n}\n\n/**\n * Convert undici’s header array into `[name, value, name, value, ...]` where every value is a string.\n *\n * Undici v6 uses this shape: `[k1, v1, k2, v2, ...]`. Types allow each `v` to be `string | string[]` when\n * that header has multiple values. Sentry’s dedupe/merge helpers expect one string per value slot, so\n * multi-value arrays are joined with `', '`. Missing value slots become `''`.\n */\nfunction normalizeUndiciHeaderPairs(headers: (string | string[])[]): string[] {\n const out: string[] = [];\n for (let i = 0; i < headers.length; i++) {\n const entry = headers[i];\n if (i % 2 === 0) {\n // Header name (should always be a string; coerce defensively).\n out.push(typeof entry === 'string' ? entry : String(entry));\n } else {\n // Header value: flatten `string[]` to a single string for downstream string-only helpers.\n out.push(Array.isArray(entry) ? entry.join(', ') : (entry ?? ''));\n }\n }\n return out;\n}\n\nfunction stringToArrayHeaders(requestHeaders: string): string[] {\n const headersArray = requestHeaders.split('\\r\\n');\n const headers: string[] = [];\n for (const header of headersArray) {\n try {\n const colonIndex = header.indexOf(':');\n if (colonIndex === -1) {\n continue;\n }\n const key = header.slice(0, colonIndex).trim();\n const value = header.slice(colonIndex + 1).trim();\n if (key) {\n headers.push(key, value);\n }\n } catch {\n debug.warn(`Failed to convert string request header to array header: ${header}`);\n }\n }\n return headers;\n}\n\nfunction arrayToStringHeaders(headers: string[]): string {\n const headerPairs: string[] = [];\n\n for (let i = 0; i < headers.length; i += 2) {\n const key = headers[i];\n const value = headers[i + 1];\n if (!key || value == null) {\n // skip falsy keys but only null/undefined values\n continue;\n }\n headerPairs.push(`${key}: ${value}`);\n }\n\n if (!headerPairs.length) {\n return '';\n }\n\n return headerPairs.join('\\r\\n').concat('\\r\\n');\n}\n\n/**\n * For a given header name, if there are multiple entries in the [key, value, key, value, ...] array,\n * keep the first entry and remove the rest.\n * For baggage, values are merged to preserve all entries but to dedupe sentry- values, and always\n * keep the first occurrence of them\n */\nfunction _deduplicateArrayHeader(headers: string[], headerName: string): void {\n let firstIndex = -1;\n for (let i = 0; i < headers.length; i += 2) {\n if (headers[i] !== headerName) {\n continue;\n }\n\n if (firstIndex === -1) {\n firstIndex = i;\n continue;\n }\n\n const firstHeaderValue = headers[firstIndex + 1];\n if (headerName === SENTRY_BAGGAGE_HEADER && firstHeaderValue) {\n // mergeBaggageHeaders always takes sentry- values from the new baggage (2nd param) and merges\n // it with the existing one (1st param). Here, we want to keep the first header's existing\n // sentry- values in favor of the new ones. Hence we swap the parameters.\n const merged = mergeBaggageHeaders(headers[i + 1], firstHeaderValue);\n if (merged) {\n headers[firstIndex + 1] = merged;\n }\n }\n headers.splice(i, 2);\n i -= 2;\n }\n}\n\n/**\n * Find the index of an existing header in an array of headers.\n * Only take even indices, because headers are in format [key_0, value_0, key_1, value_1, ...]\n * otherwise we could match a header _value_ with @param name\n */\nfunction _findExistingHeaderIndex(headers: string[], name: string): number {\n return headers.findIndex((header, i) => i % 2 === 0 && header === name);\n}\n\n/** Add a breadcrumb for an outgoing fetch/undici request. */\nexport function addFetchRequestBreadcrumb(request: UndiciRequest, response: UndiciResponse): void {\n const data = getBreadcrumbData(request);\n\n const statusCode = response.statusCode;\n const level = getBreadcrumbLogLevelFromHttpStatusCode(statusCode);\n\n addBreadcrumb(\n {\n category: 'http',\n data: {\n status_code: statusCode,\n ...data,\n },\n type: 'http',\n level,\n },\n {\n event: 'response',\n request,\n response,\n },\n );\n}\n\nfunction getBreadcrumbData(request: UndiciRequest): Partial<SanitizedRequestData> {\n try {\n const url = getAbsoluteUrl(request.origin, request.path);\n const parsedUrl = parseUrl(url);\n\n return {\n url: getSanitizedUrlString(parsedUrl),\n // eslint-disable-next-line typescript/no-deprecated\n [HTTP_METHOD]: request.method || 'GET',\n [URL_QUERY]: filterCollectedUrlQuery(getUrlQuery(parsedUrl.search)),\n [URL_FRAGMENT]: getUrlFragment(parsedUrl.hash),\n };\n } catch {\n return {};\n }\n}\n\n/** Get the absolute URL from an origin and path. */\nexport function getAbsoluteUrl(origin: string, path: string = '/'): string {\n try {\n const url = new URL(path, origin);\n return url.toString();\n } catch {\n // fallback: Construct it on our own\n const url = `${origin}`;\n\n if (url.endsWith('/') && path.startsWith('/')) {\n return `${url}${path.slice(1)}`;\n }\n\n if (!url.endsWith('/') && !path.startsWith('/')) {\n return `${url}/${path}`;\n }\n\n return `${url}${path}`;\n }\n}\n"],"names":["getClient","shouldPropagateTraceForUrl","spanIsIgnored","getActiveSpan","withActiveSpan","getTraceData","mergeBaggageHeaders","debug","getBreadcrumbLogLevelFromHttpStatusCode","addBreadcrumb","parseUrl","getSanitizedUrlString","HTTP_METHOD","URL_QUERY","filterCollectedUrlQuery","getUrlQuery","URL_FRAG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BAAA,CAAY,SAAA,CAAU,MAAM,CAAC,CAAA;AAAA,MAClE,CAACC,uBAAY,GAAGC,mBAAA,CAAe,UAAU,IAAI;AAAA,KAC/C;AAAA,EACF,CAAA,CAAA,MAAQ;AACN,IAAA,OAAO,EAAC;AAAA,EACV;AACF;AAGO,SAAS,cAAA,CAAe,MAAA,EAAgB,IAAA,GAAe,GAAA,EAAa;AACzE,EAAA,IAAI;AACF,IAAA,MAAM,GAAA,GAAM,IAAI,GAAA,CAAI,IAAA,EAAM,MAAM,CAAA;AAChC,IAAA,OAAO,IAAI,QAAA,EAAS;AAAA,EACtB,CAAA,CAAA,MAAQ;AAEN,IAAA,MAAM,GAAA,GAAM,GAAG,MAAM,CAAA,CAAA;AAErB,IAAA,IAAI,IAAI,QAAA,CAAS,GAAG,KAAK,IAAA,CAAK,UAAA,CAAW,GAAG,CAAA,EAAG;AAC7C,MAAA,OAAO,GAAG,GAAG,CAAA,EAAG,IAAA,CAAK,KAAA,CAAM,CAAC,CAAC,CAAA,CAAA;AAAA,IAC/B;AAEA,IAAA,IAAI,CAAC,IAAI,QAAA,CAAS,GAAG,KAAK,CAAC,IAAA,CAAK,UAAA,CAAW,GAAG,CAAA,EAAG;AAC/C,MAAA,OAAO,CAAA,EAAG,GAAG,CAAA,CAAA,EAAI,IAAI,CAAA,CAAA;AAAA,IACvB;AAEA,IAAA,OAAO,CAAA,EAAG,GAAG,CAAA,EAAG,IAAI,CAAA,CAAA;AAAA,EACtB;AACF;;;;;;"}
@@ -0,0 +1,18 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ const core = require('@sentry/core');
4
+
5
+ function getSpotlightConfig(optionsSpotlight) {
6
+ if (optionsSpotlight === false) {
7
+ return false;
8
+ }
9
+ if (typeof optionsSpotlight === "string") {
10
+ return optionsSpotlight;
11
+ }
12
+ const envBool = core.envToBool(process.env.SENTRY_SPOTLIGHT, { strict: true });
13
+ const envUrl = envBool === null && process.env.SENTRY_SPOTLIGHT ? process.env.SENTRY_SPOTLIGHT : void 0;
14
+ return optionsSpotlight === true ? envUrl ?? true : envBool ?? envUrl;
15
+ }
16
+
17
+ exports.getSpotlightConfig = getSpotlightConfig;
18
+ //# sourceMappingURL=spotlight.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spotlight.js","sources":["../../../src/utils/spotlight.ts"],"sourcesContent":["import { envToBool } from '@sentry/core';\n\n/**\n * Parse the spotlight option with proper precedence:\n * - `false` or explicit string from options: use as-is\n * - `true`: enable spotlight, but prefer a custom URL from the env var if set\n * - `undefined`: defer entirely to the env var (bool or URL)\n */\nexport function getSpotlightConfig(optionsSpotlight: boolean | string | undefined): boolean | string | undefined {\n if (optionsSpotlight === false) {\n return false;\n }\n\n if (typeof optionsSpotlight === 'string') {\n return optionsSpotlight;\n }\n\n // optionsSpotlight is true or undefined\n const envBool = envToBool(process.env.SENTRY_SPOTLIGHT, { strict: true });\n const envUrl = envBool === null && process.env.SENTRY_SPOTLIGHT ? process.env.SENTRY_SPOTLIGHT : undefined;\n\n return optionsSpotlight === true\n ? (envUrl ?? true) // true: use env URL if present, otherwise true\n : (envBool ?? envUrl); // undefined: use env var (bool or URL)\n}\n"],"names":["envToBool"],"mappings":";;;;AAQO,SAAS,mBAAmB,gBAAA,EAA8E;AAC/G,EAAA,IAAI,qBAAqB,KAAA,EAAO;AAC9B,IAAA,OAAO,KAAA;AAAA,EACT;AAEA,EAAA,IAAI,OAAO,qBAAqB,QAAA,EAAU;AACxC,IAAA,OAAO,gBAAA;AAAA,EACT;AAGA,EAAA,MAAM,OAAA,GAAUA,eAAU,OAAA,CAAQ,GAAA,CAAI,kBAAkB,EAAE,MAAA,EAAQ,MAAM,CAAA;AACxE,EAAA,MAAM,MAAA,GAAS,YAAY,IAAA,IAAQ,OAAA,CAAQ,IAAI,gBAAA,GAAmB,OAAA,CAAQ,IAAI,gBAAA,GAAmB,MAAA;AAEjG,EAAA,OAAO,gBAAA,KAAqB,IAAA,GACvB,MAAA,IAAU,IAAA,GACV,OAAA,IAAW,MAAA;AAClB;;;;"}
@@ -0,0 +1,17 @@
1
+ import { sentryEsbuildPlugin as sentryEsbuildPlugin$1 } from '@sentry/bundler-plugins/esbuild';
2
+ import { sentryOrchestrionPlugin } from '@sentry/server-utils/orchestrion/esbuild';
3
+
4
+ function sentryEsbuildPlugin(options) {
5
+ const bundlerPlugin = sentryEsbuildPlugin$1(options);
6
+ const orchestrionPlugin = sentryOrchestrionPlugin(options);
7
+ return {
8
+ name: "sentry-node-esbuild",
9
+ async setup(build) {
10
+ await bundlerPlugin.setup(build);
11
+ await orchestrionPlugin.setup(build);
12
+ }
13
+ };
14
+ }
15
+
16
+ export { sentryEsbuildPlugin };
17
+ //# sourceMappingURL=esbuild.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"esbuild.js","sources":["../../../src/bundler-plugin/esbuild.ts"],"sourcesContent":["import { sentryEsbuildPlugin as sentryEsbuildBundlerPlugin } from '@sentry/bundler-plugins/esbuild';\nimport type { SentryEsbuildPluginOptions as SentryEsbuildPluginOptionsBase } from '@sentry/bundler-plugins/esbuild';\nimport { sentryOrchestrionPlugin } from '@sentry/server-utils/orchestrion/esbuild';\n\nexport type SentryEsbuildPluginOptions = SentryEsbuildPluginOptionsBase & {\n /**\n * @ignore This is for internal use only when this plugin is consumed by a framework SDK\n */\n instrumentations?: NonNullable<Parameters<typeof sentryOrchestrionPlugin>[0]>['instrumentations'];\n\n /**\n * Automatic instrumentation of server-side dependencies at build time.\n *\n * Set to `false` to turn it off.\n *\n * @default true\n */\n buildTimeInstrumentation?: boolean;\n};\n\ntype EsbuildPlugin = ReturnType<typeof sentryOrchestrionPlugin>;\n\n/**\n * esbuild plugin that bundles the Sentry esbuild bundler plugin (source maps,\n * release injection, …) together with the code transformer\n * (build-time `diagnostics_channel` instrumentation for Node libraries).\n *\n * It is a drop-in replacement for `@sentry/bundler-plugins/esbuild` and accepts\n * the same options.\n * @example\n * ```ts\n * // build.mjs\n * import { sentryEsbuildPlugin } from '@sentry/node/esbuild';\n * await esbuild.build({ plugins: [sentryEsbuildPlugin({ org: '…', project: '…' })] });\n * ```\n */\nexport function sentryEsbuildPlugin(options?: SentryEsbuildPluginOptions): EsbuildPlugin {\n const bundlerPlugin = sentryEsbuildBundlerPlugin(options) as EsbuildPlugin;\n const orchestrionPlugin = sentryOrchestrionPlugin(options);\n\n return {\n name: 'sentry-node-esbuild',\n async setup(build): Promise<void> {\n await bundlerPlugin.setup(build);\n await orchestrionPlugin.setup(build);\n },\n };\n}\n"],"names":["sentryEsbuildBundlerPlugin"],"mappings":";;;AAoCO,SAAS,oBAAoB,OAAA,EAAqD;AACvF,EAAA,MAAM,aAAA,GAAgBA,sBAA2B,OAAO,CAAA;AACxD,EAAA,MAAM,iBAAA,GAAoB,wBAAwB,OAAO,CAAA;AAEzD,EAAA,OAAO;AAAA,IACL,IAAA,EAAM,qBAAA;AAAA,IACN,MAAM,MAAM,KAAA,EAAsB;AAChC,MAAA,MAAM,aAAA,CAAc,MAAM,KAAK,CAAA;AAC/B,MAAA,MAAM,iBAAA,CAAkB,MAAM,KAAK,CAAA;AAAA,IACrC;AAAA,GACF;AACF;;;;"}
@@ -0,0 +1,10 @@
1
+ import { sentryRollupPlugin as sentryRollupPlugin$1 } from '@sentry/bundler-plugins/rollup';
2
+ import { sentryOrchestrionPlugin } from '@sentry/server-utils/orchestrion/rollup';
3
+
4
+ function sentryRollupPlugin(options) {
5
+ const bundlerPlugins = sentryRollupPlugin$1(options);
6
+ return [...bundlerPlugins, sentryOrchestrionPlugin(options)];
7
+ }
8
+
9
+ export { sentryRollupPlugin };
10
+ //# sourceMappingURL=rollup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rollup.js","sources":["../../../src/bundler-plugin/rollup.ts"],"sourcesContent":["import { sentryRollupPlugin as sentryRollupBundlerPlugin } from '@sentry/bundler-plugins/rollup';\nimport type { SentryRollupPluginOptions as SentryRollupPluginOptionsBase } from '@sentry/bundler-plugins/rollup';\nimport { sentryOrchestrionPlugin } from '@sentry/server-utils/orchestrion/rollup';\n\nexport type SentryRollupPluginOptions = SentryRollupPluginOptionsBase & {\n /**\n * @ignore This is for internal use only when this plugin is consumed by a framework SDK\n */\n instrumentations?: NonNullable<Parameters<typeof sentryOrchestrionPlugin>[0]>['instrumentations'];\n\n /**\n * Automatic instrumentation of server-side dependencies at build time.\n *\n * Set to `false` to turn it off.\n *\n * @default true\n */\n buildTimeInstrumentation?: boolean;\n};\n\ntype RollupPlugin = ReturnType<typeof sentryOrchestrionPlugin>;\n\n/**\n * Rollup plugin that bundles the Sentry Rollup bundler plugin (source maps,\n * release injection, bundle size optimizations, …) together with the\n * code transformer (build-time `diagnostics_channel` instrumentation\n * for Node libraries).\n *\n * It is a drop-in replacement for `@sentry/bundler-plugins/rollup` and accepts\n * the same options.\n * @example\n * ```ts\n * // rollup.config.js\n * import { sentryRollupPlugin } from '@sentry/node/rollup';\n * export default { plugins: [sentryRollupPlugin({ org: '…', project: '…' })] };\n * ```\n */\nexport function sentryRollupPlugin(options?: SentryRollupPluginOptions): RollupPlugin[] {\n const bundlerPlugins = sentryRollupBundlerPlugin(options);\n return [...bundlerPlugins, sentryOrchestrionPlugin(options)];\n}\n"],"names":["sentryRollupBundlerPlugin"],"mappings":";;;AAqCO,SAAS,mBAAmB,OAAA,EAAqD;AACtF,EAAA,MAAM,cAAA,GAAiBA,qBAA0B,OAAO,CAAA;AACxD,EAAA,OAAO,CAAC,GAAG,cAAA,EAAgB,uBAAA,CAAwB,OAAO,CAAC,CAAA;AAC7D;;;;"}