@sentry/browser 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 (344) hide show
  1. package/build/npm/cjs/dev/client.js +1 -0
  2. package/build/npm/cjs/dev/client.js.map +1 -1
  3. package/build/npm/cjs/dev/eventbuilder.js +8 -8
  4. package/build/npm/cjs/dev/eventbuilder.js.map +1 -1
  5. package/build/npm/cjs/dev/index.js +3 -9
  6. package/build/npm/cjs/dev/index.js.map +1 -1
  7. package/build/npm/cjs/dev/integrations/browsersession.js +1 -1
  8. package/build/npm/cjs/dev/integrations/browsersession.js.map +1 -1
  9. package/build/npm/cjs/dev/integrations/fetchStreamPerformance.js +2 -1
  10. package/build/npm/cjs/dev/integrations/fetchStreamPerformance.js.map +1 -1
  11. package/build/npm/cjs/dev/integrations/graphqlClient.js +4 -4
  12. package/build/npm/cjs/dev/integrations/graphqlClient.js.map +1 -1
  13. package/build/npm/cjs/dev/integrations/httpclient.js +1 -6
  14. package/build/npm/cjs/dev/integrations/httpclient.js.map +1 -1
  15. package/build/npm/cjs/dev/integrations/httpcontext.js +18 -10
  16. package/build/npm/cjs/dev/integrations/httpcontext.js.map +1 -1
  17. package/build/npm/cjs/dev/integrations/spanstreaming.js +4 -19
  18. package/build/npm/cjs/dev/integrations/spanstreaming.js.map +1 -1
  19. package/build/npm/cjs/dev/integrations/spotlight.js.map +1 -1
  20. package/build/npm/cjs/dev/integrations/view-hierarchy.js +1 -0
  21. package/build/npm/cjs/dev/integrations/view-hierarchy.js.map +1 -1
  22. package/build/npm/cjs/dev/integrations/webVitals.js +9 -14
  23. package/build/npm/cjs/dev/integrations/webVitals.js.map +1 -1
  24. package/build/npm/cjs/dev/profiling/index.js.map +1 -1
  25. package/build/npm/cjs/dev/profiling/integration.js +21 -91
  26. package/build/npm/cjs/dev/profiling/integration.js.map +1 -1
  27. package/build/npm/cjs/dev/profiling/utils.js +1 -284
  28. package/build/npm/cjs/dev/profiling/utils.js.map +1 -1
  29. package/build/npm/cjs/dev/sdk.js +10 -7
  30. package/build/npm/cjs/dev/sdk.js.map +1 -1
  31. package/build/npm/cjs/dev/tracing/backgroundtab.js +6 -2
  32. package/build/npm/cjs/dev/tracing/backgroundtab.js.map +1 -1
  33. package/build/npm/cjs/dev/tracing/browserTracingIntegration.js +30 -42
  34. package/build/npm/cjs/dev/tracing/browserTracingIntegration.js.map +1 -1
  35. package/build/npm/cjs/dev/tracing/linkedTraces.js +4 -2
  36. package/build/npm/cjs/dev/tracing/linkedTraces.js.map +1 -1
  37. package/build/npm/cjs/dev/tracing/request.js +10 -17
  38. package/build/npm/cjs/dev/tracing/request.js.map +1 -1
  39. package/build/npm/cjs/dev/transports/fetch.js.map +1 -1
  40. package/build/npm/cjs/dev/utils/lazyLoadIntegration.js +2 -8
  41. package/build/npm/cjs/dev/utils/lazyLoadIntegration.js.map +1 -1
  42. package/build/npm/cjs/prod/client.js +1 -0
  43. package/build/npm/cjs/prod/client.js.map +1 -1
  44. package/build/npm/cjs/prod/eventbuilder.js +8 -8
  45. package/build/npm/cjs/prod/eventbuilder.js.map +1 -1
  46. package/build/npm/cjs/prod/index.js +3 -9
  47. package/build/npm/cjs/prod/index.js.map +1 -1
  48. package/build/npm/cjs/prod/integrations/browsersession.js +1 -1
  49. package/build/npm/cjs/prod/integrations/browsersession.js.map +1 -1
  50. package/build/npm/cjs/prod/integrations/fetchStreamPerformance.js +2 -1
  51. package/build/npm/cjs/prod/integrations/fetchStreamPerformance.js.map +1 -1
  52. package/build/npm/cjs/prod/integrations/graphqlClient.js +4 -4
  53. package/build/npm/cjs/prod/integrations/graphqlClient.js.map +1 -1
  54. package/build/npm/cjs/prod/integrations/httpclient.js +1 -6
  55. package/build/npm/cjs/prod/integrations/httpclient.js.map +1 -1
  56. package/build/npm/cjs/prod/integrations/httpcontext.js +18 -10
  57. package/build/npm/cjs/prod/integrations/httpcontext.js.map +1 -1
  58. package/build/npm/cjs/prod/integrations/spanstreaming.js +4 -19
  59. package/build/npm/cjs/prod/integrations/spanstreaming.js.map +1 -1
  60. package/build/npm/cjs/prod/integrations/spotlight.js.map +1 -1
  61. package/build/npm/cjs/prod/integrations/view-hierarchy.js +1 -0
  62. package/build/npm/cjs/prod/integrations/view-hierarchy.js.map +1 -1
  63. package/build/npm/cjs/prod/integrations/webVitals.js +9 -14
  64. package/build/npm/cjs/prod/integrations/webVitals.js.map +1 -1
  65. package/build/npm/cjs/prod/profiling/index.js.map +1 -1
  66. package/build/npm/cjs/prod/profiling/integration.js +21 -91
  67. package/build/npm/cjs/prod/profiling/integration.js.map +1 -1
  68. package/build/npm/cjs/prod/profiling/utils.js +1 -284
  69. package/build/npm/cjs/prod/profiling/utils.js.map +1 -1
  70. package/build/npm/cjs/prod/sdk.js +10 -7
  71. package/build/npm/cjs/prod/sdk.js.map +1 -1
  72. package/build/npm/cjs/prod/tracing/backgroundtab.js +6 -2
  73. package/build/npm/cjs/prod/tracing/backgroundtab.js.map +1 -1
  74. package/build/npm/cjs/prod/tracing/browserTracingIntegration.js +30 -42
  75. package/build/npm/cjs/prod/tracing/browserTracingIntegration.js.map +1 -1
  76. package/build/npm/cjs/prod/tracing/linkedTraces.js +4 -2
  77. package/build/npm/cjs/prod/tracing/linkedTraces.js.map +1 -1
  78. package/build/npm/cjs/prod/tracing/request.js +10 -17
  79. package/build/npm/cjs/prod/tracing/request.js.map +1 -1
  80. package/build/npm/cjs/prod/transports/fetch.js.map +1 -1
  81. package/build/npm/cjs/prod/utils/lazyLoadIntegration.js +2 -8
  82. package/build/npm/cjs/prod/utils/lazyLoadIntegration.js.map +1 -1
  83. package/build/npm/esm/dev/client.js +1 -0
  84. package/build/npm/esm/dev/client.js.map +1 -1
  85. package/build/npm/esm/dev/eventbuilder.js +8 -8
  86. package/build/npm/esm/dev/eventbuilder.js.map +1 -1
  87. package/build/npm/esm/dev/index.js +2 -2
  88. package/build/npm/esm/dev/integrations/browsersession.js +1 -1
  89. package/build/npm/esm/dev/integrations/browsersession.js.map +1 -1
  90. package/build/npm/esm/dev/integrations/fetchStreamPerformance.js +3 -2
  91. package/build/npm/esm/dev/integrations/fetchStreamPerformance.js.map +1 -1
  92. package/build/npm/esm/dev/integrations/graphqlClient.js +6 -6
  93. package/build/npm/esm/dev/integrations/graphqlClient.js.map +1 -1
  94. package/build/npm/esm/dev/integrations/httpclient.js +1 -6
  95. package/build/npm/esm/dev/integrations/httpclient.js.map +1 -1
  96. package/build/npm/esm/dev/integrations/httpcontext.js +19 -11
  97. package/build/npm/esm/dev/integrations/httpcontext.js.map +1 -1
  98. package/build/npm/esm/dev/integrations/spanstreaming.js +5 -21
  99. package/build/npm/esm/dev/integrations/spanstreaming.js.map +1 -1
  100. package/build/npm/esm/dev/integrations/spotlight.js.map +1 -1
  101. package/build/npm/esm/dev/integrations/view-hierarchy.js +1 -0
  102. package/build/npm/esm/dev/integrations/view-hierarchy.js.map +1 -1
  103. package/build/npm/esm/dev/integrations/webVitals.js +10 -15
  104. package/build/npm/esm/dev/integrations/webVitals.js.map +1 -1
  105. package/build/npm/esm/dev/package.json +1 -1
  106. package/build/npm/esm/dev/profiling/index.js.map +1 -1
  107. package/build/npm/esm/dev/profiling/integration.js +22 -92
  108. package/build/npm/esm/dev/profiling/integration.js.map +1 -1
  109. package/build/npm/esm/dev/profiling/utils.js +3 -273
  110. package/build/npm/esm/dev/profiling/utils.js.map +1 -1
  111. package/build/npm/esm/dev/sdk.js +11 -8
  112. package/build/npm/esm/dev/sdk.js.map +1 -1
  113. package/build/npm/esm/dev/tracing/backgroundtab.js +6 -2
  114. package/build/npm/esm/dev/tracing/backgroundtab.js.map +1 -1
  115. package/build/npm/esm/dev/tracing/browserTracingIntegration.js +32 -44
  116. package/build/npm/esm/dev/tracing/browserTracingIntegration.js.map +1 -1
  117. package/build/npm/esm/dev/tracing/linkedTraces.js +4 -2
  118. package/build/npm/esm/dev/tracing/linkedTraces.js.map +1 -1
  119. package/build/npm/esm/dev/tracing/request.js +12 -19
  120. package/build/npm/esm/dev/tracing/request.js.map +1 -1
  121. package/build/npm/esm/dev/transports/fetch.js.map +1 -1
  122. package/build/npm/esm/dev/utils/lazyLoadIntegration.js +2 -8
  123. package/build/npm/esm/dev/utils/lazyLoadIntegration.js.map +1 -1
  124. package/build/npm/esm/prod/client.js +1 -0
  125. package/build/npm/esm/prod/client.js.map +1 -1
  126. package/build/npm/esm/prod/eventbuilder.js +8 -8
  127. package/build/npm/esm/prod/eventbuilder.js.map +1 -1
  128. package/build/npm/esm/prod/index.js +2 -2
  129. package/build/npm/esm/prod/integrations/browsersession.js +1 -1
  130. package/build/npm/esm/prod/integrations/browsersession.js.map +1 -1
  131. package/build/npm/esm/prod/integrations/fetchStreamPerformance.js +3 -2
  132. package/build/npm/esm/prod/integrations/fetchStreamPerformance.js.map +1 -1
  133. package/build/npm/esm/prod/integrations/graphqlClient.js +6 -6
  134. package/build/npm/esm/prod/integrations/graphqlClient.js.map +1 -1
  135. package/build/npm/esm/prod/integrations/httpclient.js +1 -6
  136. package/build/npm/esm/prod/integrations/httpclient.js.map +1 -1
  137. package/build/npm/esm/prod/integrations/httpcontext.js +19 -11
  138. package/build/npm/esm/prod/integrations/httpcontext.js.map +1 -1
  139. package/build/npm/esm/prod/integrations/spanstreaming.js +5 -21
  140. package/build/npm/esm/prod/integrations/spanstreaming.js.map +1 -1
  141. package/build/npm/esm/prod/integrations/spotlight.js.map +1 -1
  142. package/build/npm/esm/prod/integrations/view-hierarchy.js +1 -0
  143. package/build/npm/esm/prod/integrations/view-hierarchy.js.map +1 -1
  144. package/build/npm/esm/prod/integrations/webVitals.js +10 -15
  145. package/build/npm/esm/prod/integrations/webVitals.js.map +1 -1
  146. package/build/npm/esm/prod/package.json +1 -1
  147. package/build/npm/esm/prod/profiling/index.js.map +1 -1
  148. package/build/npm/esm/prod/profiling/integration.js +22 -92
  149. package/build/npm/esm/prod/profiling/integration.js.map +1 -1
  150. package/build/npm/esm/prod/profiling/utils.js +3 -273
  151. package/build/npm/esm/prod/profiling/utils.js.map +1 -1
  152. package/build/npm/esm/prod/sdk.js +11 -8
  153. package/build/npm/esm/prod/sdk.js.map +1 -1
  154. package/build/npm/esm/prod/tracing/backgroundtab.js +6 -2
  155. package/build/npm/esm/prod/tracing/backgroundtab.js.map +1 -1
  156. package/build/npm/esm/prod/tracing/browserTracingIntegration.js +32 -44
  157. package/build/npm/esm/prod/tracing/browserTracingIntegration.js.map +1 -1
  158. package/build/npm/esm/prod/tracing/linkedTraces.js +4 -2
  159. package/build/npm/esm/prod/tracing/linkedTraces.js.map +1 -1
  160. package/build/npm/esm/prod/tracing/request.js +12 -19
  161. package/build/npm/esm/prod/tracing/request.js.map +1 -1
  162. package/build/npm/esm/prod/transports/fetch.js.map +1 -1
  163. package/build/npm/esm/prod/utils/lazyLoadIntegration.js +2 -8
  164. package/build/npm/esm/prod/utils/lazyLoadIntegration.js.map +1 -1
  165. package/build/npm/types/client.d.ts.map +1 -1
  166. package/build/npm/types/eventbuilder.d.ts.map +1 -1
  167. package/build/npm/types/exports.d.ts +1 -1
  168. package/build/npm/types/exports.d.ts.map +1 -1
  169. package/build/npm/types/index.bundle.d.ts +2 -2
  170. package/build/npm/types/index.bundle.d.ts.map +1 -1
  171. package/build/npm/types/index.bundle.feedback.d.ts +2 -2
  172. package/build/npm/types/index.bundle.feedback.d.ts.map +1 -1
  173. package/build/npm/types/index.bundle.logs.metrics.d.ts +1 -1
  174. package/build/npm/types/index.bundle.logs.metrics.d.ts.map +1 -1
  175. package/build/npm/types/index.bundle.replay.d.ts +2 -2
  176. package/build/npm/types/index.bundle.replay.d.ts.map +1 -1
  177. package/build/npm/types/index.bundle.replay.feedback.d.ts +2 -2
  178. package/build/npm/types/index.bundle.replay.feedback.d.ts.map +1 -1
  179. package/build/npm/types/index.bundle.replay.logs.metrics.d.ts +1 -1
  180. package/build/npm/types/index.bundle.replay.logs.metrics.d.ts.map +1 -1
  181. package/build/npm/types/index.bundle.tracing.d.ts +2 -2
  182. package/build/npm/types/index.bundle.tracing.d.ts.map +1 -1
  183. package/build/npm/types/index.bundle.tracing.logs.metrics.d.ts +1 -1
  184. package/build/npm/types/index.bundle.tracing.logs.metrics.d.ts.map +1 -1
  185. package/build/npm/types/index.bundle.tracing.replay.d.ts +2 -2
  186. package/build/npm/types/index.bundle.tracing.replay.d.ts.map +1 -1
  187. package/build/npm/types/index.bundle.tracing.replay.feedback.d.ts +2 -2
  188. package/build/npm/types/index.bundle.tracing.replay.feedback.d.ts.map +1 -1
  189. package/build/npm/types/index.bundle.tracing.replay.feedback.logs.metrics.d.ts +1 -1
  190. package/build/npm/types/index.bundle.tracing.replay.feedback.logs.metrics.d.ts.map +1 -1
  191. package/build/npm/types/index.bundle.tracing.replay.logs.metrics.d.ts +1 -1
  192. package/build/npm/types/index.bundle.tracing.replay.logs.metrics.d.ts.map +1 -1
  193. package/build/npm/types/index.d.ts +2 -2
  194. package/build/npm/types/index.d.ts.map +1 -1
  195. package/build/npm/types/integrations/browsersession.d.ts +3 -5
  196. package/build/npm/types/integrations/browsersession.d.ts.map +1 -1
  197. package/build/npm/types/integrations/featureFlags/openfeature/integration.d.ts.map +1 -1
  198. package/build/npm/types/integrations/featureFlags/openfeature/types.d.ts +9 -9
  199. package/build/npm/types/integrations/featureFlags/openfeature/types.d.ts.map +1 -1
  200. package/build/npm/types/integrations/fetchStreamPerformance.d.ts.map +1 -1
  201. package/build/npm/types/integrations/graphqlClient.d.ts.map +1 -1
  202. package/build/npm/types/integrations/httpcontext.d.ts.map +1 -1
  203. package/build/npm/types/integrations/spanstreaming.d.ts +1 -0
  204. package/build/npm/types/integrations/spanstreaming.d.ts.map +1 -1
  205. package/build/npm/types/integrations/spotlight.d.ts +1 -1
  206. package/build/npm/types/integrations/usertiming.d.ts +2 -0
  207. package/build/npm/types/integrations/usertiming.d.ts.map +1 -0
  208. package/build/npm/types/integrations/view-hierarchy.d.ts.map +1 -1
  209. package/build/npm/types/integrations/webVitals.d.ts +1 -8
  210. package/build/npm/types/integrations/webVitals.d.ts.map +1 -1
  211. package/build/npm/types/integrations/webWorker.d.ts +1 -1
  212. package/build/npm/types/profiling/UIProfiler.d.ts.map +1 -1
  213. package/build/npm/types/profiling/index.d.ts.map +1 -1
  214. package/build/npm/types/profiling/integration.d.ts.map +1 -1
  215. package/build/npm/types/profiling/utils.d.ts +1 -74
  216. package/build/npm/types/profiling/utils.d.ts.map +1 -1
  217. package/build/npm/types/sdk.d.ts.map +1 -1
  218. package/build/npm/types/tracing/backgroundtab.d.ts.map +1 -1
  219. package/build/npm/types/tracing/browserTracingIntegration.d.ts +1 -47
  220. package/build/npm/types/tracing/browserTracingIntegration.d.ts.map +1 -1
  221. package/build/npm/types/tracing/linkedTraces.d.ts.map +1 -1
  222. package/build/npm/types/tracing/request.d.ts +0 -13
  223. package/build/npm/types/tracing/request.d.ts.map +1 -1
  224. package/build/npm/types/utils/lazyLoadIntegration.d.ts +1 -1
  225. package/build/npm/types/utils/lazyLoadIntegration.d.ts.map +1 -1
  226. package/package.json +12 -21
  227. package/build/npm/cjs/dev/profiling/startProfileForSpan.js +0 -91
  228. package/build/npm/cjs/dev/profiling/startProfileForSpan.js.map +0 -1
  229. package/build/npm/cjs/prod/profiling/startProfileForSpan.js +0 -91
  230. package/build/npm/cjs/prod/profiling/startProfileForSpan.js.map +0 -1
  231. package/build/npm/esm/dev/profiling/startProfileForSpan.js +0 -89
  232. package/build/npm/esm/dev/profiling/startProfileForSpan.js.map +0 -1
  233. package/build/npm/esm/prod/profiling/startProfileForSpan.js +0 -89
  234. package/build/npm/esm/prod/profiling/startProfileForSpan.js.map +0 -1
  235. package/build/npm/types/integrations-bundle/index.createlangchaincallbackhandler.d.ts +0 -2
  236. package/build/npm/types/integrations-bundle/index.createlangchaincallbackhandler.d.ts.map +0 -1
  237. package/build/npm/types/integrations-bundle/index.instrumentanthropicaiclient.d.ts +0 -2
  238. package/build/npm/types/integrations-bundle/index.instrumentanthropicaiclient.d.ts.map +0 -1
  239. package/build/npm/types/integrations-bundle/index.instrumentgooglegenaiclient.d.ts +0 -2
  240. package/build/npm/types/integrations-bundle/index.instrumentgooglegenaiclient.d.ts.map +0 -1
  241. package/build/npm/types/integrations-bundle/index.instrumentlangchainembeddings.d.ts +0 -2
  242. package/build/npm/types/integrations-bundle/index.instrumentlangchainembeddings.d.ts.map +0 -1
  243. package/build/npm/types/integrations-bundle/index.instrumentlanggraph.d.ts +0 -2
  244. package/build/npm/types/integrations-bundle/index.instrumentlanggraph.d.ts.map +0 -1
  245. package/build/npm/types/integrations-bundle/index.instrumentopenaiclient.d.ts +0 -2
  246. package/build/npm/types/integrations-bundle/index.instrumentopenaiclient.d.ts.map +0 -1
  247. package/build/npm/types/integrations-bundle/index.instrumentstategraph.d.ts +0 -2
  248. package/build/npm/types/integrations-bundle/index.instrumentstategraph.d.ts.map +0 -1
  249. package/build/npm/types/profiling/startProfileForSpan.d.ts +0 -8
  250. package/build/npm/types/profiling/startProfileForSpan.d.ts.map +0 -1
  251. package/build/npm/types-ts3.8/client.d.ts +0 -76
  252. package/build/npm/types-ts3.8/debug-build.d.ts +0 -7
  253. package/build/npm/types-ts3.8/diagnose-sdk.d.ts +0 -11
  254. package/build/npm/types-ts3.8/eventbuilder.d.ts +0 -40
  255. package/build/npm/types-ts3.8/exports.d.ts +0 -21
  256. package/build/npm/types-ts3.8/feedbackAsync.d.ts +0 -7
  257. package/build/npm/types-ts3.8/feedbackSync.d.ts +0 -4
  258. package/build/npm/types-ts3.8/helpers.d.ts +0 -27
  259. package/build/npm/types-ts3.8/index.bundle.base.d.ts +0 -2
  260. package/build/npm/types-ts3.8/index.bundle.d.ts +0 -5
  261. package/build/npm/types-ts3.8/index.bundle.feedback.d.ts +0 -7
  262. package/build/npm/types-ts3.8/index.bundle.logs.metrics.d.ts +0 -6
  263. package/build/npm/types-ts3.8/index.bundle.replay.d.ts +0 -6
  264. package/build/npm/types-ts3.8/index.bundle.replay.feedback.d.ts +0 -8
  265. package/build/npm/types-ts3.8/index.bundle.replay.logs.metrics.d.ts +0 -7
  266. package/build/npm/types-ts3.8/index.bundle.tracing.d.ts +0 -13
  267. package/build/npm/types-ts3.8/index.bundle.tracing.logs.metrics.d.ts +0 -13
  268. package/build/npm/types-ts3.8/index.bundle.tracing.replay.d.ts +0 -14
  269. package/build/npm/types-ts3.8/index.bundle.tracing.replay.feedback.d.ts +0 -16
  270. package/build/npm/types-ts3.8/index.bundle.tracing.replay.feedback.logs.metrics.d.ts +0 -14
  271. package/build/npm/types-ts3.8/index.bundle.tracing.replay.logs.metrics.d.ts +0 -14
  272. package/build/npm/types-ts3.8/index.d.ts +0 -38
  273. package/build/npm/types-ts3.8/integrations/breadcrumbs.d.ts +0 -16
  274. package/build/npm/types-ts3.8/integrations/browserapierrors.d.ts +0 -23
  275. package/build/npm/types-ts3.8/integrations/browserprofiling.d.ts +0 -2
  276. package/build/npm/types-ts3.8/integrations/browsersession.d.ts +0 -25
  277. package/build/npm/types-ts3.8/integrations/contextlines.d.ts +0 -32
  278. package/build/npm/types-ts3.8/integrations/culturecontext.d.ts +0 -18
  279. package/build/npm/types-ts3.8/integrations/featureFlags/growthbook/index.d.ts +0 -2
  280. package/build/npm/types-ts3.8/integrations/featureFlags/growthbook/integration.d.ts +0 -25
  281. package/build/npm/types-ts3.8/integrations/featureFlags/growthbook/types.d.ts +0 -6
  282. package/build/npm/types-ts3.8/integrations/featureFlags/launchdarkly/index.d.ts +0 -2
  283. package/build/npm/types-ts3.8/integrations/featureFlags/launchdarkly/integration.d.ts +0 -27
  284. package/build/npm/types-ts3.8/integrations/featureFlags/launchdarkly/types.d.ts +0 -44
  285. package/build/npm/types-ts3.8/integrations/featureFlags/openfeature/index.d.ts +0 -2
  286. package/build/npm/types-ts3.8/integrations/featureFlags/openfeature/integration.d.ts +0 -18
  287. package/build/npm/types-ts3.8/integrations/featureFlags/openfeature/types.d.ts +0 -78
  288. package/build/npm/types-ts3.8/integrations/featureFlags/statsig/index.d.ts +0 -2
  289. package/build/npm/types-ts3.8/integrations/featureFlags/statsig/integration.d.ts +0 -30
  290. package/build/npm/types-ts3.8/integrations/featureFlags/statsig/types.d.ts +0 -14
  291. package/build/npm/types-ts3.8/integrations/featureFlags/unleash/index.d.ts +0 -2
  292. package/build/npm/types-ts3.8/integrations/featureFlags/unleash/integration.d.ts +0 -31
  293. package/build/npm/types-ts3.8/integrations/featureFlags/unleash/types.d.ts +0 -21
  294. package/build/npm/types-ts3.8/integrations/fetchStreamPerformance.d.ts +0 -16
  295. package/build/npm/types-ts3.8/integrations/globalhandlers.d.ts +0 -19
  296. package/build/npm/types-ts3.8/integrations/graphqlClient.d.ts +0 -60
  297. package/build/npm/types-ts3.8/integrations/httpclient.d.ts +0 -32
  298. package/build/npm/types-ts3.8/integrations/httpcontext.d.ts +0 -8
  299. package/build/npm/types-ts3.8/integrations/linkederrors.d.ts +0 -12
  300. package/build/npm/types-ts3.8/integrations/reportingobserver.d.ts +0 -12
  301. package/build/npm/types-ts3.8/integrations/spanstreaming.d.ts +0 -4
  302. package/build/npm/types-ts3.8/integrations/spotlight.d.ts +0 -21
  303. package/build/npm/types-ts3.8/integrations/view-hierarchy.d.ts +0 -51
  304. package/build/npm/types-ts3.8/integrations/webVitals.d.ts +0 -26
  305. package/build/npm/types-ts3.8/integrations/webWorker.d.ts +0 -129
  306. package/build/npm/types-ts3.8/integrations-bundle/index.captureconsole.d.ts +0 -2
  307. package/build/npm/types-ts3.8/integrations-bundle/index.createlangchaincallbackhandler.d.ts +0 -2
  308. package/build/npm/types-ts3.8/integrations-bundle/index.dedupe.d.ts +0 -2
  309. package/build/npm/types-ts3.8/integrations-bundle/index.extraerrordata.d.ts +0 -2
  310. package/build/npm/types-ts3.8/integrations-bundle/index.feedback.d.ts +0 -5
  311. package/build/npm/types-ts3.8/integrations-bundle/index.graphqlclient.d.ts +0 -2
  312. package/build/npm/types-ts3.8/integrations-bundle/index.instrumentanthropicaiclient.d.ts +0 -2
  313. package/build/npm/types-ts3.8/integrations-bundle/index.instrumentgooglegenaiclient.d.ts +0 -2
  314. package/build/npm/types-ts3.8/integrations-bundle/index.instrumentlangchainembeddings.d.ts +0 -2
  315. package/build/npm/types-ts3.8/integrations-bundle/index.instrumentlanggraph.d.ts +0 -2
  316. package/build/npm/types-ts3.8/integrations-bundle/index.instrumentopenaiclient.d.ts +0 -2
  317. package/build/npm/types-ts3.8/integrations-bundle/index.instrumentstategraph.d.ts +0 -2
  318. package/build/npm/types-ts3.8/integrations-bundle/index.modulemetadata.d.ts +0 -2
  319. package/build/npm/types-ts3.8/integrations-bundle/index.rewriteframes.d.ts +0 -2
  320. package/build/npm/types-ts3.8/integrations-bundle/index.spotlight.d.ts +0 -2
  321. package/build/npm/types-ts3.8/normalizeStringifyValue.d.ts +0 -15
  322. package/build/npm/types-ts3.8/pluggable-exports-bundle/index.multiplexedtransport.d.ts +0 -2
  323. package/build/npm/types-ts3.8/profiling/UIProfiler.d.ts +0 -75
  324. package/build/npm/types-ts3.8/profiling/index.d.ts +0 -8
  325. package/build/npm/types-ts3.8/profiling/integration.d.ts +0 -4
  326. package/build/npm/types-ts3.8/profiling/jsSelfProfiling.d.ts +0 -41
  327. package/build/npm/types-ts3.8/profiling/startProfileForSpan.d.ts +0 -8
  328. package/build/npm/types-ts3.8/profiling/utils.d.ts +0 -112
  329. package/build/npm/types-ts3.8/report-dialog.d.ts +0 -8
  330. package/build/npm/types-ts3.8/sdk.d.ts +0 -62
  331. package/build/npm/types-ts3.8/stack-parsers.d.ts +0 -9
  332. package/build/npm/types-ts3.8/tracing/backgroundtab.d.ts +0 -6
  333. package/build/npm/types-ts3.8/tracing/browserTracingIntegration.d.ts +0 -271
  334. package/build/npm/types-ts3.8/tracing/linkedTraces.d.ts +0 -52
  335. package/build/npm/types-ts3.8/tracing/reportPageLoaded.d.ts +0 -11
  336. package/build/npm/types-ts3.8/tracing/request.d.ts +0 -87
  337. package/build/npm/types-ts3.8/tracing/setActiveSpan.d.ts +0 -39
  338. package/build/npm/types-ts3.8/tracing/utils.d.ts +0 -17
  339. package/build/npm/types-ts3.8/transports/fetch.d.ts +0 -8
  340. package/build/npm/types-ts3.8/transports/offline.d.ts +0 -33
  341. package/build/npm/types-ts3.8/transports/types.d.ts +0 -6
  342. package/build/npm/types-ts3.8/userfeedback.d.ts +0 -10
  343. package/build/npm/types-ts3.8/utils/detectBrowserExtension.d.ts +0 -6
  344. package/build/npm/types-ts3.8/utils/lazyLoadIntegration.d.ts +0 -35
