@sentry/cloudflare 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 (756) hide show
  1. package/README.md +3 -7
  2. package/build/cjs/{sdk.js → dev/baseSdk.js} +27 -17
  3. package/build/cjs/dev/baseSdk.js.map +1 -0
  4. package/build/cjs/dev/client.js.map +1 -0
  5. package/build/cjs/dev/debug-build.js.map +1 -0
  6. package/build/cjs/dev/defineCloudflareOptions.js.map +1 -0
  7. package/build/cjs/{durableobject.js → dev/durableobject.js} +21 -20
  8. package/build/cjs/dev/durableobject.js.map +1 -0
  9. package/build/cjs/dev/flush.js.map +1 -0
  10. package/build/cjs/{index.js → dev/index.js} +16 -17
  11. package/build/cjs/{index.js.map → dev/index.js.map} +1 -1
  12. package/build/cjs/dev/instrument.js.map +1 -0
  13. package/build/cjs/dev/instrumentations/agents/index.js.map +1 -0
  14. package/build/cjs/dev/instrumentations/agents/instrumentAgentCallableRpc.js.map +1 -0
  15. package/build/cjs/dev/instrumentations/agents/instrumentAgentRequestConversation.js.map +1 -0
  16. package/build/cjs/dev/instrumentations/agents/instrumentChatAgentConversation.js.map +1 -0
  17. package/build/cjs/{instrumentations → dev/instrumentations}/agents/types.js +4 -4
  18. package/build/cjs/dev/instrumentations/agents/types.js.map +1 -0
  19. package/build/cjs/dev/instrumentations/instrumentDurableObjectNamespace.js.map +1 -0
  20. package/build/cjs/dev/instrumentations/instrumentDurableObjectStorage.js.map +1 -0
  21. package/build/cjs/dev/instrumentations/instrumentDurableObjectSyncKvStorage.js.map +1 -0
  22. package/build/cjs/dev/instrumentations/instrumentSqlStorage.js.map +1 -0
  23. package/build/cjs/{instrumentations → dev/instrumentations}/instrumentWorkerEntrypoint.js +3 -3
  24. package/build/cjs/dev/instrumentations/instrumentWorkerEntrypoint.js.map +1 -0
  25. package/build/cjs/{instrumentations → dev/instrumentations}/worker/instrumentD1.js +0 -4
  26. package/build/cjs/dev/instrumentations/worker/instrumentD1.js.map +1 -0
  27. package/build/cjs/{instrumentations → dev/instrumentations}/worker/instrumentEmail.js +3 -1
  28. package/build/cjs/dev/instrumentations/worker/instrumentEmail.js.map +1 -0
  29. package/build/cjs/{instrumentations → dev/instrumentations}/worker/instrumentEnv.js +3 -4
  30. package/build/cjs/dev/instrumentations/worker/instrumentEnv.js.map +1 -0
  31. package/build/cjs/{instrumentations → dev/instrumentations}/worker/instrumentFetch.js +9 -3
  32. package/build/cjs/dev/instrumentations/worker/instrumentFetch.js.map +1 -0
  33. package/build/cjs/dev/instrumentations/worker/instrumentFetcher.js.map +1 -0
  34. package/build/cjs/{instrumentations → dev/instrumentations}/worker/instrumentQueue.js +3 -2
  35. package/build/cjs/dev/instrumentations/worker/instrumentQueue.js.map +1 -0
  36. package/build/cjs/dev/instrumentations/worker/instrumentQueueProducer.js.map +1 -0
  37. package/build/cjs/dev/instrumentations/worker/instrumentR2.js.map +1 -0
  38. package/build/cjs/dev/instrumentations/worker/instrumentRateLimit.js.map +1 -0
  39. package/build/cjs/{instrumentations → dev/instrumentations}/worker/instrumentScheduled.js +3 -1
  40. package/build/cjs/dev/instrumentations/worker/instrumentScheduled.js.map +1 -0
  41. package/build/cjs/dev/instrumentations/worker/instrumentTail.js.map +1 -0
  42. package/build/cjs/{integrations → dev/integrations}/fetch.js +1 -1
  43. package/build/cjs/dev/integrations/fetch.js.map +1 -0
  44. package/build/cjs/{integrations → dev/integrations}/httpServer.js +5 -4
  45. package/build/cjs/dev/integrations/httpServer.js.map +1 -0
  46. package/build/cjs/dev/integrations/spotlight.js.map +1 -0
  47. package/build/cjs/{nodejs_compat → dev}/integrations/tracing/vercelai.js +6 -6
  48. package/build/cjs/dev/integrations/tracing/vercelai.js.map +1 -0
  49. package/build/cjs/dev/opentelemetry/tracer.js.map +1 -0
  50. package/build/cjs/{options.js → dev/options.js} +8 -0
  51. package/build/cjs/dev/options.js.map +1 -0
  52. package/build/cjs/{pages-plugin.js → dev/pages-plugin.js} +8 -3
  53. package/build/cjs/dev/pages-plugin.js.map +1 -0
  54. package/build/cjs/{request.js → dev/request.js} +20 -10
  55. package/build/cjs/dev/request.js.map +1 -0
  56. package/build/cjs/dev/scope-utils.js.map +1 -0
  57. package/build/cjs/dev/sdk.js +19 -0
  58. package/build/cjs/dev/sdk.js.map +1 -0
  59. package/build/cjs/dev/transport.js.map +1 -0
  60. package/build/cjs/{utils → dev/utils}/instrumentContext.js +8 -13
  61. package/build/cjs/dev/utils/instrumentContext.js.map +1 -0
  62. package/build/cjs/dev/utils/internalSqlQuery.js.map +1 -0
  63. package/build/cjs/dev/utils/internalStorageKey.js.map +1 -0
  64. package/build/cjs/dev/utils/invocationScope.js.map +1 -0
  65. package/build/cjs/dev/utils/isBinding.js.map +1 -0
  66. package/build/cjs/dev/utils/isCloudflareClass.js.map +1 -0
  67. package/build/cjs/dev/utils/rpcMeta.js.map +1 -0
  68. package/build/cjs/dev/utils/streaming.js.map +1 -0
  69. package/build/cjs/dev/utils/traceLinks.js.map +1 -0
  70. package/build/cjs/dev/vendor/stacktrace.js.map +1 -0
  71. package/build/cjs/dev/vite/agentClass.js.map +1 -0
  72. package/build/cjs/dev/vite/autoInstrument.js.map +1 -0
  73. package/build/cjs/{vite → dev/vite}/index.js +4 -2
  74. package/build/cjs/dev/vite/index.js.map +1 -0
  75. package/build/cjs/dev/vite/instrumentFile.js.map +1 -0
  76. package/build/cjs/dev/vite/moduleShape.js.map +1 -0
  77. package/build/cjs/dev/vite/transform.js.map +1 -0
  78. package/build/cjs/dev/vite/workerEntrypoint.js.map +1 -0
  79. package/build/cjs/dev/vite/wranglerConfig.js.map +1 -0
  80. package/build/cjs/{withSentry.js → dev/withSentry.js} +2 -19
  81. package/build/cjs/dev/withSentry.js.map +1 -0
  82. package/build/cjs/{workflows.js → dev/workflows.js} +8 -3
  83. package/build/cjs/dev/workflows.js.map +1 -0
  84. package/build/cjs/dev/wrapMethodWithSentry.js.map +1 -0
  85. package/build/cjs/prod/baseSdk.js +73 -0
  86. package/build/cjs/prod/baseSdk.js.map +1 -0
  87. package/build/cjs/prod/client.js +122 -0
  88. package/build/cjs/prod/client.js.map +1 -0
  89. package/build/cjs/prod/debug-build.js +6 -0
  90. package/build/cjs/prod/debug-build.js.map +1 -0
  91. package/build/cjs/prod/defineCloudflareOptions.js +11 -0
  92. package/build/cjs/prod/defineCloudflareOptions.js.map +1 -0
  93. package/build/cjs/prod/durableobject.js +234 -0
  94. package/build/cjs/prod/durableobject.js.map +1 -0
  95. package/build/cjs/prod/flush.js +87 -0
  96. package/build/cjs/prod/flush.js.map +1 -0
  97. package/build/cjs/{nodejs_compat → prod}/index.js +34 -37
  98. package/build/cjs/{nodejs_compat → prod}/index.js.map +1 -1
  99. package/build/cjs/prod/instrument.js +52 -0
  100. package/build/cjs/prod/instrument.js.map +1 -0
  101. package/build/cjs/prod/instrumentations/agents/index.js +16 -0
  102. package/build/cjs/prod/instrumentations/agents/index.js.map +1 -0
  103. package/build/cjs/prod/instrumentations/agents/instrumentAgentCallableRpc.js +52 -0
  104. package/build/cjs/prod/instrumentations/agents/instrumentAgentCallableRpc.js.map +1 -0
  105. package/build/cjs/prod/instrumentations/agents/instrumentAgentRequestConversation.js +19 -0
  106. package/build/cjs/prod/instrumentations/agents/instrumentAgentRequestConversation.js.map +1 -0
  107. package/build/cjs/prod/instrumentations/agents/instrumentChatAgentConversation.js +31 -0
  108. package/build/cjs/prod/instrumentations/agents/instrumentChatAgentConversation.js.map +1 -0
  109. package/build/cjs/prod/instrumentations/agents/types.js +77 -0
  110. package/build/cjs/prod/instrumentations/agents/types.js.map +1 -0
  111. package/build/cjs/prod/instrumentations/instrumentDurableObjectNamespace.js +41 -0
  112. package/build/cjs/prod/instrumentations/instrumentDurableObjectNamespace.js.map +1 -0
  113. package/build/cjs/prod/instrumentations/instrumentDurableObjectStorage.js +72 -0
  114. package/build/cjs/prod/instrumentations/instrumentDurableObjectStorage.js.map +1 -0
  115. package/build/cjs/prod/instrumentations/instrumentDurableObjectSyncKvStorage.js +40 -0
  116. package/build/cjs/prod/instrumentations/instrumentDurableObjectSyncKvStorage.js.map +1 -0
  117. package/build/cjs/prod/instrumentations/instrumentSqlStorage.js +42 -0
  118. package/build/cjs/prod/instrumentations/instrumentSqlStorage.js.map +1 -0
  119. package/build/cjs/prod/instrumentations/instrumentWorkerEntrypoint.js +139 -0
  120. package/build/cjs/prod/instrumentations/instrumentWorkerEntrypoint.js.map +1 -0
  121. package/build/cjs/prod/instrumentations/worker/instrumentD1.js +161 -0
  122. package/build/cjs/prod/instrumentations/worker/instrumentD1.js.map +1 -0
  123. package/build/cjs/prod/instrumentations/worker/instrumentEmail.js +63 -0
  124. package/build/cjs/prod/instrumentations/worker/instrumentEmail.js.map +1 -0
  125. package/build/cjs/prod/instrumentations/worker/instrumentEnv.js +90 -0
  126. package/build/cjs/prod/instrumentations/worker/instrumentEnv.js.map +1 -0
  127. package/build/cjs/prod/instrumentations/worker/instrumentFetch.js +54 -0
  128. package/build/cjs/prod/instrumentations/worker/instrumentFetch.js.map +1 -0
  129. package/build/cjs/prod/instrumentations/worker/instrumentFetcher.js +24 -0
  130. package/build/cjs/prod/instrumentations/worker/instrumentFetcher.js.map +1 -0
  131. package/build/cjs/prod/instrumentations/worker/instrumentQueue.js +82 -0
  132. package/build/cjs/prod/instrumentations/worker/instrumentQueue.js.map +1 -0
  133. package/build/cjs/prod/instrumentations/worker/instrumentQueueProducer.js +80 -0
  134. package/build/cjs/prod/instrumentations/worker/instrumentQueueProducer.js.map +1 -0
  135. package/build/cjs/prod/instrumentations/worker/instrumentR2.js +124 -0
  136. package/build/cjs/prod/instrumentations/worker/instrumentR2.js.map +1 -0
  137. package/build/cjs/prod/instrumentations/worker/instrumentRateLimit.js +29 -0
  138. package/build/cjs/prod/instrumentations/worker/instrumentRateLimit.js.map +1 -0
  139. package/build/cjs/prod/instrumentations/worker/instrumentScheduled.js +78 -0
  140. package/build/cjs/prod/instrumentations/worker/instrumentScheduled.js.map +1 -0
  141. package/build/cjs/prod/instrumentations/worker/instrumentTail.js +60 -0
  142. package/build/cjs/prod/instrumentations/worker/instrumentTail.js.map +1 -0
  143. package/build/cjs/prod/integrations/fetch.js +119 -0
  144. package/build/cjs/prod/integrations/fetch.js.map +1 -0
  145. package/build/cjs/prod/integrations/httpServer.js +36 -0
  146. package/build/cjs/prod/integrations/httpServer.js.map +1 -0
  147. package/build/cjs/prod/integrations/spotlight.js +64 -0
  148. package/build/cjs/prod/integrations/spotlight.js.map +1 -0
  149. package/build/cjs/{integrations → prod/integrations}/tracing/vercelai.js +5 -5
  150. package/build/cjs/prod/integrations/tracing/vercelai.js.map +1 -0
  151. package/build/cjs/prod/opentelemetry/tracer.js +49 -0
  152. package/build/cjs/prod/opentelemetry/tracer.js.map +1 -0
  153. package/build/cjs/prod/options.js +33 -0
  154. package/build/cjs/prod/options.js.map +1 -0
  155. package/build/cjs/prod/pages-plugin.js +24 -0
  156. package/build/cjs/prod/pages-plugin.js.map +1 -0
  157. package/build/cjs/prod/request.js +132 -0
  158. package/build/cjs/prod/request.js.map +1 -0
  159. package/build/cjs/prod/scope-utils.js +22 -0
  160. package/build/cjs/prod/scope-utils.js.map +1 -0
  161. package/build/cjs/prod/sdk.js +19 -0
  162. package/build/cjs/prod/sdk.js.map +1 -0
  163. package/build/cjs/prod/transport.js +75 -0
  164. package/build/cjs/prod/transport.js.map +1 -0
  165. package/build/cjs/prod/utils/instrumentContext.js +63 -0
  166. package/build/cjs/prod/utils/instrumentContext.js.map +1 -0
  167. package/build/cjs/prod/utils/internalSqlQuery.js +25 -0
  168. package/build/cjs/prod/utils/internalSqlQuery.js.map +1 -0
  169. package/build/cjs/prod/utils/internalStorageKey.js +44 -0
  170. package/build/cjs/prod/utils/internalStorageKey.js.map +1 -0
  171. package/build/cjs/prod/utils/invocationScope.js +12 -0
  172. package/build/cjs/prod/utils/invocationScope.js.map +1 -0
  173. package/build/cjs/prod/utils/isBinding.js +37 -0
  174. package/build/cjs/prod/utils/isBinding.js.map +1 -0
  175. package/build/cjs/prod/utils/isCloudflareClass.js +23 -0
  176. package/build/cjs/prod/utils/isCloudflareClass.js.map +1 -0
  177. package/build/cjs/prod/utils/rpcMeta.js +39 -0
  178. package/build/cjs/prod/utils/rpcMeta.js.map +1 -0
  179. package/build/cjs/prod/utils/streaming.js +16 -0
  180. package/build/cjs/prod/utils/streaming.js.map +1 -0
  181. package/build/cjs/prod/utils/traceLinks.js +54 -0
  182. package/build/cjs/prod/utils/traceLinks.js.map +1 -0
  183. package/build/cjs/prod/vendor/stacktrace.js +28 -0
  184. package/build/cjs/prod/vendor/stacktrace.js.map +1 -0
  185. package/build/cjs/prod/vite/agentClass.js +114 -0
  186. package/build/cjs/prod/vite/agentClass.js.map +1 -0
  187. package/build/cjs/prod/vite/autoInstrument.js +94 -0
  188. package/build/cjs/prod/vite/autoInstrument.js.map +1 -0
  189. package/build/cjs/prod/vite/index.js +16 -0
  190. package/build/cjs/prod/vite/index.js.map +1 -0
  191. package/build/cjs/prod/vite/instrumentFile.js +31 -0
  192. package/build/cjs/prod/vite/instrumentFile.js.map +1 -0
  193. package/build/cjs/prod/vite/moduleShape.js +231 -0
  194. package/build/cjs/prod/vite/moduleShape.js.map +1 -0
  195. package/build/cjs/prod/vite/transform.js +149 -0
  196. package/build/cjs/prod/vite/transform.js.map +1 -0
  197. package/build/cjs/prod/vite/workerEntrypoint.js +66 -0
  198. package/build/cjs/prod/vite/workerEntrypoint.js.map +1 -0
  199. package/build/cjs/prod/vite/wranglerConfig.js +54 -0
  200. package/build/cjs/prod/vite/wranglerConfig.js.map +1 -0
  201. package/build/cjs/prod/withSentry.js +29 -0
  202. package/build/cjs/prod/withSentry.js.map +1 -0
  203. package/build/cjs/prod/workflows.js +139 -0
  204. package/build/cjs/prod/workflows.js.map +1 -0
  205. package/build/cjs/prod/wrapMethodWithSentry.js +134 -0
  206. package/build/cjs/prod/wrapMethodWithSentry.js.map +1 -0
  207. package/build/esm/{sdk.js → dev/baseSdk.js} +26 -17
  208. package/build/esm/dev/baseSdk.js.map +1 -0
  209. package/build/esm/dev/client.js.map +1 -0
  210. package/build/esm/dev/debug-build.js.map +1 -0
  211. package/build/esm/dev/defineCloudflareOptions.js.map +1 -0
  212. package/build/esm/{durableobject.js → dev/durableobject.js} +21 -20
  213. package/build/esm/dev/durableobject.js.map +1 -0
  214. package/build/esm/dev/flush.js.map +1 -0
  215. package/build/esm/dev/index.js +15 -0
  216. package/build/esm/{index.js.map → dev/index.js.map} +1 -1
  217. package/build/esm/dev/instrument.js.map +1 -0
  218. package/build/esm/dev/instrumentations/agents/index.js.map +1 -0
  219. package/build/esm/dev/instrumentations/agents/instrumentAgentCallableRpc.js.map +1 -0
  220. package/build/esm/dev/instrumentations/agents/instrumentAgentRequestConversation.js.map +1 -0
  221. package/build/esm/dev/instrumentations/agents/instrumentChatAgentConversation.js.map +1 -0
  222. package/build/esm/{instrumentations → dev/instrumentations}/agents/types.js +2 -2
  223. package/build/esm/dev/instrumentations/agents/types.js.map +1 -0
  224. package/build/esm/dev/instrumentations/instrumentDurableObjectNamespace.js.map +1 -0
  225. package/build/esm/dev/instrumentations/instrumentDurableObjectStorage.js.map +1 -0
  226. package/build/esm/dev/instrumentations/instrumentDurableObjectSyncKvStorage.js.map +1 -0
  227. package/build/esm/dev/instrumentations/instrumentSqlStorage.js.map +1 -0
  228. package/build/esm/{instrumentations → dev/instrumentations}/instrumentWorkerEntrypoint.js +2 -2
  229. package/build/esm/dev/instrumentations/instrumentWorkerEntrypoint.js.map +1 -0
  230. package/build/esm/{instrumentations → dev/instrumentations}/worker/instrumentD1.js +1 -4
  231. package/build/esm/dev/instrumentations/worker/instrumentD1.js.map +1 -0
  232. package/build/esm/{instrumentations → dev/instrumentations}/worker/instrumentEmail.js +3 -1
  233. package/build/esm/dev/instrumentations/worker/instrumentEmail.js.map +1 -0
  234. package/build/esm/{instrumentations → dev/instrumentations}/worker/instrumentEnv.js +3 -4
  235. package/build/esm/dev/instrumentations/worker/instrumentEnv.js.map +1 -0
  236. package/build/esm/{instrumentations → dev/instrumentations}/worker/instrumentFetch.js +10 -4
  237. package/build/esm/dev/instrumentations/worker/instrumentFetch.js.map +1 -0
  238. package/build/esm/dev/instrumentations/worker/instrumentFetcher.js.map +1 -0
  239. package/build/esm/{instrumentations → dev/instrumentations}/worker/instrumentQueue.js +4 -3
  240. package/build/esm/dev/instrumentations/worker/instrumentQueue.js.map +1 -0
  241. package/build/esm/dev/instrumentations/worker/instrumentQueueProducer.js.map +1 -0
  242. package/build/esm/dev/instrumentations/worker/instrumentR2.js.map +1 -0
  243. package/build/esm/dev/instrumentations/worker/instrumentRateLimit.js.map +1 -0
  244. package/build/esm/{instrumentations → dev/instrumentations}/worker/instrumentScheduled.js +3 -1
  245. package/build/esm/dev/instrumentations/worker/instrumentScheduled.js.map +1 -0
  246. package/build/esm/dev/instrumentations/worker/instrumentTail.js.map +1 -0
  247. package/build/esm/{integrations → dev/integrations}/fetch.js +1 -1
  248. package/build/esm/dev/integrations/fetch.js.map +1 -0
  249. package/build/esm/{integrations → dev/integrations}/httpServer.js +5 -4
  250. package/build/esm/dev/integrations/httpServer.js.map +1 -0
  251. package/build/esm/dev/integrations/spotlight.js.map +1 -0
  252. package/build/esm/{integrations → dev/integrations}/tracing/vercelai.js +5 -5
  253. package/build/esm/dev/integrations/tracing/vercelai.js.map +1 -0
  254. package/build/esm/dev/opentelemetry/tracer.js.map +1 -0
  255. package/build/esm/{options.js → dev/options.js} +8 -0
  256. package/build/esm/dev/options.js.map +1 -0
  257. package/build/esm/dev/package.json +1 -0
  258. package/build/esm/{pages-plugin.js → dev/pages-plugin.js} +8 -3
  259. package/build/esm/dev/pages-plugin.js.map +1 -0
  260. package/build/esm/{request.js → dev/request.js} +21 -12
  261. package/build/esm/dev/request.js.map +1 -0
  262. package/build/esm/dev/scope-utils.js.map +1 -0
  263. package/build/esm/dev/sdk.js +16 -0
  264. package/build/esm/dev/sdk.js.map +1 -0
  265. package/build/esm/dev/transport.js.map +1 -0
  266. package/build/esm/{utils → dev/utils}/instrumentContext.js +8 -13
  267. package/build/esm/dev/utils/instrumentContext.js.map +1 -0
  268. package/build/esm/dev/utils/internalSqlQuery.js.map +1 -0
  269. package/build/esm/dev/utils/internalStorageKey.js.map +1 -0
  270. package/build/esm/dev/utils/invocationScope.js.map +1 -0
  271. package/build/esm/dev/utils/isBinding.js.map +1 -0
  272. package/build/esm/dev/utils/isCloudflareClass.js.map +1 -0
  273. package/build/esm/dev/utils/rpcMeta.js.map +1 -0
  274. package/build/esm/dev/utils/streaming.js.map +1 -0
  275. package/build/esm/{utils → dev/utils}/traceLinks.js +1 -1
  276. package/build/esm/dev/utils/traceLinks.js.map +1 -0
  277. package/build/esm/dev/vendor/stacktrace.js.map +1 -0
  278. package/build/esm/dev/vite/agentClass.js.map +1 -0
  279. package/build/esm/dev/vite/autoInstrument.js.map +1 -0
  280. package/build/esm/{vite → dev/vite}/index.js +4 -2
  281. package/build/esm/dev/vite/index.js.map +1 -0
  282. package/build/esm/dev/vite/instrumentFile.js.map +1 -0
  283. package/build/esm/dev/vite/moduleShape.js.map +1 -0
  284. package/build/esm/dev/vite/transform.js.map +1 -0
  285. package/build/esm/dev/vite/workerEntrypoint.js.map +1 -0
  286. package/build/esm/dev/vite/wranglerConfig.js.map +1 -0
  287. package/build/esm/{withSentry.js → dev/withSentry.js} +1 -18
  288. package/build/esm/dev/withSentry.js.map +1 -0
  289. package/build/esm/{workflows.js → dev/workflows.js} +7 -2
  290. package/build/esm/dev/workflows.js.map +1 -0
  291. package/build/esm/dev/wrapMethodWithSentry.js.map +1 -0
  292. package/build/esm/prod/baseSdk.js +69 -0
  293. package/build/esm/prod/baseSdk.js.map +1 -0
  294. package/build/esm/prod/client.js +120 -0
  295. package/build/esm/prod/client.js.map +1 -0
  296. package/build/esm/prod/debug-build.js +4 -0
  297. package/build/esm/prod/debug-build.js.map +1 -0
  298. package/build/esm/prod/defineCloudflareOptions.js +9 -0
  299. package/build/esm/prod/defineCloudflareOptions.js.map +1 -0
  300. package/build/esm/prod/durableobject.js +229 -0
  301. package/build/esm/prod/durableobject.js.map +1 -0
  302. package/build/esm/prod/flush.js +83 -0
  303. package/build/esm/prod/flush.js.map +1 -0
  304. package/build/esm/prod/index.js +15 -0
  305. package/build/esm/{nodejs_compat → prod}/index.js.map +1 -1
  306. package/build/esm/prod/instrument.js +48 -0
  307. package/build/esm/prod/instrument.js.map +1 -0
  308. package/build/esm/prod/instrumentations/agents/index.js +14 -0
  309. package/build/esm/prod/instrumentations/agents/index.js.map +1 -0
  310. package/build/esm/prod/instrumentations/agents/instrumentAgentCallableRpc.js +50 -0
  311. package/build/esm/prod/instrumentations/agents/instrumentAgentCallableRpc.js.map +1 -0
  312. package/build/esm/prod/instrumentations/agents/instrumentAgentRequestConversation.js +17 -0
  313. package/build/esm/prod/instrumentations/agents/instrumentAgentRequestConversation.js.map +1 -0
  314. package/build/esm/prod/instrumentations/agents/instrumentChatAgentConversation.js +29 -0
  315. package/build/esm/prod/instrumentations/agents/instrumentChatAgentConversation.js.map +1 -0
  316. package/build/esm/prod/instrumentations/agents/types.js +69 -0
  317. package/build/esm/prod/instrumentations/agents/types.js.map +1 -0
  318. package/build/esm/prod/instrumentations/instrumentDurableObjectNamespace.js +38 -0
  319. package/build/esm/prod/instrumentations/instrumentDurableObjectNamespace.js.map +1 -0
  320. package/build/esm/prod/instrumentations/instrumentDurableObjectStorage.js +70 -0
  321. package/build/esm/prod/instrumentations/instrumentDurableObjectStorage.js.map +1 -0
  322. package/build/esm/prod/instrumentations/instrumentDurableObjectSyncKvStorage.js +38 -0
  323. package/build/esm/prod/instrumentations/instrumentDurableObjectSyncKvStorage.js.map +1 -0
  324. package/build/esm/prod/instrumentations/instrumentSqlStorage.js +40 -0
  325. package/build/esm/prod/instrumentations/instrumentSqlStorage.js.map +1 -0
  326. package/build/esm/prod/instrumentations/instrumentWorkerEntrypoint.js +137 -0
  327. package/build/esm/prod/instrumentations/instrumentWorkerEntrypoint.js.map +1 -0
  328. package/build/esm/prod/instrumentations/worker/instrumentD1.js +159 -0
  329. package/build/esm/prod/instrumentations/worker/instrumentD1.js.map +1 -0
  330. package/build/esm/prod/instrumentations/worker/instrumentEmail.js +61 -0
  331. package/build/esm/prod/instrumentations/worker/instrumentEmail.js.map +1 -0
  332. package/build/esm/prod/instrumentations/worker/instrumentEnv.js +88 -0
  333. package/build/esm/prod/instrumentations/worker/instrumentEnv.js.map +1 -0
  334. package/build/esm/prod/instrumentations/worker/instrumentFetch.js +51 -0
  335. package/build/esm/prod/instrumentations/worker/instrumentFetch.js.map +1 -0
  336. package/build/esm/prod/instrumentations/worker/instrumentFetcher.js +22 -0
  337. package/build/esm/prod/instrumentations/worker/instrumentFetcher.js.map +1 -0
  338. package/build/esm/prod/instrumentations/worker/instrumentQueue.js +79 -0
  339. package/build/esm/prod/instrumentations/worker/instrumentQueue.js.map +1 -0
  340. package/build/esm/prod/instrumentations/worker/instrumentQueueProducer.js +78 -0
  341. package/build/esm/prod/instrumentations/worker/instrumentQueueProducer.js.map +1 -0
  342. package/build/esm/prod/instrumentations/worker/instrumentR2.js +122 -0
  343. package/build/esm/prod/instrumentations/worker/instrumentR2.js.map +1 -0
  344. package/build/esm/prod/instrumentations/worker/instrumentRateLimit.js +27 -0
  345. package/build/esm/prod/instrumentations/worker/instrumentRateLimit.js.map +1 -0
  346. package/build/esm/prod/instrumentations/worker/instrumentScheduled.js +75 -0
  347. package/build/esm/prod/instrumentations/worker/instrumentScheduled.js.map +1 -0
  348. package/build/esm/prod/instrumentations/worker/instrumentTail.js +57 -0
  349. package/build/esm/prod/instrumentations/worker/instrumentTail.js.map +1 -0
  350. package/build/esm/prod/integrations/fetch.js +117 -0
  351. package/build/esm/prod/integrations/fetch.js.map +1 -0
  352. package/build/esm/prod/integrations/httpServer.js +33 -0
  353. package/build/esm/prod/integrations/httpServer.js.map +1 -0
  354. package/build/esm/prod/integrations/spotlight.js +61 -0
  355. package/build/esm/prod/integrations/spotlight.js.map +1 -0
  356. package/build/esm/prod/integrations/tracing/vercelai.js +16 -0
  357. package/build/esm/prod/integrations/tracing/vercelai.js.map +1 -0
  358. package/build/esm/prod/opentelemetry/tracer.js +47 -0
  359. package/build/esm/prod/opentelemetry/tracer.js.map +1 -0
  360. package/build/esm/prod/options.js +31 -0
  361. package/build/esm/prod/options.js.map +1 -0
  362. package/build/esm/prod/package.json +1 -0
  363. package/build/esm/prod/pages-plugin.js +22 -0
  364. package/build/esm/prod/pages-plugin.js.map +1 -0
  365. package/build/esm/prod/request.js +129 -0
  366. package/build/esm/prod/request.js.map +1 -0
  367. package/build/esm/prod/scope-utils.js +18 -0
  368. package/build/esm/prod/scope-utils.js.map +1 -0
  369. package/build/esm/prod/sdk.js +16 -0
  370. package/build/esm/prod/sdk.js.map +1 -0
  371. package/build/esm/prod/transport.js +72 -0
  372. package/build/esm/prod/transport.js.map +1 -0
  373. package/build/esm/prod/utils/instrumentContext.js +61 -0
  374. package/build/esm/prod/utils/instrumentContext.js.map +1 -0
  375. package/build/esm/prod/utils/internalSqlQuery.js +23 -0
  376. package/build/esm/prod/utils/internalSqlQuery.js.map +1 -0
  377. package/build/esm/prod/utils/internalStorageKey.js +41 -0
  378. package/build/esm/prod/utils/internalStorageKey.js.map +1 -0
  379. package/build/esm/prod/utils/invocationScope.js +10 -0
  380. package/build/esm/prod/utils/invocationScope.js.map +1 -0
  381. package/build/esm/prod/utils/isBinding.js +29 -0
  382. package/build/esm/prod/utils/isBinding.js.map +1 -0
  383. package/build/esm/prod/utils/isCloudflareClass.js +21 -0
  384. package/build/esm/prod/utils/isCloudflareClass.js.map +1 -0
  385. package/build/esm/prod/utils/rpcMeta.js +35 -0
  386. package/build/esm/prod/utils/rpcMeta.js.map +1 -0
  387. package/build/esm/prod/utils/streaming.js +14 -0
  388. package/build/esm/prod/utils/streaming.js.map +1 -0
  389. package/build/esm/prod/utils/traceLinks.js +49 -0
  390. package/build/esm/prod/utils/traceLinks.js.map +1 -0
  391. package/build/esm/prod/vendor/stacktrace.js +25 -0
  392. package/build/esm/prod/vendor/stacktrace.js.map +1 -0
  393. package/build/esm/prod/vite/agentClass.js +111 -0
  394. package/build/esm/prod/vite/agentClass.js.map +1 -0
  395. package/build/esm/prod/vite/autoInstrument.js +92 -0
  396. package/build/esm/prod/vite/autoInstrument.js.map +1 -0
  397. package/build/esm/prod/vite/index.js +14 -0
  398. package/build/esm/prod/vite/index.js.map +1 -0
  399. package/build/esm/prod/vite/instrumentFile.js +27 -0
  400. package/build/esm/prod/vite/instrumentFile.js.map +1 -0
  401. package/build/esm/prod/vite/moduleShape.js +227 -0
  402. package/build/esm/prod/vite/moduleShape.js.map +1 -0
  403. package/build/esm/prod/vite/transform.js +147 -0
  404. package/build/esm/prod/vite/transform.js.map +1 -0
  405. package/build/esm/prod/vite/workerEntrypoint.js +64 -0
  406. package/build/esm/prod/vite/workerEntrypoint.js.map +1 -0
  407. package/build/esm/prod/vite/wranglerConfig.js +52 -0
  408. package/build/esm/prod/vite/wranglerConfig.js.map +1 -0
  409. package/build/esm/prod/withSentry.js +27 -0
  410. package/build/esm/prod/withSentry.js.map +1 -0
  411. package/build/esm/prod/workflows.js +136 -0
  412. package/build/esm/prod/workflows.js.map +1 -0
  413. package/build/esm/prod/wrapMethodWithSentry.js +132 -0
  414. package/build/esm/prod/wrapMethodWithSentry.js.map +1 -0
  415. package/build/types/baseSdk.d.ts +28 -0
  416. package/build/types/baseSdk.d.ts.map +1 -0
  417. package/build/types/client.d.ts +12 -39
  418. package/build/types/client.d.ts.map +1 -1
  419. package/build/types/defineCloudflareOptions.d.ts +2 -2
  420. package/build/types/defineCloudflareOptions.d.ts.map +1 -1
  421. package/build/types/durableobject.d.ts +5 -4
  422. package/build/types/durableobject.d.ts.map +1 -1
  423. package/build/types/index.d.ts +3 -5
  424. package/build/types/index.d.ts.map +1 -1
  425. package/build/types/instrumentations/agents/types.d.ts.map +1 -1
  426. package/build/types/instrumentations/instrumentDurableObjectStorage.d.ts.map +1 -1
  427. package/build/types/instrumentations/instrumentSqlStorage.d.ts.map +1 -1
  428. package/build/types/instrumentations/instrumentWorkerEntrypoint.d.ts +2 -1
  429. package/build/types/instrumentations/instrumentWorkerEntrypoint.d.ts.map +1 -1
  430. package/build/types/instrumentations/worker/instrumentD1.d.ts +0 -16
  431. package/build/types/instrumentations/worker/instrumentD1.d.ts.map +1 -1
  432. package/build/types/instrumentations/worker/instrumentEmail.d.ts +2 -2
  433. package/build/types/instrumentations/worker/instrumentEmail.d.ts.map +1 -1
  434. package/build/types/instrumentations/worker/instrumentEnv.d.ts.map +1 -1
  435. package/build/types/instrumentations/worker/instrumentFetch.d.ts +2 -2
  436. package/build/types/instrumentations/worker/instrumentFetch.d.ts.map +1 -1
  437. package/build/types/instrumentations/worker/instrumentQueue.d.ts +2 -2
  438. package/build/types/instrumentations/worker/instrumentQueue.d.ts.map +1 -1
  439. package/build/types/instrumentations/worker/instrumentScheduled.d.ts +2 -2
  440. package/build/types/instrumentations/worker/instrumentScheduled.d.ts.map +1 -1
  441. package/build/types/instrumentations/worker/instrumentTail.d.ts +2 -2
  442. package/build/types/instrumentations/worker/instrumentTail.d.ts.map +1 -1
  443. package/build/types/integrations/httpServer.d.ts.map +1 -1
  444. package/build/types/integrations/spotlight.d.ts +1 -1
  445. package/build/types/integrations/tracing/vercelai.d.ts +2 -10
  446. package/build/types/integrations/tracing/vercelai.d.ts.map +1 -1
  447. package/build/types/options.d.ts.map +1 -1
  448. package/build/types/pages-plugin.d.ts +1 -1
  449. package/build/types/pages-plugin.d.ts.map +1 -1
  450. package/build/types/request.d.ts +17 -2
  451. package/build/types/request.d.ts.map +1 -1
  452. package/build/types/sdk.d.ts +8 -3
  453. package/build/types/sdk.d.ts.map +1 -1
  454. package/build/types/transport.d.ts.map +1 -1
  455. package/build/types/types.d.ts +85 -0
  456. package/build/types/types.d.ts.map +1 -0
  457. package/build/types/utils/instrumentContext.d.ts.map +1 -1
  458. package/build/types/utils/isCloudflareClass.d.ts +1 -1
  459. package/build/types/utils/isCloudflareClass.d.ts.map +1 -1
  460. package/build/types/vite/autoInstrument.d.ts.map +1 -1
  461. package/build/types/vite/index.d.ts +37 -61
  462. package/build/types/vite/index.d.ts.map +1 -1
  463. package/build/types/withSentry.d.ts +2 -2
  464. package/build/types/withSentry.d.ts.map +1 -1
  465. package/build/types/workflows.d.ts +5 -4
  466. package/build/types/workflows.d.ts.map +1 -1
  467. package/package.json +28 -51
  468. package/build/cjs/async.js +0 -63
  469. package/build/cjs/async.js.map +0 -1
  470. package/build/cjs/client.js.map +0 -1
  471. package/build/cjs/debug-build.js.map +0 -1
  472. package/build/cjs/defineCloudflareOptions.js.map +0 -1
  473. package/build/cjs/durableobject.js.map +0 -1
  474. package/build/cjs/flush.js.map +0 -1
  475. package/build/cjs/instrument.js.map +0 -1
  476. package/build/cjs/instrumentations/agents/index.js.map +0 -1
  477. package/build/cjs/instrumentations/agents/instrumentAgentCallableRpc.js.map +0 -1
  478. package/build/cjs/instrumentations/agents/instrumentAgentRequestConversation.js.map +0 -1
  479. package/build/cjs/instrumentations/agents/instrumentChatAgentConversation.js.map +0 -1
  480. package/build/cjs/instrumentations/agents/types.js.map +0 -1
  481. package/build/cjs/instrumentations/instrumentDurableObjectNamespace.js.map +0 -1
  482. package/build/cjs/instrumentations/instrumentDurableObjectStorage.js.map +0 -1
  483. package/build/cjs/instrumentations/instrumentDurableObjectSyncKvStorage.js.map +0 -1
  484. package/build/cjs/instrumentations/instrumentSqlStorage.js.map +0 -1
  485. package/build/cjs/instrumentations/instrumentWorkerEntrypoint.js.map +0 -1
  486. package/build/cjs/instrumentations/worker/instrumentD1.js.map +0 -1
  487. package/build/cjs/instrumentations/worker/instrumentEmail.js.map +0 -1
  488. package/build/cjs/instrumentations/worker/instrumentEnv.js.map +0 -1
  489. package/build/cjs/instrumentations/worker/instrumentFetch.js.map +0 -1
  490. package/build/cjs/instrumentations/worker/instrumentFetcher.js.map +0 -1
  491. package/build/cjs/instrumentations/worker/instrumentQueue.js.map +0 -1
  492. package/build/cjs/instrumentations/worker/instrumentQueueProducer.js.map +0 -1
  493. package/build/cjs/instrumentations/worker/instrumentR2.js.map +0 -1
  494. package/build/cjs/instrumentations/worker/instrumentRateLimit.js.map +0 -1
  495. package/build/cjs/instrumentations/worker/instrumentScheduled.js.map +0 -1
  496. package/build/cjs/instrumentations/worker/instrumentTail.js.map +0 -1
  497. package/build/cjs/integrations/fetch.js.map +0 -1
  498. package/build/cjs/integrations/hono.js +0 -52
  499. package/build/cjs/integrations/hono.js.map +0 -1
  500. package/build/cjs/integrations/httpServer.js.map +0 -1
  501. package/build/cjs/integrations/spotlight.js.map +0 -1
  502. package/build/cjs/integrations/tracing/vercelai.js.map +0 -1
  503. package/build/cjs/nodejs_compat/integrations/tracing/vercelai.js.map +0 -1
  504. package/build/cjs/opentelemetry/tracer.js.map +0 -1
  505. package/build/cjs/options.js.map +0 -1
  506. package/build/cjs/pages-plugin.js.map +0 -1
  507. package/build/cjs/request.js.map +0 -1
  508. package/build/cjs/scope-utils.js.map +0 -1
  509. package/build/cjs/sdk.js.map +0 -1
  510. package/build/cjs/transport.js.map +0 -1
  511. package/build/cjs/utils/instrumentContext.js.map +0 -1
  512. package/build/cjs/utils/internalSqlQuery.js.map +0 -1
  513. package/build/cjs/utils/internalStorageKey.js.map +0 -1
  514. package/build/cjs/utils/invocationScope.js.map +0 -1
  515. package/build/cjs/utils/isBinding.js.map +0 -1
  516. package/build/cjs/utils/isCloudflareClass.js.map +0 -1
  517. package/build/cjs/utils/rpcMeta.js.map +0 -1
  518. package/build/cjs/utils/rpcOptions.js +0 -26
  519. package/build/cjs/utils/rpcOptions.js.map +0 -1
  520. package/build/cjs/utils/streaming.js.map +0 -1
  521. package/build/cjs/utils/traceLinks.js.map +0 -1
  522. package/build/cjs/vendor/stacktrace.js.map +0 -1
  523. package/build/cjs/vite/agentClass.js.map +0 -1
  524. package/build/cjs/vite/autoInstrument.js.map +0 -1
  525. package/build/cjs/vite/index.js.map +0 -1
  526. package/build/cjs/vite/instrumentFile.js.map +0 -1
  527. package/build/cjs/vite/moduleShape.js.map +0 -1
  528. package/build/cjs/vite/transform.js.map +0 -1
  529. package/build/cjs/vite/workerEntrypoint.js.map +0 -1
  530. package/build/cjs/vite/wranglerConfig.js.map +0 -1
  531. package/build/cjs/withSentry.js.map +0 -1
  532. package/build/cjs/workflows.js.map +0 -1
  533. package/build/cjs/wrapMethodWithSentry.js.map +0 -1
  534. package/build/esm/async.js +0 -61
  535. package/build/esm/async.js.map +0 -1
  536. package/build/esm/client.js.map +0 -1
  537. package/build/esm/debug-build.js.map +0 -1
  538. package/build/esm/defineCloudflareOptions.js.map +0 -1
  539. package/build/esm/durableobject.js.map +0 -1
  540. package/build/esm/flush.js.map +0 -1
  541. package/build/esm/index.js +0 -17
  542. package/build/esm/instrument.js.map +0 -1
  543. package/build/esm/instrumentations/agents/index.js.map +0 -1
  544. package/build/esm/instrumentations/agents/instrumentAgentCallableRpc.js.map +0 -1
  545. package/build/esm/instrumentations/agents/instrumentAgentRequestConversation.js.map +0 -1
  546. package/build/esm/instrumentations/agents/instrumentChatAgentConversation.js.map +0 -1
  547. package/build/esm/instrumentations/agents/types.js.map +0 -1
  548. package/build/esm/instrumentations/instrumentDurableObjectNamespace.js.map +0 -1
  549. package/build/esm/instrumentations/instrumentDurableObjectStorage.js.map +0 -1
  550. package/build/esm/instrumentations/instrumentDurableObjectSyncKvStorage.js.map +0 -1
  551. package/build/esm/instrumentations/instrumentSqlStorage.js.map +0 -1
  552. package/build/esm/instrumentations/instrumentWorkerEntrypoint.js.map +0 -1
  553. package/build/esm/instrumentations/worker/instrumentD1.js.map +0 -1
  554. package/build/esm/instrumentations/worker/instrumentEmail.js.map +0 -1
  555. package/build/esm/instrumentations/worker/instrumentEnv.js.map +0 -1
  556. package/build/esm/instrumentations/worker/instrumentFetch.js.map +0 -1
  557. package/build/esm/instrumentations/worker/instrumentFetcher.js.map +0 -1
  558. package/build/esm/instrumentations/worker/instrumentQueue.js.map +0 -1
  559. package/build/esm/instrumentations/worker/instrumentQueueProducer.js.map +0 -1
  560. package/build/esm/instrumentations/worker/instrumentR2.js.map +0 -1
  561. package/build/esm/instrumentations/worker/instrumentRateLimit.js.map +0 -1
  562. package/build/esm/instrumentations/worker/instrumentScheduled.js.map +0 -1
  563. package/build/esm/instrumentations/worker/instrumentTail.js.map +0 -1
  564. package/build/esm/integrations/fetch.js.map +0 -1
  565. package/build/esm/integrations/hono.js +0 -49
  566. package/build/esm/integrations/hono.js.map +0 -1
  567. package/build/esm/integrations/httpServer.js.map +0 -1
  568. package/build/esm/integrations/spotlight.js.map +0 -1
  569. package/build/esm/integrations/tracing/vercelai.js.map +0 -1
  570. package/build/esm/nodejs_compat/index.js +0 -18
  571. package/build/esm/nodejs_compat/integrations/tracing/vercelai.js +0 -16
  572. package/build/esm/nodejs_compat/integrations/tracing/vercelai.js.map +0 -1
  573. package/build/esm/opentelemetry/tracer.js.map +0 -1
  574. package/build/esm/options.js.map +0 -1
  575. package/build/esm/package.json +0 -1
  576. package/build/esm/pages-plugin.js.map +0 -1
  577. package/build/esm/request.js.map +0 -1
  578. package/build/esm/scope-utils.js.map +0 -1
  579. package/build/esm/sdk.js.map +0 -1
  580. package/build/esm/transport.js.map +0 -1
  581. package/build/esm/utils/instrumentContext.js.map +0 -1
  582. package/build/esm/utils/internalSqlQuery.js.map +0 -1
  583. package/build/esm/utils/internalStorageKey.js.map +0 -1
  584. package/build/esm/utils/invocationScope.js.map +0 -1
  585. package/build/esm/utils/isBinding.js.map +0 -1
  586. package/build/esm/utils/isCloudflareClass.js.map +0 -1
  587. package/build/esm/utils/rpcMeta.js.map +0 -1
  588. package/build/esm/utils/rpcOptions.js +0 -24
  589. package/build/esm/utils/rpcOptions.js.map +0 -1
  590. package/build/esm/utils/streaming.js.map +0 -1
  591. package/build/esm/utils/traceLinks.js.map +0 -1
  592. package/build/esm/vendor/stacktrace.js.map +0 -1
  593. package/build/esm/vite/agentClass.js.map +0 -1
  594. package/build/esm/vite/autoInstrument.js.map +0 -1
  595. package/build/esm/vite/index.js.map +0 -1
  596. package/build/esm/vite/instrumentFile.js.map +0 -1
  597. package/build/esm/vite/moduleShape.js.map +0 -1
  598. package/build/esm/vite/transform.js.map +0 -1
  599. package/build/esm/vite/workerEntrypoint.js.map +0 -1
  600. package/build/esm/vite/wranglerConfig.js.map +0 -1
  601. package/build/esm/withSentry.js.map +0 -1
  602. package/build/esm/workflows.js.map +0 -1
  603. package/build/esm/wrapMethodWithSentry.js.map +0 -1
  604. package/build/types/async.d.ts +0 -11
  605. package/build/types/async.d.ts.map +0 -1
  606. package/build/types/integrations/hono.d.ts +0 -42
  607. package/build/types/integrations/hono.d.ts.map +0 -1
  608. package/build/types/nodejs_compat/index.d.ts +0 -4
  609. package/build/types/nodejs_compat/index.d.ts.map +0 -1
  610. package/build/types/nodejs_compat/integrations/tracing/vercelai.d.ts +0 -37
  611. package/build/types/nodejs_compat/integrations/tracing/vercelai.d.ts.map +0 -1
  612. package/build/types/utils/rpcOptions.d.ts +0 -13
  613. package/build/types/utils/rpcOptions.d.ts.map +0 -1
  614. package/build/types-ts3.8/async.d.ts +0 -11
  615. package/build/types-ts3.8/client.d.ts +0 -203
  616. package/build/types-ts3.8/debug-build.d.ts +0 -7
  617. package/build/types-ts3.8/defineCloudflareOptions.d.ts +0 -38
  618. package/build/types-ts3.8/durableobject.d.ts +0 -127
  619. package/build/types-ts3.8/executionContext.d.ts +0 -13
  620. package/build/types-ts3.8/flush.d.ts +0 -47
  621. package/build/types-ts3.8/index.d.ts +0 -19
  622. package/build/types-ts3.8/instrument.d.ts +0 -20
  623. package/build/types-ts3.8/instrumentations/agents/index.d.ts +0 -25
  624. package/build/types-ts3.8/instrumentations/agents/instrumentAgentCallableRpc.d.ts +0 -14
  625. package/build/types-ts3.8/instrumentations/agents/instrumentAgentRequestConversation.d.ts +0 -16
  626. package/build/types-ts3.8/instrumentations/agents/instrumentChatAgentConversation.d.ts +0 -23
  627. package/build/types-ts3.8/instrumentations/agents/types.d.ts +0 -94
  628. package/build/types-ts3.8/instrumentations/instrumentDurableObjectNamespace.d.ts +0 -13
  629. package/build/types-ts3.8/instrumentations/instrumentDurableObjectStorage.d.ts +0 -19
  630. package/build/types-ts3.8/instrumentations/instrumentDurableObjectSyncKvStorage.d.ts +0 -3
  631. package/build/types-ts3.8/instrumentations/instrumentSqlStorage.d.ts +0 -9
  632. package/build/types-ts3.8/instrumentations/instrumentWorkerEntrypoint.d.ts +0 -42
  633. package/build/types-ts3.8/instrumentations/worker/instrumentD1.d.ts +0 -19
  634. package/build/types-ts3.8/instrumentations/worker/instrumentEmail.d.ts +0 -8
  635. package/build/types-ts3.8/instrumentations/worker/instrumentEnv.d.ts +0 -18
  636. package/build/types-ts3.8/instrumentations/worker/instrumentFetch.d.ts +0 -12
  637. package/build/types-ts3.8/instrumentations/worker/instrumentFetcher.d.ts +0 -10
  638. package/build/types-ts3.8/instrumentations/worker/instrumentQueue.d.ts +0 -12
  639. package/build/types-ts3.8/instrumentations/worker/instrumentQueueProducer.d.ts +0 -10
  640. package/build/types-ts3.8/instrumentations/worker/instrumentR2.d.ts +0 -9
  641. package/build/types-ts3.8/instrumentations/worker/instrumentRateLimit.d.ts +0 -6
  642. package/build/types-ts3.8/instrumentations/worker/instrumentScheduled.d.ts +0 -12
  643. package/build/types-ts3.8/instrumentations/worker/instrumentTail.d.ts +0 -12
  644. package/build/types-ts3.8/integrations/fetch.d.ts +0 -19
  645. package/build/types-ts3.8/integrations/hono.d.ts +0 -42
  646. package/build/types-ts3.8/integrations/httpServer.d.ts +0 -63
  647. package/build/types-ts3.8/integrations/spotlight.d.ts +0 -22
  648. package/build/types-ts3.8/integrations/tracing/vercelai.d.ts +0 -47
  649. package/build/types-ts3.8/nodejs_compat/index.d.ts +0 -4
  650. package/build/types-ts3.8/nodejs_compat/integrations/tracing/vercelai.d.ts +0 -37
  651. package/build/types-ts3.8/opentelemetry/tracer.d.ts +0 -6
  652. package/build/types-ts3.8/options.d.ts +0 -17
  653. package/build/types-ts3.8/pages-plugin.d.ts +0 -34
  654. package/build/types-ts3.8/request.d.ts +0 -25
  655. package/build/types-ts3.8/scope-utils.d.ts +0 -15
  656. package/build/types-ts3.8/sdk.d.ts +0 -10
  657. package/build/types-ts3.8/transport.d.ts +0 -34
  658. package/build/types-ts3.8/utils/instrumentContext.d.ts +0 -16
  659. package/build/types-ts3.8/utils/internalSqlQuery.d.ts +0 -20
  660. package/build/types-ts3.8/utils/internalStorageKey.d.ts +0 -22
  661. package/build/types-ts3.8/utils/invocationScope.d.ts +0 -24
  662. package/build/types-ts3.8/utils/isBinding.d.ts +0 -77
  663. package/build/types-ts3.8/utils/isCloudflareClass.d.ts +0 -30
  664. package/build/types-ts3.8/utils/rpcMeta.d.ts +0 -23
  665. package/build/types-ts3.8/utils/rpcOptions.d.ts +0 -13
  666. package/build/types-ts3.8/utils/streaming.d.ts +0 -17
  667. package/build/types-ts3.8/utils/traceLinks.d.ts +0 -28
  668. package/build/types-ts3.8/vendor/stacktrace.d.ts +0 -11
  669. package/build/types-ts3.8/vite/agentClass.d.ts +0 -41
  670. package/build/types-ts3.8/vite/autoInstrument.d.ts +0 -22
  671. package/build/types-ts3.8/vite/index.d.ts +0 -98
  672. package/build/types-ts3.8/vite/instrumentFile.d.ts +0 -22
  673. package/build/types-ts3.8/vite/moduleShape.d.ts +0 -52
  674. package/build/types-ts3.8/vite/transform.d.ts +0 -65
  675. package/build/types-ts3.8/vite/workerEntrypoint.d.ts +0 -12
  676. package/build/types-ts3.8/vite/wranglerConfig.d.ts +0 -43
  677. package/build/types-ts3.8/withSentry.d.ts +0 -16
  678. package/build/types-ts3.8/workflows.d.ts +0 -25
  679. package/build/types-ts3.8/wrapMethodWithSentry.d.ts +0 -43
  680. /package/build/cjs/{client.js → dev/client.js} +0 -0
  681. /package/build/cjs/{debug-build.js → dev/debug-build.js} +0 -0
  682. /package/build/cjs/{defineCloudflareOptions.js → dev/defineCloudflareOptions.js} +0 -0
  683. /package/build/cjs/{flush.js → dev/flush.js} +0 -0
  684. /package/build/cjs/{instrument.js → dev/instrument.js} +0 -0
  685. /package/build/cjs/{instrumentations → dev/instrumentations}/agents/index.js +0 -0
  686. /package/build/cjs/{instrumentations → dev/instrumentations}/agents/instrumentAgentCallableRpc.js +0 -0
  687. /package/build/cjs/{instrumentations → dev/instrumentations}/agents/instrumentAgentRequestConversation.js +0 -0
  688. /package/build/cjs/{instrumentations → dev/instrumentations}/agents/instrumentChatAgentConversation.js +0 -0
  689. /package/build/cjs/{instrumentations → dev/instrumentations}/instrumentDurableObjectNamespace.js +0 -0
  690. /package/build/cjs/{instrumentations → dev/instrumentations}/instrumentDurableObjectStorage.js +0 -0
  691. /package/build/cjs/{instrumentations → dev/instrumentations}/instrumentDurableObjectSyncKvStorage.js +0 -0
  692. /package/build/cjs/{instrumentations → dev/instrumentations}/instrumentSqlStorage.js +0 -0
  693. /package/build/cjs/{instrumentations → dev/instrumentations}/worker/instrumentFetcher.js +0 -0
  694. /package/build/cjs/{instrumentations → dev/instrumentations}/worker/instrumentQueueProducer.js +0 -0
  695. /package/build/cjs/{instrumentations → dev/instrumentations}/worker/instrumentR2.js +0 -0
  696. /package/build/cjs/{instrumentations → dev/instrumentations}/worker/instrumentRateLimit.js +0 -0
  697. /package/build/cjs/{instrumentations → dev/instrumentations}/worker/instrumentTail.js +0 -0
  698. /package/build/cjs/{integrations → dev/integrations}/spotlight.js +0 -0
  699. /package/build/cjs/{opentelemetry → dev/opentelemetry}/tracer.js +0 -0
  700. /package/build/cjs/{scope-utils.js → dev/scope-utils.js} +0 -0
  701. /package/build/cjs/{transport.js → dev/transport.js} +0 -0
  702. /package/build/cjs/{utils → dev/utils}/internalSqlQuery.js +0 -0
  703. /package/build/cjs/{utils → dev/utils}/internalStorageKey.js +0 -0
  704. /package/build/cjs/{utils → dev/utils}/invocationScope.js +0 -0
  705. /package/build/cjs/{utils → dev/utils}/isBinding.js +0 -0
  706. /package/build/cjs/{utils → dev/utils}/isCloudflareClass.js +0 -0
  707. /package/build/cjs/{utils → dev/utils}/rpcMeta.js +0 -0
  708. /package/build/cjs/{utils → dev/utils}/streaming.js +0 -0
  709. /package/build/cjs/{utils → dev/utils}/traceLinks.js +0 -0
  710. /package/build/cjs/{vendor → dev/vendor}/stacktrace.js +0 -0
  711. /package/build/cjs/{vite → dev/vite}/agentClass.js +0 -0
  712. /package/build/cjs/{vite → dev/vite}/autoInstrument.js +0 -0
  713. /package/build/cjs/{vite → dev/vite}/instrumentFile.js +0 -0
  714. /package/build/cjs/{vite → dev/vite}/moduleShape.js +0 -0
  715. /package/build/cjs/{vite → dev/vite}/transform.js +0 -0
  716. /package/build/cjs/{vite → dev/vite}/workerEntrypoint.js +0 -0
  717. /package/build/cjs/{vite → dev/vite}/wranglerConfig.js +0 -0
  718. /package/build/cjs/{wrapMethodWithSentry.js → dev/wrapMethodWithSentry.js} +0 -0
  719. /package/build/esm/{client.js → dev/client.js} +0 -0
  720. /package/build/esm/{debug-build.js → dev/debug-build.js} +0 -0
  721. /package/build/esm/{defineCloudflareOptions.js → dev/defineCloudflareOptions.js} +0 -0
  722. /package/build/esm/{flush.js → dev/flush.js} +0 -0
  723. /package/build/esm/{instrument.js → dev/instrument.js} +0 -0
  724. /package/build/esm/{instrumentations → dev/instrumentations}/agents/index.js +0 -0
  725. /package/build/esm/{instrumentations → dev/instrumentations}/agents/instrumentAgentCallableRpc.js +0 -0
  726. /package/build/esm/{instrumentations → dev/instrumentations}/agents/instrumentAgentRequestConversation.js +0 -0
  727. /package/build/esm/{instrumentations → dev/instrumentations}/agents/instrumentChatAgentConversation.js +0 -0
  728. /package/build/esm/{instrumentations → dev/instrumentations}/instrumentDurableObjectNamespace.js +0 -0
  729. /package/build/esm/{instrumentations → dev/instrumentations}/instrumentDurableObjectStorage.js +0 -0
  730. /package/build/esm/{instrumentations → dev/instrumentations}/instrumentDurableObjectSyncKvStorage.js +0 -0
  731. /package/build/esm/{instrumentations → dev/instrumentations}/instrumentSqlStorage.js +0 -0
  732. /package/build/esm/{instrumentations → dev/instrumentations}/worker/instrumentFetcher.js +0 -0
  733. /package/build/esm/{instrumentations → dev/instrumentations}/worker/instrumentQueueProducer.js +0 -0
  734. /package/build/esm/{instrumentations → dev/instrumentations}/worker/instrumentR2.js +0 -0
  735. /package/build/esm/{instrumentations → dev/instrumentations}/worker/instrumentRateLimit.js +0 -0
  736. /package/build/esm/{instrumentations → dev/instrumentations}/worker/instrumentTail.js +0 -0
  737. /package/build/esm/{integrations → dev/integrations}/spotlight.js +0 -0
  738. /package/build/esm/{opentelemetry → dev/opentelemetry}/tracer.js +0 -0
  739. /package/build/esm/{scope-utils.js → dev/scope-utils.js} +0 -0
  740. /package/build/esm/{transport.js → dev/transport.js} +0 -0
  741. /package/build/esm/{utils → dev/utils}/internalSqlQuery.js +0 -0
  742. /package/build/esm/{utils → dev/utils}/internalStorageKey.js +0 -0
  743. /package/build/esm/{utils → dev/utils}/invocationScope.js +0 -0
  744. /package/build/esm/{utils → dev/utils}/isBinding.js +0 -0
  745. /package/build/esm/{utils → dev/utils}/isCloudflareClass.js +0 -0
  746. /package/build/esm/{utils → dev/utils}/rpcMeta.js +0 -0
  747. /package/build/esm/{utils → dev/utils}/streaming.js +0 -0
  748. /package/build/esm/{vendor → dev/vendor}/stacktrace.js +0 -0
  749. /package/build/esm/{vite → dev/vite}/agentClass.js +0 -0
  750. /package/build/esm/{vite → dev/vite}/autoInstrument.js +0 -0
  751. /package/build/esm/{vite → dev/vite}/instrumentFile.js +0 -0
  752. /package/build/esm/{vite → dev/vite}/moduleShape.js +0 -0
  753. /package/build/esm/{vite → dev/vite}/transform.js +0 -0
  754. /package/build/esm/{vite → dev/vite}/workerEntrypoint.js +0 -0
  755. /package/build/esm/{vite → dev/vite}/wranglerConfig.js +0 -0
  756. /package/build/esm/{wrapMethodWithSentry.js → dev/wrapMethodWithSentry.js} +0 -0