@@ -1 +0,0 @@
1
- {"version":3,"file":"startProfileForSpan.js","sources":["../../../../../src/profiling/startProfileForSpan.ts"],"sourcesContent":["import type { Span } from '@sentry/core/browser';\nimport { debug, getCurrentScope, spanToJSON, timestampInSeconds, uuid4 } from '@sentry/core/browser';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { WINDOW } from '../helpers';\nimport type { JSSelfProfile } from './jsSelfProfiling';\nimport {\n addProfileToGlobalCache,\n isAutomatedPageLoadSpan,\n MAX_PROFILE_DURATION_MS,\n PROFILED_ROOT_SPANS,\n setThreadAttributes,\n startJSSelfProfile,\n} from './utils';\n\n/**\n * Wraps startTransaction and stopTransaction with profiling related logic.\n * startProfileForTransaction is called after the call to startTransaction in order to avoid our own code from\n * being profiled. Because of that same reason, stopProfiling is called before the call to stopTransaction.\n */\nexport function startProfileForSpan(span: Span): void {\n // Start the profiler and get the profiler instance.\n let startTimestamp: number | undefined;\n if (isAutomatedPageLoadSpan(span)) {\n startTimestamp = timestampInSeconds() * 1000;\n }\n\n const profiler = startJSSelfProfile();\n\n // We failed to construct the profiler, so we skip.\n // No need to log anything as this has already been logged in startProfile.\n if (!profiler) {\n return;\n }\n\n if (DEBUG_BUILD) {\n debug.log(`[Profiling] started profiling span: ${spanToJSON(span).description}`);\n }\n\n // We create \"unique\" span names to avoid concurrent spans with same names\n // from being ignored by the profiler. From here on, only this span name should be used when\n // calling the profiler methods. Note: we log the original name to the user to avoid confusion.\n const profileId = uuid4();\n\n // A couple of important things to note here:\n // `CpuProfilerBindings.stopProfiling` will be scheduled to run in 30seconds in order to exceed max profile duration.\n // Whichever of the two (span.finish/timeout) is first to run, the profiling will be stopped and the gathered profile\n // will be processed when the original span is finished. Since onProfileHandler can be invoked multiple times in the\n // event of an error or user mistake (calling span.finish multiple times), it is important that the behavior of onProfileHandler\n // is idempotent as we do not want any timings or profiles to be overridden by the last call to onProfileHandler.\n // After the original finish method is called, the event will be reported through the integration and delegated to transport.\n let processedProfile: JSSelfProfile | null = null;\n\n getCurrentScope().setContext('profile', {\n profile_id: profileId,\n start_timestamp: startTimestamp,\n });\n\n PROFILED_ROOT_SPANS.add(span);\n setThreadAttributes(span);\n\n /**\n * Idempotent handler for profile stop\n */\n async function onProfileHandler(): Promise<void> {\n // Check if the profile exists and return it the behavior has to be idempotent as users may call span.finish multiple times.\n if (!span) {\n return;\n }\n // Satisfy the type checker, but profiler will always be defined here.\n if (!profiler) {\n return;\n }\n if (processedProfile) {\n if (DEBUG_BUILD) {\n debug.log('[Profiling] profile for:', spanToJSON(span).description, 'already exists, returning early');\n }\n return;\n }\n\n return profiler\n .stop()\n .then((profile: JSSelfProfile): void => {\n if (maxDurationTimeoutID) {\n WINDOW.clearTimeout(maxDurationTimeoutID);\n maxDurationTimeoutID = undefined;\n }\n\n if (DEBUG_BUILD) {\n debug.log(`[Profiling] stopped profiling of span: ${spanToJSON(span).description}`);\n }\n\n // In case of an overlapping span, stopProfiling may return null and silently ignore the overlapping profile.\n if (!profile) {\n if (DEBUG_BUILD) {\n debug.log(\n `[Profiling] profiler returned null profile for: ${spanToJSON(span).description}`,\n 'this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started',\n );\n }\n return;\n }\n\n processedProfile = profile;\n addProfileToGlobalCache(profileId, profile);\n })\n .catch(error => {\n if (DEBUG_BUILD) {\n debug.log('[Profiling] error while stopping profiler:', error);\n }\n });\n }\n\n // Enqueue a timeout to prevent profiles from running over max duration.\n let maxDurationTimeoutID: number | undefined = WINDOW.setTimeout(() => {\n if (DEBUG_BUILD) {\n debug.log('[Profiling] max profile duration elapsed, stopping profiling for:', spanToJSON(span).description);\n }\n // If the timeout exceeds, we want to stop profiling, but not finish the span\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n onProfileHandler();\n }, MAX_PROFILE_DURATION_MS);\n\n // We need to reference the original end call to avoid creating an infinite loop\n const originalEnd = span.end.bind(span);\n\n /**\n * Wraps span `end()` with profiling related logic.\n * startProfiling is called after the call to spanStart in order to avoid our own code from\n * being profiled. Because of that same reason, stopProfiling is called before the call to spanEnd.\n */\n function profilingWrappedSpanEnd(): Span {\n if (!span) {\n return originalEnd();\n }\n // onProfileHandler should always return the same profile even if this is called multiple times.\n // Always call onProfileHandler to ensure stopProfiling is called and the timeout is cleared.\n void onProfileHandler().then(\n () => {\n originalEnd();\n },\n () => {\n // If onProfileHandler fails, we still want to call the original finish method.\n originalEnd();\n },\n );\n\n return span;\n }\n\n span.end = profilingWrappedSpanEnd;\n}\n"],"names":["isAutomatedPageLoadSpan","timestampInSeconds","startJSSelfProfile","DEBUG_BUILD","debug","spanToJSON","uuid4","getCurrentScope","PROFILED_ROOT_SPANS","setThreadAttributes","WINDOW","addProfileToGlobalCache","MAX_PROFILE_DURATION_MS"],"mappings":";;;;;;;AAmBO,SAAS,oBAAoB,IAAA,EAAkB;AAEpD,EAAA,IAAI,cAAA;AACJ,EAAA,IAAIA,6BAAA,CAAwB,IAAI,CAAA,EAAG;AACjC,IAAA,cAAA,GAAiBC,4BAAmB,GAAI,GAAA;AAAA,EAC1C;AAEA,EAAA,MAAM,WAAWC,wBAAA,EAAmB;AAIpC,EAAA,IAAI,CAAC,QAAA,EAAU;AACb,IAAA;AAAA,EACF;AAEA,EAAA,IAAIC,sBAAA,EAAa;AACf,IAAAC,aAAA,CAAM,IAAI,CAAA,oCAAA,EAAuCC,kBAAA,CAAW,IAAI,CAAA,CAAE,WAAW,CAAA,CAAE,CAAA;AAAA,EACjF;AAKA,EAAA,MAAM,YAAYC,aAAA,EAAM;AASxB,EAAA,IAAI,g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,OAAO,CAAA;AAAA,IAC5C,CAAC,CAAA,CACA,KAAA,CAAM,CAAA,KAAA,KAAS;AACd,MAAA,IAAIR,sBAAA,EAAa;AACf,QAAAC,aAAA,CAAM,GAAA,CAAI,8CAA8C,KAAK,CAAA;AAAA,MAC/D;AAAA,IACF,CAAC,CAAA;AAAA,EACL;AAGA,EAAA,IAAI,oBAAA,GAA2CM,cAAA,CAAO,UAAA,CAAW,MAAM;AACrE,IAAA,IAAIP,sBAAA,EAAa;AACf,MAAAC,aAAA,CAAM,GAAA,CAAI,mEAAA,EAAqEC,kBAAA,CAAW,IAAI,EAAE,WAAW,CAAA;AAAA,IAC7G;AAGA,IAAA,gBAAA,EAAiB;AAAA,EACnB,GAAGO,6BAAuB,CAAA;AAG1B,EAAA,MAAM,WAAA,GAAc,IAAA,CAAK,GAAA,CAAI,IAAA,CAAK,IAAI,CAAA;AAOtC,EAAA,SAAS,uBAAA,GAAgC;AACvC,IAAA,IAAI,CAAC,IAAA,EAAM;AACT,MAAA,OAAO,WAAA,EAAY;AAAA,IACrB;AAGA,IAAA,KAAK,kBAAiB,CAAE,IAAA;AAAA,MACtB,MAAM;AACJ,QAAA,WAAA,EAAY;AAAA,MACd,CAAA;AAAA,MACA,MAAM;AAEJ,QAAA,WAAA,EAAY;AAAA,MACd;AAAA,KACF;AAEA,IAAA,OAAO,IAAA;AAAA,EACT;AAEA,EAAA,IAAA,CAAK,GAAA,GAAM,uBAAA;AACb;;;;"}
@@ -1,91 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
-
3
- const browser = require('@sentry/core/browser');
4
- const debugBuild = require('../debug-build.js');
5
- const helpers = require('../helpers.js');
6
- const utils = require('./utils.js');
7
-
8
- function startProfileForSpan(span) {
9
- let startTimestamp;
10
- if (utils.isAutomatedPageLoadSpan(span)) {
11
- startTimestamp = browser.timestampInSeconds() * 1e3;
12
- }
13
- const profiler = utils.startJSSelfProfile();
14
- if (!profiler) {
15
- return;
16
- }
17
- if (debugBuild.DEBUG_BUILD) {
18
- browser.debug.log(`[Profiling] started profiling span: ${browser.spanToJSON(span).description}`);
19
- }
20
- const profileId = browser.uuid4();
21
- let processedProfile = null;
22
- browser.getCurrentScope().setContext("profile", {
23
- profile_id: profileId,
24
- start_timestamp: startTimestamp
25
- });
26
- utils.PROFILED_ROOT_SPANS.add(span);
27
- utils.setThreadAttributes(span);
28
- async function onProfileHandler() {
29
- if (!span) {
30
- return;
31
- }
32
- if (!profiler) {
33
- return;
34
- }
35
- if (processedProfile) {
36
- if (debugBuild.DEBUG_BUILD) {
37
- browser.debug.log("[Profiling] profile for:", browser.spanToJSON(span).description, "already exists, returning early");
38
- }
39
- return;
40
- }
41
- return profiler.stop().then((profile) => {
42
- if (maxDurationTimeoutID) {
43
- helpers.WINDOW.clearTimeout(maxDurationTimeoutID);
44
- maxDurationTimeoutID = void 0;
45
- }
46
- if (debugBuild.DEBUG_BUILD) {
47
- browser.debug.log(`[Profiling] stopped profiling of span: ${browser.spanToJSON(span).description}`);
48
- }
49
- if (!profile) {
50
- if (debugBuild.DEBUG_BUILD) {
51
- browser.debug.log(
52
- `[Profiling] profiler returned null profile for: ${browser.spanToJSON(span).description}`,
53
- "this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started"
54
- );
55
- }
56
- return;
57
- }
58
- processedProfile = profile;
59
- utils.addProfileToGlobalCache(profileId, profile);
60
- }).catch((error) => {
61
- if (debugBuild.DEBUG_BUILD) {
62
- browser.debug.log("[Profiling] error while stopping profiler:", error);
63
- }
64
- });
65
- }
66
- let maxDurationTimeoutID = helpers.WINDOW.setTimeout(() => {
67
- if (debugBuild.DEBUG_BUILD) {
68
- browser.debug.log("[Profiling] max profile duration elapsed, stopping profiling for:", browser.spanToJSON(span).description);
69
- }
70
- onProfileHandler();
71
- }, utils.MAX_PROFILE_DURATION_MS);
72
- const originalEnd = span.end.bind(span);
73
- function profilingWrappedSpanEnd() {
74
- if (!span) {
75
- return originalEnd();
76
- }
77
- void onProfileHandler().then(
78
- () => {
79
- originalEnd();
80
- },
81
- () => {
82
- originalEnd();
83
- }
84
- );
85
- return span;
86
- }
87
- span.end = profilingWrappedSpanEnd;
88
- }
89
-
90
- exports.startProfileForSpan = startProfileForSpan;
91
- //# sourceMappingURL=startProfileForSpan.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"startProfileForSpan.js","sources":["../../../../../src/profiling/startProfileForSpan.ts"],"sourcesContent":["import type { Span } from '@sentry/core/browser';\nimport { debug, getCurrentScope, spanToJSON, timestampInSeconds, uuid4 } from '@sentry/core/browser';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { WINDOW } from '../helpers';\nimport type { JSSelfProfile } from './jsSelfProfiling';\nimport {\n addProfileToGlobalCache,\n isAutomatedPageLoadSpan,\n MAX_PROFILE_DURATION_MS,\n PROFILED_ROOT_SPANS,\n setThreadAttributes,\n startJSSelfProfile,\n} from './utils';\n\n/**\n * Wraps startTransaction and stopTransaction with profiling related logic.\n * startProfileForTransaction is called after the call to startTransaction in order to avoid our own code from\n * being profiled. Because of that same reason, stopProfiling is called before the call to stopTransaction.\n */\nexport function startProfileForSpan(span: Span): void {\n // Start the profiler and get the profiler instance.\n let startTimestamp: number | undefined;\n if (isAutomatedPageLoadSpan(span)) {\n startTimestamp = timestampInSeconds() * 1000;\n }\n\n const profiler = startJSSelfProfile();\n\n // We failed to construct the profiler, so we skip.\n // No need to log anything as this has already been logged in startProfile.\n if (!profiler) {\n return;\n }\n\n if (DEBUG_BUILD) {\n debug.log(`[Profiling] started profiling span: ${spanToJSON(span).description}`);\n }\n\n // We create \"unique\" span names to avoid concurrent spans with same names\n // from being ignored by the profiler. From here on, only this span name should be used when\n // calling the profiler methods. Note: we log the original name to the user to avoid confusion.\n const profileId = uuid4();\n\n // A couple of important things to note here:\n // `CpuProfilerBindings.stopProfiling` will be scheduled to run in 30seconds in order to exceed max profile duration.\n // Whichever of the two (span.finish/timeout) is first to run, the profiling will be stopped and the gathered profile\n // will be processed when the original span is finished. Since onProfileHandler can be invoked multiple times in the\n // event of an error or user mistake (calling span.finish multiple times), it is important that the behavior of onProfileHandler\n // is idempotent as we do not want any timings or profiles to be overridden by the last call to onProfileHandler.\n // After the original finish method is called, the event will be reported through the integration and delegated to transport.\n let processedProfile: JSSelfProfile | null = null;\n\n getCurrentScope().setContext('profile', {\n profile_id: profileId,\n start_timestamp: startTimestamp,\n });\n\n PROFILED_ROOT_SPANS.add(span);\n setThreadAttributes(span);\n\n /**\n * Idempotent handler for profile stop\n */\n async function onProfileHandler(): Promise<void> {\n // Check if the profile exists and return it the behavior has to be idempotent as users may call span.finish multiple times.\n if (!span) {\n return;\n }\n // Satisfy the type checker, but profiler will always be defined here.\n if (!profiler) {\n return;\n }\n if (processedProfile) {\n if (DEBUG_BUILD) {\n debug.log('[Profiling] profile for:', spanToJSON(span).description, 'already exists, returning early');\n }\n return;\n }\n\n return profiler\n .stop()\n .then((profile: JSSelfProfile): void => {\n if (maxDurationTimeoutID) {\n WINDOW.clearTimeout(maxDurationTimeoutID);\n maxDurationTimeoutID = undefined;\n }\n\n if (DEBUG_BUILD) {\n debug.log(`[Profiling] stopped profiling of span: ${spanToJSON(span).description}`);\n }\n\n // In case of an overlapping span, stopProfiling may return null and silently ignore the overlapping profile.\n if (!profile) {\n if (DEBUG_BUILD) {\n debug.log(\n `[Profiling] profiler returned null profile for: ${spanToJSON(span).description}`,\n 'this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started',\n );\n }\n return;\n }\n\n processedProfile = profile;\n addProfileToGlobalCache(profileId, profile);\n })\n .catch(error => {\n if (DEBUG_BUILD) {\n debug.log('[Profiling] error while stopping profiler:', error);\n }\n });\n }\n\n // Enqueue a timeout to prevent profiles from running over max duration.\n let maxDurationTimeoutID: number | undefined = WINDOW.setTimeout(() => {\n if (DEBUG_BUILD) {\n debug.log('[Profiling] max profile duration elapsed, stopping profiling for:', spanToJSON(span).description);\n }\n // If the timeout exceeds, we want to stop profiling, but not finish the span\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n onProfileHandler();\n }, MAX_PROFILE_DURATION_MS);\n\n // We need to reference the original end call to avoid creating an infinite loop\n const originalEnd = span.end.bind(span);\n\n /**\n * Wraps span `end()` with profiling related logic.\n * startProfiling is called after the call to spanStart in order to avoid our own code from\n * being profiled. Because of that same reason, stopProfiling is called before the call to spanEnd.\n */\n function profilingWrappedSpanEnd(): Span {\n if (!span) {\n return originalEnd();\n }\n // onProfileHandler should always return the same profile even if this is called multiple times.\n // Always call onProfileHandler to ensure stopProfiling is called and the timeout is cleared.\n void onProfileHandler().then(\n () => {\n originalEnd();\n },\n () => {\n // If onProfileHandler fails, we still want to call the original finish method.\n originalEnd();\n },\n );\n\n return span;\n }\n\n span.end = profilingWrappedSpanEnd;\n}\n"],"names":["isAutomatedPageLoadSpan","timestampInSeconds","startJSSelfProfile","DEBUG_BUILD","debug","spanToJSON","uuid4","getCurrentScope","PROFILED_ROOT_SPANS","setThreadAttributes","WINDOW","addProfileToGlobalCache","MAX_PROFILE_DURATION_MS"],"mappings":";;;;;;;AAmBO,SAAS,oBAAoB,IAAA,EAAkB;AAEpD,EAAA,IAAI,cAAA;AACJ,EAAA,IAAIA,6BAAA,CAAwB,IAAI,CAAA,EAAG;AACjC,IAAA,cAAA,GAAiBC,4BAAmB,GAAI,GAAA;AAAA,EAC1C;AAEA,EAAA,MAAM,WAAWC,wBAAA,EAAmB;AAIpC,EAAA,IAAI,CAAC,QAAA,EAAU;AACb,IAAA;AAAA,EACF;AAEA,EAAA,IAAIC,sBAAA,EAAa;AACf,IAAAC,aAAA,CAAM,IAAI,CAAA,oCAAA,EAAuCC,kBAAA,CAAW,IAAI,CAAA,CAAE,WAAW,CAAA,CAAE,CAAA;AAAA,EACjF;AAKA,EAAA,MAAM,YAAYC,aAAA,EAAM;AASxB,EAAA,IAAI,gBAAA,GAAyC,IAAA;AAE7C,EAAAC,uBAAA,EAAgB,CAAE,WAAW,SAAA,EAAW;AAAA,IACtC,UAAA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R,sBAAA,EAAa;AACf,QAAAC,aAAA,CAAM,GAAA,CAAI,8CAA8C,KAAK,CAAA;AAAA,MAC/D;AAAA,IACF,CAAC,CAAA;AAAA,EACL;AAGA,EAAA,IAAI,oBAAA,GAA2CM,cAAA,CAAO,UAAA,CAAW,MAAM;AACrE,IAAA,IAAIP,sBAAA,EAAa;AACf,MAAAC,aAAA,CAAM,GAAA,CAAI,mEAAA,EAAqEC,kBAAA,CAAW,IAAI,EAAE,WAAW,CAAA;AAAA,IAC7G;AAGA,IAAA,gBAAA,EAAiB;AAAA,EACnB,GAAGO,6BAAuB,CAAA;AAG1B,EAAA,MAAM,WAAA,GAAc,IAAA,CAAK,GAAA,CAAI,IAAA,CAAK,IAAI,CAAA;AAOtC,EAAA,SAAS,uBAAA,GAAgC;AACvC,IAAA,IAAI,CAAC,IAAA,EAAM;AACT,MAAA,OAAO,WAAA,EAAY;AAAA,IACrB;AAGA,IAAA,KAAK,kBAAiB,CAAE,IAAA;AAAA,MACtB,MAAM;AACJ,QAAA,WAAA,EAAY;AAAA,MACd,CAAA;AAAA,MACA,MAAM;AAEJ,QAAA,WAAA,EAAY;AAAA,MACd;AAAA,KACF;AAEA,IAAA,OAAO,IAAA;AAAA,EACT;AAEA,EAAA,IAAA,CAAK,GAAA,GAAM,uBAAA;AACb;;;;"}
@@ -1,89 +0,0 @@
1
- import { timestampInSeconds, debug, spanToJSON, uuid4, getCurrentScope } from '@sentry/core/browser';
2
- import { DEBUG_BUILD } from '../debug-build.js';
3
- import { WINDOW } from '../helpers.js';
4
- import { isAutomatedPageLoadSpan, startJSSelfProfile, PROFILED_ROOT_SPANS, setThreadAttributes, MAX_PROFILE_DURATION_MS, addProfileToGlobalCache } from './utils.js';
5
-
6
- function startProfileForSpan(span) {
7
- let startTimestamp;
8
- if (isAutomatedPageLoadSpan(span)) {
9
- startTimestamp = timestampInSeconds() * 1e3;
10
- }
11
- const profiler = startJSSelfProfile();
12
- if (!profiler) {
13
- return;
14
- }
15
- if (DEBUG_BUILD) {
16
- debug.log(`[Profiling] started profiling span: ${spanToJSON(span).description}`);
17
- }
18
- const profileId = uuid4();
19
- let processedProfile = null;
20
- getCurrentScope().setContext("profile", {
21
- profile_id: profileId,
22
- start_timestamp: startTimestamp
23
- });
24
- PROFILED_ROOT_SPANS.add(span);
25
- setThreadAttributes(span);
26
- async function onProfileHandler() {
27
- if (!span) {
28
- return;
29
- }
30
- if (!profiler) {
31
- return;
32
- }
33
- if (processedProfile) {
34
- if (DEBUG_BUILD) {
35
- debug.log("[Profiling] profile for:", spanToJSON(span).description, "already exists, returning early");
36
- }
37
- return;
38
- }
39
- return profiler.stop().then((profile) => {
40
- if (maxDurationTimeoutID) {
41
- WINDOW.clearTimeout(maxDurationTimeoutID);
42
- maxDurationTimeoutID = void 0;
43
- }
44
- if (DEBUG_BUILD) {
45
- debug.log(`[Profiling] stopped profiling of span: ${spanToJSON(span).description}`);
46
- }
47
- if (!profile) {
48
- if (DEBUG_BUILD) {
49
- debug.log(
50
- `[Profiling] profiler returned null profile for: ${spanToJSON(span).description}`,
51
- "this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started"
52
- );
53
- }
54
- return;
55
- }
56
- processedProfile = profile;
57
- addProfileToGlobalCache(profileId, profile);
58
- }).catch((error) => {
59
- if (DEBUG_BUILD) {
60
- debug.log("[Profiling] error while stopping profiler:", error);
61
- }
62
- });
63
- }
64
- let maxDurationTimeoutID = WINDOW.setTimeout(() => {
65
- if (DEBUG_BUILD) {
66
- debug.log("[Profiling] max profile duration elapsed, stopping profiling for:", spanToJSON(span).description);
67
- }
68
- onProfileHandler();
69
- }, MAX_PROFILE_DURATION_MS);
70
- const originalEnd = span.end.bind(span);
71
- function profilingWrappedSpanEnd() {
72
- if (!span) {
73
- return originalEnd();
74
- }
75
- void onProfileHandler().then(
76
- () => {
77
- originalEnd();
78
- },
79
- () => {
80
- originalEnd();
81
- }
82
- );
83
- return span;
84
- }
85
- span.end = profilingWrappedSpanEnd;
86
- }
87
-
88
- export { startProfileForSpan };
89
- //# sourceMappingURL=startProfileForSpan.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"startProfileForSpan.js","sources":["../../../../../src/profiling/startProfileForSpan.ts"],"sourcesContent":["import type { Span } from '@sentry/core/browser';\nimport { debug, getCurrentScope, spanToJSON, timestampInSeconds, uuid4 } from '@sentry/core/browser';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { WINDOW } from '../helpers';\nimport type { JSSelfProfile } from './jsSelfProfiling';\nimport {\n addProfileToGlobalCache,\n isAutomatedPageLoadSpan,\n MAX_PROFILE_DURATION_MS,\n PROFILED_ROOT_SPANS,\n setThreadAttributes,\n startJSSelfProfile,\n} from './utils';\n\n/**\n * Wraps startTransaction and stopTransaction with profiling related logic.\n * startProfileForTransaction is called after the call to startTransaction in order to avoid our own code from\n * being profiled. Because of that same reason, stopProfiling is called before the call to stopTransaction.\n */\nexport function startProfileForSpan(span: Span): void {\n // Start the profiler and get the profiler instance.\n let startTimestamp: number | undefined;\n if (isAutomatedPageLoadSpan(span)) {\n startTimestamp = timestampInSeconds() * 1000;\n }\n\n const profiler = startJSSelfProfile();\n\n // We failed to construct the profiler, so we skip.\n // No need to log anything as this has already been logged in startProfile.\n if (!profiler) {\n return;\n }\n\n if (DEBUG_BUILD) {\n debug.log(`[Profiling] started profiling span: ${spanToJSON(span).description}`);\n }\n\n // We create \"unique\" span names to avoid concurrent spans with same names\n // from being ignored by the profiler. From here on, only this span name should be used when\n // calling the profiler methods. Note: we log the original name to the user to avoid confusion.\n const profileId = uuid4();\n\n // A couple of important things to note here:\n // `CpuProfilerBindings.stopProfiling` will be scheduled to run in 30seconds in order to exceed max profile duration.\n // Whichever of the two (span.finish/timeout) is first to run, the profiling will be stopped and the gathered profile\n // will be processed when the original span is finished. Since onProfileHandler can be invoked multiple times in the\n // event of an error or user mistake (calling span.finish multiple times), it is important that the behavior of onProfileHandler\n // is idempotent as we do not want any timings or profiles to be overridden by the last call to onProfileHandler.\n // After the original finish method is called, the event will be reported through the integration and delegated to transport.\n let processedProfile: JSSelfProfile | null = null;\n\n getCurrentScope().setContext('profile', {\n profile_id: profileId,\n start_timestamp: startTimestamp,\n });\n\n PROFILED_ROOT_SPANS.add(span);\n setThreadAttributes(span);\n\n /**\n * Idempotent handler for profile stop\n */\n async function onProfileHandler(): Promise<void> {\n // Check if the profile exists and return it the behavior has to be idempotent as users may call span.finish multiple times.\n if (!span) {\n return;\n }\n // Satisfy the type checker, but profiler will always be defined here.\n if (!profiler) {\n return;\n }\n if (processedProfile) {\n if (DEBUG_BUILD) {\n debug.log('[Profiling] profile for:', spanToJSON(span).description, 'already exists, returning early');\n }\n return;\n }\n\n return profiler\n .stop()\n .then((profile: JSSelfProfile): void => {\n if (maxDurationTimeoutID) {\n WINDOW.clearTimeout(maxDurationTimeoutID);\n maxDurationTimeoutID = undefined;\n }\n\n if (DEBUG_BUILD) {\n debug.log(`[Profiling] stopped profiling of span: ${spanToJSON(span).description}`);\n }\n\n // In case of an overlapping span, stopProfiling may return null and silently ignore the overlapping profile.\n if (!profile) {\n if (DEBUG_BUILD) {\n debug.log(\n `[Profiling] profiler returned null profile for: ${spanToJSON(span).description}`,\n 'this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started',\n );\n }\n return;\n }\n\n processedProfile = profile;\n addProfileToGlobalCache(profileId, profile);\n })\n .catch(error => {\n if (DEBUG_BUILD) {\n debug.log('[Profiling] error while stopping profiler:', error);\n }\n });\n }\n\n // Enqueue a timeout to prevent profiles from running over max duration.\n let maxDurationTimeoutID: number | undefined = WINDOW.setTimeout(() => {\n if (DEBUG_BUILD) {\n debug.log('[Profiling] max profile duration elapsed, stopping profiling for:', spanToJSON(span).description);\n }\n // If the timeout exceeds, we want to stop profiling, but not finish the span\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n onProfileHandler();\n }, MAX_PROFILE_DURATION_MS);\n\n // We need to reference the original end call to avoid creating an infinite loop\n const originalEnd = span.end.bind(span);\n\n /**\n * Wraps span `end()` with profiling related logic.\n * startProfiling is called after the call to spanStart in order to avoid our own code from\n * being profiled. Because of that same reason, stopProfiling is called before the call to spanEnd.\n */\n function profilingWrappedSpanEnd(): Span {\n if (!span) {\n return originalEnd();\n }\n // onProfileHandler should always return the same profile even if this is called multiple times.\n // Always call onProfileHandler to ensure stopProfiling is called and the timeout is cleared.\n void onProfileHandler().then(\n () => {\n originalEnd();\n },\n () => {\n // If onProfileHandler fails, we still want to call the original finish method.\n originalEnd();\n },\n );\n\n return span;\n }\n\n span.end = profilingWrappedSpanEnd;\n}\n"],"names":[],"mappings":";;;;;AAmBO,SAAS,oBAAoB,IAAA,EAAkB;AAEpD,EAAA,IAAI,cAAA;AACJ,EAAA,IAAI,uBAAA,CAAwB,IAAI,CAAA,EAAG;AACjC,IAAA,cAAA,GAAiB,oBAAmB,GAAI,GAAA;AAAA,EAC1C;AAEA,EAAA,MAAM,WAAW,kBAAA,EAAmB;AAIpC,EAAA,IAAI,CAAC,QAAA,EAAU;AACb,IAAA;AAAA,EACF;AAEA,EAAA,IAAI,WAAA,EAAa;AACf,IAAA,KAAA,CAAM,IAAI,CAAA,oCAAA,EAAuC,UAAA,CAAW,IAAI,CAAA,CAAE,WAAW,CAAA,CAAE,CAAA;AAAA,EACjF;AAKA,EAAA,MAAM,YAAY,KAAA,EAAM;AASxB,EAAA,IAAI,gBAAA,GAAyC,IAAA;AAE7C,EAAA,eAAA,EAAgB,CAAE,WAAW,SAAA,EAAW;AAAA,IACtC,UAAA,EAAY,SAAA;AAAA,IACZ,eAAA,EAAiB;AAAA,GAClB,CAAA;AAED,EAAA,mBAAA,CAAoB,IAAI,IAAI,CAAA;AAC5B,EAAA,mBAAA,CAAoB,IAAI,CAAA;AAKxB,EAAA,eAAe,gBAAA,GAAkC;AAE/C,IAAA,IAAI,CAAC,IAAA,EAAM;AACT,MAAA;AAAA,IACF;AAEA,IAAA,IAAI,CAAC,QAAA,EAAU;AACb,MAAA;AAAA,IACF;AACA,IAAA,IAAI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AiB;AAAA,EACnB,GAAG,uBAAuB,CAAA;AAG1B,EAAA,MAAM,WAAA,GAAc,IAAA,CAAK,GAAA,CAAI,IAAA,CAAK,IAAI,CAAA;AAOtC,EAAA,SAAS,uBAAA,GAAgC;AACvC,IAAA,IAAI,CAAC,IAAA,EAAM;AACT,MAAA,OAAO,WAAA,EAAY;AAAA,IACrB;AAGA,IAAA,KAAK,kBAAiB,CAAE,IAAA;AAAA,MACtB,MAAM;AACJ,QAAA,WAAA,EAAY;AAAA,MACd,CAAA;AAAA,MACA,MAAM;AAEJ,QAAA,WAAA,EAAY;AAAA,MACd;AAAA,KACF;AAEA,IAAA,OAAO,IAAA;AAAA,EACT;AAEA,EAAA,IAAA,CAAK,GAAA,GAAM,uBAAA;AACb;;;;"}
@@ -1,89 +0,0 @@
1
- import { timestampInSeconds, debug, spanToJSON, uuid4, getCurrentScope } from '@sentry/core/browser';
2
- import { DEBUG_BUILD } from '../debug-build.js';
3
- import { WINDOW } from '../helpers.js';
4
- import { isAutomatedPageLoadSpan, startJSSelfProfile, PROFILED_ROOT_SPANS, setThreadAttributes, MAX_PROFILE_DURATION_MS, addProfileToGlobalCache } from './utils.js';
5
-
6
- function startProfileForSpan(span) {
7
- let startTimestamp;
8
- if (isAutomatedPageLoadSpan(span)) {
9
- startTimestamp = timestampInSeconds() * 1e3;
10
- }
11
- const profiler = startJSSelfProfile();
12
- if (!profiler) {
13
- return;
14
- }
15
- if (DEBUG_BUILD) {
16
- debug.log(`[Profiling] started profiling span: ${spanToJSON(span).description}`);
17
- }
18
- const profileId = uuid4();
19
- let processedProfile = null;
20
- getCurrentScope().setContext("profile", {
21
- profile_id: profileId,
22
- start_timestamp: startTimestamp
23
- });
24
- PROFILED_ROOT_SPANS.add(span);
25
- setThreadAttributes(span);
26
- async function onProfileHandler() {
27
- if (!span) {
28
- return;
29
- }
30
- if (!profiler) {
31
- return;
32
- }
33
- if (processedProfile) {
34
- if (DEBUG_BUILD) {
35
- debug.log("[Profiling] profile for:", spanToJSON(span).description, "already exists, returning early");
36
- }
37
- return;
38
- }
39
- return profiler.stop().then((profile) => {
40
- if (maxDurationTimeoutID) {
41
- WINDOW.clearTimeout(maxDurationTimeoutID);
42
- maxDurationTimeoutID = void 0;
43
- }
44
- if (DEBUG_BUILD) {
45
- debug.log(`[Profiling] stopped profiling of span: ${spanToJSON(span).description}`);
46
- }
47
- if (!profile) {
48
- if (DEBUG_BUILD) {
49
- debug.log(
50
- `[Profiling] profiler returned null profile for: ${spanToJSON(span).description}`,
51
- "this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started"
52
- );
53
- }
54
- return;
55
- }
56
- processedProfile = profile;
57
- addProfileToGlobalCache(profileId, profile);
58
- }).catch((error) => {
59
- if (DEBUG_BUILD) {
60
- debug.log("[Profiling] error while stopping profiler:", error);
61
- }
62
- });
63
- }
64
- let maxDurationTimeoutID = WINDOW.setTimeout(() => {
65
- if (DEBUG_BUILD) {
66
- debug.log("[Profiling] max profile duration elapsed, stopping profiling for:", spanToJSON(span).description);
67
- }
68
- onProfileHandler();
69
- }, MAX_PROFILE_DURATION_MS);
70
- const originalEnd = span.end.bind(span);
71
- function profilingWrappedSpanEnd() {
72
- if (!span) {
73
- return originalEnd();
74
- }
75
- void onProfileHandler().then(
76
- () => {
77
- originalEnd();
78
- },
79
- () => {
80
- originalEnd();
81
- }
82
- );
83
- return span;
84
- }
85
- span.end = profilingWrappedSpanEnd;
86
- }
87
-
88
- export { startProfileForSpan };
89
- //# sourceMappingURL=startProfileForSpan.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"startProfileForSpan.js","sources":["../../../../../src/profiling/startProfileForSpan.ts"],"sourcesContent":["import type { Span } from '@sentry/core/browser';\nimport { debug, getCurrentScope, spanToJSON, timestampInSeconds, uuid4 } from '@sentry/core/browser';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { WINDOW } from '../helpers';\nimport type { JSSelfProfile } from './jsSelfProfiling';\nimport {\n addProfileToGlobalCache,\n isAutomatedPageLoadSpan,\n MAX_PROFILE_DURATION_MS,\n PROFILED_ROOT_SPANS,\n setThreadAttributes,\n startJSSelfProfile,\n} from './utils';\n\n/**\n * Wraps startTransaction and stopTransaction with profiling related logic.\n * startProfileForTransaction is called after the call to startTransaction in order to avoid our own code from\n * being profiled. Because of that same reason, stopProfiling is called before the call to stopTransaction.\n */\nexport function startProfileForSpan(span: Span): void {\n // Start the profiler and get the profiler instance.\n let startTimestamp: number | undefined;\n if (isAutomatedPageLoadSpan(span)) {\n startTimestamp = timestampInSeconds() * 1000;\n }\n\n const profiler = startJSSelfProfile();\n\n // We failed to construct the profiler, so we skip.\n // No need to log anything as this has already been logged in startProfile.\n if (!profiler) {\n return;\n }\n\n if (DEBUG_BUILD) {\n debug.log(`[Profiling] started profiling span: ${spanToJSON(span).description}`);\n }\n\n // We create \"unique\" span names to avoid concurrent spans with same names\n // from being ignored by the profiler. From here on, only this span name should be used when\n // calling the profiler methods. Note: we log the original name to the user to avoid confusion.\n const profileId = uuid4();\n\n // A couple of important things to note here:\n // `CpuProfilerBindings.stopProfiling` will be scheduled to run in 30seconds in order to exceed max profile duration.\n // Whichever of the two (span.finish/timeout) is first to run, the profiling will be stopped and the gathered profile\n // will be processed when the original span is finished. Since onProfileHandler can be invoked multiple times in the\n // event of an error or user mistake (calling span.finish multiple times), it is important that the behavior of onProfileHandler\n // is idempotent as we do not want any timings or profiles to be overridden by the last call to onProfileHandler.\n // After the original finish method is called, the event will be reported through the integration and delegated to transport.\n let processedProfile: JSSelfProfile | null = null;\n\n getCurrentScope().setContext('profile', {\n profile_id: profileId,\n start_timestamp: startTimestamp,\n });\n\n PROFILED_ROOT_SPANS.add(span);\n setThreadAttributes(span);\n\n /**\n * Idempotent handler for profile stop\n */\n async function onProfileHandler(): Promise<void> {\n // Check if the profile exists and return it the behavior has to be idempotent as users may call span.finish multiple times.\n if (!span) {\n return;\n }\n // Satisfy the type checker, but profiler will always be defined here.\n if (!profiler) {\n return;\n }\n if (processedProfile) {\n if (DEBUG_BUILD) {\n debug.log('[Profiling] profile for:', spanToJSON(span).description, 'already exists, returning early');\n }\n return;\n }\n\n return profiler\n .stop()\n .then((profile: JSSelfProfile): void => {\n if (maxDurationTimeoutID) {\n WINDOW.clearTimeout(maxDurationTimeoutID);\n maxDurationTimeoutID = undefined;\n }\n\n if (DEBUG_BUILD) {\n debug.log(`[Profiling] stopped profiling of span: ${spanToJSON(span).description}`);\n }\n\n // In case of an overlapping span, stopProfiling may return null and silently ignore the overlapping profile.\n if (!profile) {\n if (DEBUG_BUILD) {\n debug.log(\n `[Profiling] profiler returned null profile for: ${spanToJSON(span).description}`,\n 'this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started',\n );\n }\n return;\n }\n\n processedProfile = profile;\n addProfileToGlobalCache(profileId, profile);\n })\n .catch(error => {\n if (DEBUG_BUILD) {\n debug.log('[Profiling] error while stopping profiler:', error);\n }\n });\n }\n\n // Enqueue a timeout to prevent profiles from running over max duration.\n let maxDurationTimeoutID: number | undefined = WINDOW.setTimeout(() => {\n if (DEBUG_BUILD) {\n debug.log('[Profiling] max profile duration elapsed, stopping profiling for:', spanToJSON(span).description);\n }\n // If the timeout exceeds, we want to stop profiling, but not finish the span\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n onProfileHandler();\n }, MAX_PROFILE_DURATION_MS);\n\n // We need to reference the original end call to avoid creating an infinite loop\n const originalEnd = span.end.bind(span);\n\n /**\n * Wraps span `end()` with profiling related logic.\n * startProfiling is called after the call to spanStart in order to avoid our own code from\n * being profiled. Because of that same reason, stopProfiling is called before the call to spanEnd.\n */\n function profilingWrappedSpanEnd(): Span {\n if (!span) {\n return originalEnd();\n }\n // onProfileHandler should always return the same profile even if this is called multiple times.\n // Always call onProfileHandler to ensure stopProfiling is called and the timeout is cleared.\n void onProfileHandler().then(\n () => {\n originalEnd();\n },\n () => {\n // If onProfileHandler fails, we still want to call the original finish method.\n originalEnd();\n },\n );\n\n return span;\n }\n\n span.end = profilingWrappedSpan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;AAEJ,QAAA,WAAA,EAAY;AAAA,MACd;AAAA,KACF;AAEA,IAAA,OAAO,IAAA;AAAA,EACT;AAEA,EAAA,IAAA,CAAK,GAAA,GAAM,uBAAA;AACb;;;;"}
@@ -1,2 +0,0 @@
1
- export { createLangChainCallbackHandler } from '@sentry/core/browser';
2
- //# sourceMappingURL=index.createlangchaincallbackhandler.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.createlangchaincallbackhandler.d.ts","sourceRoot":"","sources":["../../../../src/integrations-bundle/index.createlangchaincallbackhandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { instrumentAnthropicAiClient } from '@sentry/core/browser';
2
- //# sourceMappingURL=index.instrumentanthropicaiclient.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.instrumentanthropicaiclient.d.ts","sourceRoot":"","sources":["../../../../src/integrations-bundle/index.instrumentanthropicaiclient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { instrumentGoogleGenAIClient } from '@sentry/core/browser';
2
- //# sourceMappingURL=index.instrumentgooglegenaiclient.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.instrumentgooglegenaiclient.d.ts","sourceRoot":"","sources":["../../../../src/integrations-bundle/index.instrumentgooglegenaiclient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { instrumentLangChainEmbeddings } from '@sentry/core/browser';
2
- //# sourceMappingURL=index.instrumentlangchainembeddings.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.instrumentlangchainembeddings.d.ts","sourceRoot":"","sources":["../../../../src/integrations-bundle/index.instrumentlangchainembeddings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { instrumentLangGraph } from '@sentry/core/browser';
2
- //# sourceMappingURL=index.instrumentlanggraph.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.instrumentlanggraph.d.ts","sourceRoot":"","sources":["../../../../src/integrations-bundle/index.instrumentlanggraph.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { instrumentOpenAiClient } from '@sentry/core/browser';
2
- //# sourceMappingURL=index.instrumentopenaiclient.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.instrumentopenaiclient.d.ts","sourceRoot":"","sources":["../../../../src/integrations-bundle/index.instrumentopenaiclient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { instrumentStateGraph } from '@sentry/core/browser';
2
- //# sourceMappingURL=index.instrumentstategraph.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.instrumentstategraph.d.ts","sourceRoot":"","sources":["../../../../src/integrations-bundle/index.instrumentstategraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { Span } from '@sentry/core/browser';
2
- /**
3
- * Wraps startTransaction and stopTransaction with profiling related logic.
4
- * startProfileForTransaction is called after the call to startTransaction in order to avoid our own code from
5
- * being profiled. Because of that same reason, stopProfiling is called before the call to stopTransaction.
6
- */
7
- export declare function startProfileForSpan(span: Span): void;
8
- //# sourceMappingURL=startProfileForSpan.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"startProfileForSpan.d.ts","sourceRoot":"","sources":["../../../../src/profiling/startProfileForSpan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAcjD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAmIpD"}
@@ -1,76 +0,0 @@
1
- import { BrowserClientProfilingOptions, BrowserClientReplayOptions, ClientOptions, Event, EventHint, Options as CoreOptions, ParameterizedString, Scope, SeverityLevel } from '@sentry/core/browser';
2
- import { Client } from '@sentry/core/browser';
3
- import { BrowserTransportOptions } from './transports/types';
4
- type BrowserSpecificOptions = BrowserClientReplayOptions & BrowserClientProfilingOptions & {
5
- /** If configured, this URL will be used as base URL for lazy loading integration. */
6
- cdnBaseUrl?: string;
7
- /**
8
- * Important: Only set this option if you know what you are doing!
9
- *
10
- * By default, the SDK will check if `Sentry.init` is called in a browser extension.
11
- * In case it is, it will stop initialization and log a warning
12
- * because browser extensions require a different Sentry initialization process:
13
- * https://docs.sentry.io/platforms/javascript/best-practices/shared-environments/
14
- *
15
- * Setting up the SDK in a browser extension with global error monitoring is not recommended
16
- * and will likely flood you with errors from other web sites or extensions. This can heavily
17
- * impact your quota and cause interference with your and other Sentry SDKs in shared environments.
18
- *
19
- * If this check wrongfully flags your setup as a browser extension, you can set this
20
- * option to `true` to skip the check.
21
- *
22
- * @default false
23
- */
24
- skipBrowserExtensionCheck?: boolean;
25
- /**
26
- * If you use Spotlight by Sentry during development, use
27
- * this option to forward captured Sentry events to Spotlight.
28
- *
29
- * Either set it to true, or provide a specific Spotlight Sidecar URL.
30
- *
31
- * More details: https://spotlightjs.com/
32
- *
33
- * IMPORTANT: Only set this option to `true` while developing, not in production!
34
- */
35
- spotlight?: boolean | string;
36
- };
37
- /**
38
- * Configuration options for the Sentry Browser SDK.
39
- * @see @sentry/core Options for more information.
40
- */
41
- export type BrowserOptions = CoreOptions<BrowserTransportOptions> & BrowserSpecificOptions;
42
- /**
43
- * Configuration options for the Sentry Browser SDK Client class
44
- * @see BrowserClient for more information.
45
- */
46
- export type BrowserClientOptions = ClientOptions<BrowserTransportOptions> & BrowserSpecificOptions;
47
- /**
48
- * The Sentry Browser SDK Client.
49
- *
50
- * @see BrowserOptions for documentation on configuration options.
51
- * @see SentryClient for usage documentation.
52
- */
53
- export declare class BrowserClient extends Client<BrowserClientOptions> {
54
- /**
55
- * Creates a new Browser SDK instance.
56
- *
57
- * @param options Configuration options for this SDK.
58
- */
59
- constructor(options: BrowserClientOptions);
60
- /**
61
- * @inheritDoc
62
- */
63
- eventFromException(exception: unknown, hint?: EventHint): PromiseLike<Event>;
64
- /**
65
- * @inheritDoc
66
- */
67
- eventFromMessage(message: ParameterizedString, level?: SeverityLevel, hint?: EventHint): PromiseLike<Event>;
68
- /**
69
- * @inheritDoc
70
- */
71
- protected _prepareEvent(event: Event, hint: EventHint, currentScope: Scope, isolationScope: Scope): PromiseLike<Event | null>;
72
- }
73
- /** Exported only for tests. */
74
- export declare function applyDefaultOptions<T extends Partial<BrowserClientOptions>>(optionsArg: T): T;
75
- export {};
76
- //# sourceMappingURL=client.d.ts.map
@@ -1,7 +0,0 @@
1
- /**
2
- * This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.
3
- *
4
- * ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.
5
- */
6
- export declare const DEBUG_BUILD: boolean;
7
- //# sourceMappingURL=debug-build.d.ts.map
@@ -1,11 +0,0 @@
1
- /**
2
- * A function to diagnose why the SDK might not be successfully sending data.
3
- *
4
- * Possible return values wrapped in a Promise:
5
- * - `"no-client-active"` - There was no active client when the function was called. This possibly means that the SDK was not initialized yet.
6
- * - `"sentry-unreachable"` - The Sentry SaaS servers were not reachable. This likely means that there is an ad blocker active on the page or that there are other connection issues.
7
- *
8
- * If the function doesn't detect an issue it resolves to `undefined`.
9
- */
10
- export declare function diagnoseSdkConnectivity(): Promise<'no-client-active' | 'sentry-unreachable' | 'no-dsn-configured' | void>;
11
- //# sourceMappingURL=diagnose-sdk.d.ts.map
@@ -1,40 +0,0 @@
1
- import { Event, EventHint, Exception, ParameterizedString, SeverityLevel, StackParser } from '@sentry/core/browser';
2
- /**
3
- * This function creates an exception from a JavaScript Error
4
- */
5
- export declare function exceptionFromError(stackParser: StackParser, ex: Error): Exception;
6
- /**
7
- * Extracts from errors what we use as the exception `type` in error events.
8
- *
9
- * Usually, this is the `name` property on Error objects but WASM errors need to be treated differently.
10
- */
11
- export declare function extractType(ex: Error & {
12
- message: {
13
- error?: Error;
14
- };
15
- }): string | undefined;
16
- /**
17
- * There are cases where stacktrace.message is an Event object
18
- * https://github.com/getsentry/sentry-javascript/issues/1949
19
- * In this specific case we try to extract stacktrace.message.error.message
20
- */
21
- export declare function extractMessage(ex: Error & {
22
- message: {
23
- error?: Error;
24
- };
25
- }): string;
26
- /**
27
- * Creates an {@link Event} from all inputs to `captureException` and non-primitive inputs to `captureMessage`.
28
- * @hidden
29
- */
30
- export declare function eventFromException(stackParser: StackParser, exception: unknown, hint?: EventHint, attachStacktrace?: boolean): PromiseLike<Event>;
31
- /**
32
- * Builds and Event from a Message
33
- * @hidden
34
- */
35
- export declare function eventFromMessage(stackParser: StackParser, message: ParameterizedString, level?: SeverityLevel, hint?: EventHint, attachStacktrace?: boolean): PromiseLike<Event>;
36
- /**
37
- * @hidden
38
- */
39
- export declare function eventFromUnknownInput(stackParser: StackParser, exception: unknown, syntheticException?: Error, attachStacktrace?: boolean, isUnhandledRejection?: boolean): Event;
40
- //# sourceMappingURL=eventbuilder.d.ts.map
@@ -1,21 +0,0 @@
1
- export { Breadcrumb, BreadcrumbHint, Context, Contexts, RequestEventData, SdkInfo, Event, EventHint, ErrorEvent, Exception, SeverityLevel, StackFrame, Stacktrace, Thread, User, Session, ReportDialogOptions, CaptureContext, ExclusiveEventHintOrCaptureContext, Log, LogSeverityLevel, } from '@sentry/core/browser';
2
- export { BrowserOptions } from './client';
3
- export { addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureFeedback, captureMessage, close, createTransport, lastEventId, flush, getClient, isInitialized, isEnabled, getCurrentScope, getIsolationScope, getGlobalScope, setCurrentClient, Scope, continueTrace, getTraceData, suppressTracing, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setAttribute, setAttributes, setUser, setConversationId, withScope, withIsolationScope, functionToStringIntegration, inboundFiltersIntegration, eventFiltersIntegration, dedupeIntegration, parameterize, startSession, captureSession, endSession, spanToJSON, spanToTraceHeader, spanToBaggageHeader, updateSpanName, withStreamedSpan, metrics, } from '@sentry/core/browser';
4
- export { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, } from '@sentry/core/browser';
5
- export { WINDOW } from './helpers';
6
- export { BrowserClient } from './client';
7
- export { makeFetchTransport } from './transports/fetch';
8
- export { uiProfiler } from './profiling';
9
- export { defaultStackParser, defaultStackLineParsers, chromeStackLineParser, geckoStackLineParser, opera10StackLineParser, opera11StackLineParser, winjsStackLineParser, } from './stack-parsers';
10
- export { eventFromException, eventFromMessage, exceptionFromError } from './eventbuilder';
11
- export { createUserFeedbackEnvelope } from './userfeedback';
12
- export { getDefaultIntegrations, forceLoad, init, onLoad } from './sdk';
13
- export { showReportDialog } from './report-dialog';
14
- export { breadcrumbsIntegration } from './integrations/breadcrumbs';
15
- export { globalHandlersIntegration } from './integrations/globalhandlers';
16
- export { httpContextIntegration } from './integrations/httpcontext';
17
- export { linkedErrorsIntegration } from './integrations/linkederrors';
18
- export { browserApiErrorsIntegration } from './integrations/browserapierrors';
19
- export { browserSessionIntegration } from './integrations/browsersession';
20
- export { lazyLoadIntegration } from './utils/lazyLoadIntegration';
21
- //# sourceMappingURL=exports.d.ts.map
@@ -1,7 +0,0 @@
1
- import { buildFeedbackIntegration } from '@sentry/feedback';
2
- /**
3
- * An integration to add user feedback to your application,
4
- * while loading most of the code lazily only when it's needed.
5
- */
6
- export declare const feedbackAsyncIntegration: ReturnType<typeof buildFeedbackIntegration>;
7
- //# sourceMappingURL=feedbackAsync.d.ts.map
@@ -1,4 +0,0 @@
1
- import { buildFeedbackIntegration } from '@sentry/feedback';
2
- /** Add a widget to capture user feedback to your application. */
3
- export declare const feedbackSyncIntegration: ReturnType<typeof buildFeedbackIntegration>;
4
- //# sourceMappingURL=feedbackSync.d.ts.map
@@ -1,27 +0,0 @@
1
- import { Mechanism, WrappedFunction } from '@sentry/core/browser';
2
- import { GLOBAL_OBJ } from '@sentry/core/browser';
3
- export declare const WINDOW: typeof GLOBAL_OBJ & Window;
4
- /**
5
- * @hidden
6
- */
7
- export declare function shouldIgnoreOnError(): boolean;
8
- /**
9
- * @hidden
10
- */
11
- export declare function ignoreNextOnError(): void;
12
- type WrappableFunction = Function;
13
- export declare function wrap<T extends WrappableFunction>(fn: T, options?: {
14
- mechanism?: Mechanism;
15
- }): WrappedFunction<T>;
16
- export declare function wrap<NonFunction>(fn: NonFunction, options?: {
17
- mechanism?: Mechanism;
18
- }): NonFunction;
19
- /**
20
- * Get HTTP request data from the current page.
21
- */
22
- export declare function getHttpRequestData(): {
23
- url: string;
24
- headers: Record<string, string>;
25
- };
26
- export {};
27
- //# sourceMappingURL=helpers.d.ts.map
@@ -1,2 +0,0 @@
1
- export * from './exports';
2
- //# sourceMappingURL=index.bundle.base.d.ts.map