@@ -1,94 +0,0 @@
1
- import { InstrumentedDurableObjectState } from '../../wrapMethodWithSentry';
2
- export declare const AGENT_SPAN_ORIGIN = "auto.faas.cloudflare.agents";
3
- /** DO storage key under which the conversation id is persisted so it survives hibernation. */
4
- export declare const AGENT_CONVERSATION_ID_STORAGE_KEY = "__SENTRY_AGENT_CONVERSATION_ID__";
5
- /**
6
- * Instance keys for our conversation-id bookkeeping, keyed by symbol so the state stays invisible
7
- * to anything enumerating the user-owned agent instance (`Object.keys`, `JSON.stringify`, spread).
8
- * Exported because the exported `AgentInternals` interface references them.
9
- */
10
- export declare const AGENT_CONVERSATION_ID_SYMBOL: unique symbol;
11
- export declare const AGENT_APPLIED_CONVERSATION_ID_SYMBOL: unique symbol;
12
- /**
13
- * The subset of the `agents` `Agent` instance internals that we instrument. These are runtime
14
- * implementation details of the `agents` package (v0.13.x) rather than part of its public type
15
- * surface, so every access is guarded and wrapping degrades gracefully if a name changes upstream.
16
- */
17
- export interface AgentInternals {
18
- /** Central choke-point through which all `agents:*` observability events are published. */
19
- _emit?: (type: string, payload?: Record<string, unknown>) => void;
20
- /** WebSocket message handler; dispatches `@callable()` RPC requests. */
21
- onMessage?: (...args: unknown[]) => unknown;
22
- /**
23
- * Chat-turn handler. Only `AIChatAgent` (from `@cloudflare/ai-chat`) defines this; a plain `Agent`
24
- * does not, so its presence discriminates a chat agent.
25
- */
26
- onChatMessage?: (...args: unknown[]) => unknown;
27
- /** HTTP request handler; the router sends every non-WebSocket request here. */
28
- onRequest?: (...args: unknown[]) => unknown;
29
- /** The user's Agent class (used by the SDK for the observability event `agent` field). */
30
- _ParentClass?: {
31
- name?: string;
32
- };
33
- /** The Agent instance name, reported as the `cloudflare.agent.name` span attribute. */
34
- name?: string;
35
- /**
36
- * The Durable Object state of the instance. Present on every real Agent; guarded like the other
37
- * internals so partially-mocked instances keep working.
38
- */
39
- ctx?: InstrumentedDurableObjectState;
40
- /**
41
- * The current conversation id for this agent instance. It is cached in memory after being loaded
42
- * from Durable Object storage and updated when the conversation rotates. `undefined` means storage
43
- * has not been read yet.
44
- */
45
- [AGENT_CONVERSATION_ID_SYMBOL]?: string;
46
- /**
47
- * The conversation id this instrumentation most recently applied to the isolation scope. It lets
48
- * subsequent units of work distinguish an SDK-applied id, which may be replaced after rotation,
49
- * from an id explicitly set by the user, which must be preserved.
50
- */
51
- [AGENT_APPLIED_CONVERSATION_ID_SYMBOL]?: string;
52
- }
53
- /** Reads best-effort agent identity attributes from the instance, tolerating missing internals. */
54
- export declare function getAgentAttributes(instance: AgentInternals): Record<string, string>;
55
- /**
56
- * Persists the conversation id to Durable Object storage, so it survives hibernation, and updates
57
- * the in-memory cache synchronously so the current wake is immediately consistent even if the
58
- * write fails. Uses the async storage API, which exists on KV- and SQLite-backed DOs alike.
59
- * The write is fire-and-forget: DO storage writes are tracked by the runtime and land without
60
- * awaiting (`waitUntil` is a no-op in Durable Objects), and the catch keeps a rejection from
61
- * surfacing as unhandled — a failed write just means the next wake starts a new conversation,
62
- * which must never throw into user code. Uses the original uninstrumented storage so internal
63
- * bookkeeping doesn't create spans.
64
- */
65
- export declare function storeAgentConversationId(instance: AgentInternals, conversationId: string): void;
66
- /**
67
- * Sets the agent instance's conversation id on the active scope for the duration of the
68
- * surrounding unit of work (chat turn, callable RPC call, HTTP request). In the Agents model one
69
- * instance is one long-lived conversation, so the id is minted once per instance and persisted to
70
- * DO storage — for chat and plain agents alike, since plain agents run LLM calls too (e.g. inside
71
- * `@callable()` methods). The instance `name` is deliberately not used: it is caller-chosen and can
72
- * be a stable, guessable, or shared value, whereas a conversation id should identify exactly one
73
- * conversation. Clearing the chat rotates it (see `storeAgentConversationId`) so subsequent LLM
74
- * calls group under the fresh conversation.
75
- *
76
- * Every handler wrapper awaits this before invoking the original, so the id is on the scope before
77
- * the unit of work — and any `gen_ai` span it creates — starts. Only the first unit of work per wake
78
- * pays the storage read; the rest resolve from the in-memory cache. Awaiting is safe on all three
79
- * paths because the `agents` `Agent` constructor already replaces `onMessage` and `onRequest` with
80
- * `async` wrappers of its own, and `onChatMessage` is async by contract, so every caller upstream
81
- * already handles a promise.
82
- *
83
- * An id the user set explicitly outranks this inferred one, in either order: a `setConversationId()`
84
- * call that already happened is detected here and left alone, and one made inside the handler lands
85
- * on the same scope afterwards and therefore wins. That is why the write targets the isolation scope
86
- * — it is the scope the public `Sentry.setConversationId()` writes to, and `conversationIdIntegration`
87
- * prefers the current scope over it, so writing there would make a user's call unoverridable.
88
- *
89
- * `conversationIdIntegration` reads the id off the scope at `spanStart` and stamps
90
- * `gen_ai.conversation.id` onto AI spans created within the unit of work, correlating its model and
91
- * tool calls.
92
- */
93
- export declare function setAgentConversationId(instance: AgentInternals): Promise<void>;
94
- //# sourceMappingURL=types.d.ts.map
@@ -1,13 +0,0 @@
1
- import { DurableObjectNamespace } from '@cloudflare/workers-types';
2
- export declare const STUB_NON_RPC_METHODS: Set<string>;
3
- /**
4
- * Instruments a DurableObjectNamespace binding to create spans for DO interactions.
5
- *
6
- * Wraps:
7
- * - `namespace.get(id)` / `namespace.getByName(name)` with a span + instruments returned stub
8
- * - `namespace.idFromName(name)` / `namespace.idFromString(id)` / `namespace.newUniqueId()` with breadcrumbs
9
- *
10
- * @param namespace - The DurableObjectNamespace to instrument
11
- */
12
- export declare function instrumentDurableObjectNamespace(namespace: DurableObjectNamespace): DurableObjectNamespace;
13
- //# sourceMappingURL=instrumentDurableObjectNamespace.d.ts.map
@@ -1,19 +0,0 @@
1
- import { DurableObjectStorage } from '@cloudflare/workers-types';
2
- type WaitUntil = (promise: Promise<unknown>) => void;
3
- /**
4
- * Instruments DurableObjectStorage methods with Sentry spans.
5
- *
6
- * Wraps the following async methods:
7
- * - get, put, delete, list (KV API)
8
- * - setAlarm, getAlarm, deleteAlarm (Alarm API)
9
- *
10
- * When setAlarm is called, it also stores the current span context so that when
11
- * the alarm fires later, it can link back to the trace that called setAlarm.
12
- *
13
- * @param storage - The DurableObjectStorage instance to instrument
14
- * @param waitUntil - Optional waitUntil function to defer span context storage
15
- * @returns An instrumented DurableObjectStorage instance
16
- */
17
- export declare function instrumentDurableObjectStorage(storage: DurableObjectStorage, waitUntil?: WaitUntil): DurableObjectStorage;
18
- export {};
19
- //# sourceMappingURL=instrumentDurableObjectStorage.d.ts.map
@@ -1,3 +0,0 @@
1
- import { SyncKvStorage } from '@cloudflare/workers-types';
2
- export declare function instrumentDurableObjectSyncKvStorage(syncKv: SyncKvStorage): SyncKvStorage;
3
- //# sourceMappingURL=instrumentDurableObjectSyncKvStorage.d.ts.map
@@ -1,9 +0,0 @@
1
- import { SqlStorage } from '@cloudflare/workers-types';
2
- /**
3
- * Instruments the Durable Object SqlStorage `exec` method with Sentry spans.
4
- *
5
- * @param sql - The SqlStorage instance to instrument
6
- * @returns An instrumented SqlStorage instance
7
- */
8
- export declare function instrumentSqlStorage(sql: SqlStorage): SqlStorage;
9
- //# sourceMappingURL=instrumentSqlStorage.d.ts.map
@@ -1,42 +0,0 @@
1
- import { WorkerEntrypoint } from 'cloudflare:workers';
2
- import { CloudflareOptions } from '../client';
3
- export type WorkerEntrypointConstructor<Env = unknown, Props = {}> = new (ctx: ExecutionContext, env: any) => InstanceType<typeof WorkerEntrypoint<Env, Props>>;
4
- /**
5
- * Instruments a WorkerEntrypoint class to capture errors and performance data.
6
- *
7
- * Instruments the following methods (same as `withSentry` for ExportedHandler):
8
- * - fetch (HTTP requests)
9
- * - scheduled (cron triggers)
10
- * - queue (queue consumers)
11
- * - email (email handlers)
12
- * - tail (tail workers)
13
- *
14
- * as well as any other public RPC methods on the WorkerEntrypoint instance.
15
- *
16
- * @param optionsCallback Function that returns the options for the SDK initialization.
17
- * @param WorkerEntrypointClass The WorkerEntrypoint class to instrument.
18
- * @returns The instrumented WorkerEntrypoint class.
19
- *
20
- * @example
21
- * ```ts
22
- * class MyWorkerBase extends WorkerEntrypoint<Env> {
23
- * async fetch(request: Request): Promise<Response> {
24
- * return new Response('Hello World!');
25
- * }
26
- *
27
- * async myRpcMethod(arg: string): Promise<string> {
28
- * return `Hello ${arg}!`;
29
- * }
30
- * }
31
- *
32
- * export default instrumentWorkerEntrypoint(
33
- * env => ({
34
- * dsn: env.SENTRY_DSN,
35
- * tracesSampleRate: 1.0,
36
- * }),
37
- * MyWorkerBase,
38
- * );
39
- * ```
40
- */
41
- export declare function instrumentWorkerEntrypoint<Env, Props, T extends InstanceType<typeof WorkerEntrypoint<Env, Props>>, C extends new (ctx: ExecutionContext, env: Env) => T>(optionsCallback: (env: Env) => CloudflareOptions | undefined, WorkerEntrypointClass: C): C;
42
- //# sourceMappingURL=instrumentWorkerEntrypoint.d.ts.map
@@ -1,19 +0,0 @@
1
- import { D1Database } from '@cloudflare/workers-types';
2
- export declare function instrumentD1(db: D1Database): D1Database;
3
- /**
4
- * Instruments Cloudflare D1 bindings with Sentry.
5
- *
6
- * @deprecated `withSentry()` automatically instruments all D1 bindings via `env`
7
- * so this function is not needed anymore. It will be removed in the next major version of the SDK.
8
- *
9
- * @example
10
- *
11
- * ```js
12
- * // env.DB is the D1 DB binding configured in your `wrangler.toml`
13
- * const db = instrumentD1WithSentry(env.DB);
14
- * // Now you can use the database as usual
15
- * await db.prepare('SELECT * FROM table WHERE id = ?').bind(1).run();
16
- * ```
17
- */
18
- export declare function instrumentD1WithSentry(db: D1Database): D1Database;
19
- //# sourceMappingURL=instrumentD1.d.ts.map
@@ -1,8 +0,0 @@
1
- import { ExportedHandler } from '@cloudflare/workers-types';
2
- import { env as cloudflareEnv } from 'cloudflare:workers';
3
- import { CloudflareOptions } from '../../client';
4
- /**
5
- * Instruments an email handler for ExportedHandler (env/ctx come from args).
6
- */
7
- export declare function instrumentExportedHandlerEmail<T extends ExportedHandler<any, any, any>>(handler: T, optionsCallback: (env: typeof cloudflareEnv) => CloudflareOptions | undefined): void;
8
- //# sourceMappingURL=instrumentEmail.d.ts.map
@@ -1,18 +0,0 @@
1
- import { CloudflareOptions } from '../../client';
2
- /**
3
- * Wraps the Cloudflare `env` object in a Proxy that detects binding types
4
- * on property access and returns instrumented versions.
5
- *
6
- * Currently detects:
7
- * - DurableObjectNamespace (via `idFromName` duck-typing)
8
- * - Service bindings / JSRPC proxies
9
- * - Queue producers (via `send` + `sendBatch` duck-typing)
10
- * - R2 Buckets (via `head` + `put` + `createMultipartUpload` duck-typing)
11
- * - Rate limiters (via `limit` duck-typing)
12
- * - Workers AI (via `run` + `gateway` + `toMarkdown` duck-typing)
13
- *
14
- * @param env - The Cloudflare env object to instrument
15
- * @param options - Optional CloudflareOptions to control RPC trace propagation
16
- */
17
- export declare function instrumentEnv<Env extends Record<string, unknown>>(env: Env, options?: CloudflareOptions): Env;
18
- //# sourceMappingURL=instrumentEnv.d.ts.map
@@ -1,12 +0,0 @@
1
- import { ExportedHandler } from '@cloudflare/workers-types';
2
- import { env as cloudflareEnv, WorkerEntrypoint } from 'cloudflare:workers';
3
- import { CloudflareOptions } from '../../client';
4
- /**
5
- * Instruments a fetch handler for ExportedHandler (env/ctx come from args).
6
- */
7
- export declare function instrumentExportedHandlerFetch<T extends ExportedHandler<any, any, any>>(handler: T, optionsCallback: (env: typeof cloudflareEnv) => CloudflareOptions | undefined): void;
8
- /**
9
- * Instruments a fetch method for WorkerEntrypoint (options/context already available).
10
- */
11
- export declare function instrumentWorkerEntrypointFetch<T extends WorkerEntrypoint>(instance: T, options: CloudflareOptions, context: ExecutionContext): void;
12
- //# sourceMappingURL=instrumentFetch.d.ts.map
@@ -1,10 +0,0 @@
1
- import { Fetcher } from '@cloudflare/workers-types';
2
- /**
3
- * Wraps a fetch-like function to create a span and propagate trace headers
4
- * (`sentry-trace` and `baggage`) on the outgoing request.
5
- *
6
- * Useful for instrumenting Cloudflare bindings that expose a `fetch` method
7
- * (e.g. Durable Object stubs, Service bindings).
8
- */
9
- export declare function instrumentFetcher(fetchFn: Fetcher['fetch']): Fetcher['fetch'];
10
- //# sourceMappingURL=instrumentFetcher.d.ts.map
@@ -1,12 +0,0 @@
1
- import { ExportedHandler } from '@cloudflare/workers-types';
2
- import { env as cloudflareEnv, WorkerEntrypoint } from 'cloudflare:workers';
3
- import { CloudflareOptions } from '../../client';
4
- /**
5
- * Instruments a queue handler for ExportedHandler (env/ctx come from args).
6
- */
7
- export declare function instrumentExportedHandlerQueue<T extends ExportedHandler<any, any, any>>(handler: T, optionsCallback: (env: typeof cloudflareEnv) => CloudflareOptions | undefined): void;
8
- /**
9
- * Instruments a queue method for WorkerEntrypoint (options/context already available).
10
- */
11
- export declare function instrumentWorkerEntrypointQueue<T extends WorkerEntrypoint>(instance: T, options: CloudflareOptions, context: ExecutionContext): void;
12
- //# sourceMappingURL=instrumentQueue.d.ts.map
@@ -1,10 +0,0 @@
1
- import { Queue } from '@cloudflare/workers-types';
2
- /**
3
- * Wraps a Queue producer binding to create `queue.publish` spans on
4
- * `send` and `sendBatch` calls.
5
- *
6
- * The queue's own name is not available on the binding object, so we use
7
- * the env binding key (e.g. `MY_QUEUE`) as `messaging.destination.name`.
8
- */
9
- export declare function instrumentQueueProducer<T extends Queue>(queue: T, bindingName: string): T;
10
- //# sourceMappingURL=instrumentQueueProducer.d.ts.map
@@ -1,9 +0,0 @@
1
- import { R2Bucket } from '@cloudflare/workers-types';
2
- /**
3
- * Wraps a Cloudflare R2 Bucket binding to create spans on bucket operations.
4
- *
5
- * Instrumented methods: get, head, put, delete, list, createMultipartUpload,
6
- * resumeMultipartUpload (and the resulting multipart upload operations).
7
- */
8
- export declare function instrumentR2Bucket<T extends R2Bucket>(bucket: T, bindingName: string): T;
9
- //# sourceMappingURL=instrumentR2.d.ts.map
@@ -1,6 +0,0 @@
1
- import { RateLimit } from '@cloudflare/workers-types';
2
- /**
3
- * Wraps a Cloudflare rate limiter binding to create a span on each `limit()` call.
4
- */
5
- export declare function instrumentRateLimit<T extends RateLimit>(rateLimit: T, bindingName: string): T;
6
- //# sourceMappingURL=instrumentRateLimit.d.ts.map
@@ -1,12 +0,0 @@
1
- import { ExportedHandler } from '@cloudflare/workers-types';
2
- import { env as cloudflareEnv, WorkerEntrypoint } from 'cloudflare:workers';
3
- import { CloudflareOptions } from '../../client';
4
- /**
5
- * Instruments a scheduled handler for ExportedHandler (env/ctx come from args).
6
- */
7
- export declare function instrumentExportedHandlerScheduled<T extends ExportedHandler<any, any, any>>(handler: T, optionsCallback: (env: typeof cloudflareEnv) => CloudflareOptions | undefined): void;
8
- /**
9
- * Instruments a scheduled method for WorkerEntrypoint (options/context already available).
10
- */
11
- export declare function instrumentWorkerEntrypointScheduled<T extends WorkerEntrypoint>(instance: T, options: CloudflareOptions, context: ExecutionContext): void;
12
- //# sourceMappingURL=instrumentScheduled.d.ts.map
@@ -1,12 +0,0 @@
1
- import { ExportedHandler } from '@cloudflare/workers-types';
2
- import { env as cloudflareEnv, WorkerEntrypoint } from 'cloudflare:workers';
3
- import { CloudflareOptions } from '../../client';
4
- /**
5
- * Instruments a tail handler for ExportedHandler (env/ctx come from args).
6
- */
7
- export declare function instrumentExportedHandlerTail<T extends ExportedHandler<any, any, any>>(handler: T, optionsCallback: (env: typeof cloudflareEnv) => CloudflareOptions | undefined): void;
8
- /**
9
- * Instruments a tail method for WorkerEntrypoint (options/context already available).
10
- */
11
- export declare function instrumentWorkerEntrypointTail<T extends WorkerEntrypoint>(instance: T, options: CloudflareOptions, context: ExecutionContext): void;
12
- //# sourceMappingURL=instrumentTail.d.ts.map
@@ -1,19 +0,0 @@
1
- export interface Options {
2
- /**
3
- * Whether breadcrumbs should be recorded for requests
4
- * Defaults to true
5
- */
6
- breadcrumbs: boolean;
7
- /**
8
- * Function determining whether or not to create spans to track outgoing requests to the given URL.
9
- * By default, spans will be created for all outgoing requests.
10
- */
11
- shouldCreateSpanForRequest?: (url: string) => boolean;
12
- }
13
- /**
14
- * Creates spans and attaches tracing headers to fetch requests.
15
- */
16
- export declare const fetchIntegration: (options?: Partial<Options> | undefined) => import("@sentry/core").Integration & {
17
- name: "Fetch";
18
- };
19
- //# sourceMappingURL=fetch.d.ts.map
@@ -1,42 +0,0 @@
1
- interface HonoError extends Error {
2
- status?: number;
3
- }
4
- export interface HonoContext {
5
- req: {
6
- method: string;
7
- path?: string;
8
- };
9
- }
10
- export interface Options {
11
- /**
12
- * Callback method deciding whether error should be captured and sent to Sentry
13
- * @param error Captured middleware error
14
- */
15
- shouldHandleError?(this: void, error: HonoError): boolean;
16
- }
17
- /** Only exported for internal use */
18
- export declare function getHonoIntegration(): ReturnType<typeof _honoIntegration> | undefined;
19
- declare const _honoIntegration: (options?: Partial<Options>) => {
20
- name: "Hono";
21
- handleHonoException(err: HonoError, context: HonoContext): void;
22
- };
23
- /**
24
- * Automatically captures exceptions caught with the `onError` handler in Hono.
25
- *
26
- * The integration is enabled by default.
27
- *
28
- * @deprecated Use the `@sentry/hono` package instead. The `sentry()` middleware from `@sentry/hono/cloudflare`
29
- * handles error capturing automatically without needing this integration.
30
- *
31
- * @example
32
- * integrations: [
33
- * honoIntegration({
34
- * shouldHandleError: (err) => true; // always capture exceptions in onError
35
- * })
36
- * ]
37
- */
38
- export declare const honoIntegration: (options?: Partial<Options> | undefined) => import("@sentry/core").Integration & {
39
- name: "Hono";
40
- };
41
- export {};
42
- //# sourceMappingURL=hono.d.ts.map
@@ -1,63 +0,0 @@
1
- import { Client, MaxRequestBodySize } from '@sentry/core';
2
- export interface HttpServerIntegrationOptions {
3
- /**
4
- * Controls the maximum size of incoming request bodies attached to events.
5
- *
6
- * Only applies to requests with textual content types (text/*, application/json,
7
- * application/x-www-form-urlencoded, application/xml, application/graphql).
8
- * Binary data is not captured.
9
- *
10
- * Available options:
11
- * - `'none'`: No request bodies will be attached
12
- * - `'small'`: Request bodies up to 1,000 bytes will be attached
13
- * - `'medium'`: Request bodies up to 10,000 bytes will be attached (default)
14
- * - `'always'`: Request bodies will always be attached (up to 1MB limit)
15
- *
16
- * @default 'medium'
17
- */
18
- maxRequestBodySize?: MaxRequestBodySize;
19
- /**
20
- * Do not capture the request body for incoming HTTP requests to URLs where the given callback returns `true`.
21
- * This can be useful for long running requests where the body is not needed, health check endpoints,
22
- * or requests containing sensitive data that should not be captured.
23
- *
24
- * @param url The full URL of the incoming request, including query string, protocol, host, etc.
25
- * @param request The incoming Request object.
26
- * @returns `true` to skip body capture for this request, `false` to capture normally.
27
- *
28
- * @example
29
- * ```ts
30
- * Sentry.httpServerIntegration({
31
- * ignoreRequestBody: (url) => url.includes('/health') || url.includes('/upload'),
32
- * })
33
- * ```
34
- */
35
- ignoreRequestBody?: (url: string, request: Request) => boolean;
36
- }
37
- /**
38
- * Configures incoming HTTP request handling for Cloudflare Workers.
39
- *
40
- * This integration controls how incoming HTTP request data is captured,
41
- * matching the API of `httpServerIntegration` in Node.js.
42
- *
43
- * @example
44
- * ```ts
45
- * Sentry.init({
46
- * integrations: [
47
- * Sentry.httpServerIntegration({
48
- * maxRequestBodySize: 'medium',
49
- * ignoreRequestBody: (url) => url.includes('/health'),
50
- * }),
51
- * ],
52
- * });
53
- * ```
54
- */
55
- export declare const httpServerIntegration: (options?: HttpServerIntegrationOptions | undefined) => import("@sentry/core").Integration & {
56
- name: string;
57
- };
58
- /**
59
- * Capture the request body based on the HttpServer integration config.
60
- * Called internally by `wrapRequestHandler`.
61
- */
62
- export declare function captureIncomingRequestBody(client: Client, request: Request): Promise<void>;
63
- //# sourceMappingURL=httpServer.d.ts.map
@@ -1,22 +0,0 @@
1
- type SpotlightConnectionOptions = {
2
- /**
3
- * Set this if the Spotlight Sidecar is not running on localhost:8969.
4
- * By default, the URL is set to http://localhost:8969/stream
5
- */
6
- sidecarUrl?: string;
7
- };
8
- export declare const INTEGRATION_NAME: "Spotlight";
9
- /**
10
- * Use this integration to send errors and transactions to Spotlight.
11
- *
12
- * Learn more about spotlight at https://spotlightjs.com
13
- *
14
- * Important: This integration is intended for local development only.
15
- * Each forwarded envelope counts as a Worker subrequest (50 free / 1000 paid
16
- * per invocation), so it should not be enabled in production.
17
- */
18
- export declare const spotlightIntegration: (options?: Partial<SpotlightConnectionOptions> | undefined) => import("@sentry/core").Integration & {
19
- name: "Spotlight";
20
- };
21
- export {};
22
- //# sourceMappingURL=spotlight.d.ts.map
@@ -1,47 +0,0 @@
1
- /**
2
- * This is a copy of the Vercel AI integration from the node SDK.
3
- *
4
- * The only difference is that it does not use `@opentelemetry/instrumentation`
5
- * because Cloudflare Workers do not support it.
6
- *
7
- * Therefore, we cannot automatically patch setting `experimental_telemetry: { isEnabled: true }`
8
- * and users have to manually set this to get spans.
9
- */
10
- interface VercelAiOptions {
11
- /**
12
- * Enable or disable truncation of recorded input messages.
13
- * Defaults to `true`.
14
- */
15
- enableTruncation?: boolean;
16
- }
17
- /**
18
- * Adds Sentry tracing instrumentation for the [ai](https://www.npmjs.com/package/ai) library.
19
- * This integration is not enabled by default, you need to manually add it.
20
- *
21
- * For more information, see the [`ai` documentation](https://sdk.vercel.ai/docs/ai-sdk-core/telemetry).
22
- *
23
- * You need to enable collecting spans for a specific call by setting
24
- * `experimental_telemetry.isEnabled` to `true` in the first argument of the function call.
25
- *
26
- * ```javascript
27
- * const result = await generateText({
28
- * model: openai('gpt-4-turbo'),
29
- * experimental_telemetry: { isEnabled: true },
30
- * });
31
- * ```
32
- *
33
- * If you want to collect inputs and outputs for a specific call, you must specifically opt-in to each
34
- * function call by setting `experimental_telemetry.recordInputs` and `experimental_telemetry.recordOutputs`
35
- * to `true`.
36
- *
37
- * ```javascript
38
- * const result = await generateText({
39
- * model: openai('gpt-4-turbo'),
40
- * experimental_telemetry: { isEnabled: true, recordInputs: true, recordOutputs: true },
41
- * });
42
- */
43
- export declare const vercelAIIntegration: (options?: VercelAiOptions | undefined) => import("@sentry/core").Integration & {
44
- name: string;
45
- };
46
- export {};
47
- //# sourceMappingURL=vercelai.d.ts.map
@@ -1,4 +0,0 @@
1
- export * from '../index';
2
- export { prismaIntegration } from '@sentry/server-utils';
3
- export { vercelAIIntegration } from './integrations/tracing/vercelai';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1,37 +0,0 @@
1
- /*
2
- * This is a copy of the Vercel AI integration from the Cloudflare SDK (src/integrations/tracing/vercelai.ts).
3
- *
4
- * The only difference is that it includes tracing channel support
5
- * because the default Vercel AI integration needs `nodejs_als`, while this one uses `nodejs_compat`.
6
- */
7
- import { VercelAiOptions } from '@sentry/server-utils';
8
- /**
9
- * Adds Sentry tracing instrumentation for the [ai](https://www.npmjs.com/package/ai) library.
10
- * This integration is not enabled by default, you need to manually add it.
11
- *
12
- * For more information, see the [`ai` documentation](https://sdk.vercel.ai/docs/ai-sdk-core/telemetry).
13
- *
14
- * You need to enable collecting spans for a specific call by setting
15
- * `experimental_telemetry.isEnabled` to `true` in the first argument of the function call.
16
- *
17
- * ```javascript
18
- * const result = await generateText({
19
- * model: openai('gpt-4-turbo'),
20
- * experimental_telemetry: { isEnabled: true },
21
- * });
22
- * ```
23
- *
24
- * If you want to collect inputs and outputs for a specific call, you must specifically opt-in to each
25
- * function call by setting `experimental_telemetry.recordInputs` and `experimental_telemetry.recordOutputs`
26
- * to `true`.
27
- *
28
- * ```javascript
29
- * const result = await generateText({
30
- * model: openai('gpt-4-turbo'),
31
- * experimental_telemetry: { isEnabled: true, recordInputs: true, recordOutputs: true },
32
- * });
33
- */
34
- export declare const vercelAIIntegration: (options?: VercelAiOptions | undefined) => import("@sentry/core").Integration & {
35
- name: string;
36
- };
37
- //# sourceMappingURL=vercelai.d.ts.map
@@ -1,6 +0,0 @@
1
- /**
2
- * Set up a mock OTEL tracer to allow inter-op with OpenTelemetry emitted spans.
3
- * This is not perfect but handles easy/common use cases.
4
- */
5
- export declare function setupOpenTelemetryTracer(): void;
6
- //# sourceMappingURL=tracer.d.ts.map
@@ -1,17 +0,0 @@
1
- import { CloudflareOptions } from './client';
2
- /**
3
- * Merges the options passed in from the user with the options we read from
4
- * the Cloudflare `env` environment variable object.
5
- *
6
- * Release is determined with the following priority (highest to lowest):
7
- * 1. User-provided release option
8
- * 2. SENTRY_RELEASE environment variable
9
- * 3. CF_VERSION_METADATA.id binding (if configured in the wrangler config)
10
- *
11
- * @param userOptions - The options passed in from the user.
12
- * @param env - The environment variables.
13
- *
14
- * @returns The final options.
15
- */
16
- export declare function getFinalOptions(userOptions: CloudflareOptions | undefined, env: unknown): CloudflareOptions;
17
- //# sourceMappingURL=options.d.ts.map
@@ -1,34 +0,0 @@
1
- import { CloudflareOptions } from './client';
2
- /**
3
- * Plugin middleware for Cloudflare Pages.
4
- *
5
- * Initializes the SDK and wraps cloudflare pages requests with SDK instrumentation.
6
- *
7
- * @example Simple usage
8
- *
9
- * ```javascript
10
- * // functions/_middleware.js
11
- * import * as Sentry from '@sentry/cloudflare';
12
- *
13
- * export const onRequest = Sentry.sentryPagesPlugin({
14
- * dsn: process.env.SENTRY_DSN,
15
- * tracesSampleRate: 1.0,
16
- * });
17
- * ```
18
- *
19
- * @example Usage with handler function to access context for environmental variables
20
- *
21
- * ```javascript
22
- * import * as Sentry from '@sentry/cloudflare';
23
- *
24
- * const const onRequest = Sentry.sentryPagesPlugin((context) => ({
25
- * dsn: context.env.SENTRY_DSN,
26
- * tracesSampleRate: 1.0,
27
- * })
28
- * ```
29
- *
30
- * @param handlerOrOptions Configuration options or a function that returns configuration options.
31
- * @returns A plugin function that can be used in Cloudflare Pages.
32
- */
33
- export declare function sentryPagesPlugin<Env = unknown, Params extends string = any, Data extends Record<string, unknown> = Record<string, unknown>, PluginParams = any>(handlerOrOptions: CloudflareOptions | ((context: EventPluginContext<Env, Params, Data, PluginParams>) => CloudflareOptions)): PagesPluginFunction<Env, Params, Data, PluginParams>;
34
- //# sourceMappingURL=pages-plugin.d.ts.map