@sentry/browser 10.69.0 → 11.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) 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 +9 -9
  4. package/build/npm/cjs/dev/eventbuilder.js.map +1 -1
  5. package/build/npm/cjs/dev/index.js +2 -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 +1 -1
  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/utils.js +1 -1
  25. package/build/npm/cjs/dev/profiling/utils.js.map +1 -1
  26. package/build/npm/cjs/dev/sdk.js +10 -7
  27. package/build/npm/cjs/dev/sdk.js.map +1 -1
  28. package/build/npm/cjs/dev/tracing/backgroundtab.js +1 -1
  29. package/build/npm/cjs/dev/tracing/backgroundtab.js.map +1 -1
  30. package/build/npm/cjs/dev/tracing/browserTracingIntegration.js +25 -33
  31. package/build/npm/cjs/dev/tracing/browserTracingIntegration.js.map +1 -1
  32. package/build/npm/cjs/dev/tracing/linkedTraces.js +1 -0
  33. package/build/npm/cjs/dev/tracing/linkedTraces.js.map +1 -1
  34. package/build/npm/cjs/dev/tracing/request.js +10 -15
  35. package/build/npm/cjs/dev/tracing/request.js.map +1 -1
  36. package/build/npm/cjs/dev/transports/fetch.js.map +1 -1
  37. package/build/npm/cjs/dev/utils/lazyLoadIntegration.js +2 -8
  38. package/build/npm/cjs/dev/utils/lazyLoadIntegration.js.map +1 -1
  39. package/build/npm/cjs/prod/client.js +1 -0
  40. package/build/npm/cjs/prod/client.js.map +1 -1
  41. package/build/npm/cjs/prod/eventbuilder.js +9 -9
  42. package/build/npm/cjs/prod/eventbuilder.js.map +1 -1
  43. package/build/npm/cjs/prod/index.js +2 -9
  44. package/build/npm/cjs/prod/index.js.map +1 -1
  45. package/build/npm/cjs/prod/integrations/browsersession.js +1 -1
  46. package/build/npm/cjs/prod/integrations/browsersession.js.map +1 -1
  47. package/build/npm/cjs/prod/integrations/fetchStreamPerformance.js +2 -1
  48. package/build/npm/cjs/prod/integrations/fetchStreamPerformance.js.map +1 -1
  49. package/build/npm/cjs/prod/integrations/graphqlClient.js +1 -1
  50. package/build/npm/cjs/prod/integrations/graphqlClient.js.map +1 -1
  51. package/build/npm/cjs/prod/integrations/httpclient.js +1 -6
  52. package/build/npm/cjs/prod/integrations/httpclient.js.map +1 -1
  53. package/build/npm/cjs/prod/integrations/httpcontext.js +18 -10
  54. package/build/npm/cjs/prod/integrations/httpcontext.js.map +1 -1
  55. package/build/npm/cjs/prod/integrations/spanstreaming.js +4 -19
  56. package/build/npm/cjs/prod/integrations/spanstreaming.js.map +1 -1
  57. package/build/npm/cjs/prod/integrations/spotlight.js.map +1 -1
  58. package/build/npm/cjs/prod/integrations/view-hierarchy.js +1 -0
  59. package/build/npm/cjs/prod/integrations/view-hierarchy.js.map +1 -1
  60. package/build/npm/cjs/prod/integrations/webVitals.js +9 -14
  61. package/build/npm/cjs/prod/integrations/webVitals.js.map +1 -1
  62. package/build/npm/cjs/prod/profiling/utils.js +1 -1
  63. package/build/npm/cjs/prod/profiling/utils.js.map +1 -1
  64. package/build/npm/cjs/prod/sdk.js +10 -7
  65. package/build/npm/cjs/prod/sdk.js.map +1 -1
  66. package/build/npm/cjs/prod/tracing/backgroundtab.js +1 -1
  67. package/build/npm/cjs/prod/tracing/backgroundtab.js.map +1 -1
  68. package/build/npm/cjs/prod/tracing/browserTracingIntegration.js +25 -33
  69. package/build/npm/cjs/prod/tracing/browserTracingIntegration.js.map +1 -1
  70. package/build/npm/cjs/prod/tracing/linkedTraces.js +1 -0
  71. package/build/npm/cjs/prod/tracing/linkedTraces.js.map +1 -1
  72. package/build/npm/cjs/prod/tracing/request.js +10 -15
  73. package/build/npm/cjs/prod/tracing/request.js.map +1 -1
  74. package/build/npm/cjs/prod/transports/fetch.js.map +1 -1
  75. package/build/npm/cjs/prod/utils/lazyLoadIntegration.js +2 -8
  76. package/build/npm/cjs/prod/utils/lazyLoadIntegration.js.map +1 -1
  77. package/build/npm/esm/dev/client.js +1 -0
  78. package/build/npm/esm/dev/client.js.map +1 -1
  79. package/build/npm/esm/dev/eventbuilder.js +9 -9
  80. package/build/npm/esm/dev/eventbuilder.js.map +1 -1
  81. package/build/npm/esm/dev/index.js +2 -2
  82. package/build/npm/esm/dev/integrations/browsersession.js +1 -1
  83. package/build/npm/esm/dev/integrations/browsersession.js.map +1 -1
  84. package/build/npm/esm/dev/integrations/fetchStreamPerformance.js +3 -2
  85. package/build/npm/esm/dev/integrations/fetchStreamPerformance.js.map +1 -1
  86. package/build/npm/esm/dev/integrations/graphqlClient.js +1 -1
  87. package/build/npm/esm/dev/integrations/graphqlClient.js.map +1 -1
  88. package/build/npm/esm/dev/integrations/httpclient.js +1 -6
  89. package/build/npm/esm/dev/integrations/httpclient.js.map +1 -1
  90. package/build/npm/esm/dev/integrations/httpcontext.js +19 -11
  91. package/build/npm/esm/dev/integrations/httpcontext.js.map +1 -1
  92. package/build/npm/esm/dev/integrations/spanstreaming.js +5 -21
  93. package/build/npm/esm/dev/integrations/spanstreaming.js.map +1 -1
  94. package/build/npm/esm/dev/integrations/spotlight.js.map +1 -1
  95. package/build/npm/esm/dev/integrations/view-hierarchy.js +1 -0
  96. package/build/npm/esm/dev/integrations/view-hierarchy.js.map +1 -1
  97. package/build/npm/esm/dev/integrations/webVitals.js +10 -15
  98. package/build/npm/esm/dev/integrations/webVitals.js.map +1 -1
  99. package/build/npm/esm/dev/package.json +1 -1
  100. package/build/npm/esm/dev/profiling/utils.js +1 -1
  101. package/build/npm/esm/dev/profiling/utils.js.map +1 -1
  102. package/build/npm/esm/dev/sdk.js +11 -8
  103. package/build/npm/esm/dev/sdk.js.map +1 -1
  104. package/build/npm/esm/dev/tracing/backgroundtab.js +1 -1
  105. package/build/npm/esm/dev/tracing/backgroundtab.js.map +1 -1
  106. package/build/npm/esm/dev/tracing/browserTracingIntegration.js +26 -34
  107. package/build/npm/esm/dev/tracing/browserTracingIntegration.js.map +1 -1
  108. package/build/npm/esm/dev/tracing/linkedTraces.js +1 -0
  109. package/build/npm/esm/dev/tracing/linkedTraces.js.map +1 -1
  110. package/build/npm/esm/dev/tracing/request.js +12 -17
  111. package/build/npm/esm/dev/tracing/request.js.map +1 -1
  112. package/build/npm/esm/dev/transports/fetch.js.map +1 -1
  113. package/build/npm/esm/dev/utils/lazyLoadIntegration.js +2 -8
  114. package/build/npm/esm/dev/utils/lazyLoadIntegration.js.map +1 -1
  115. package/build/npm/esm/prod/client.js +1 -0
  116. package/build/npm/esm/prod/client.js.map +1 -1
  117. package/build/npm/esm/prod/eventbuilder.js +9 -9
  118. package/build/npm/esm/prod/eventbuilder.js.map +1 -1
  119. package/build/npm/esm/prod/index.js +2 -2
  120. package/build/npm/esm/prod/integrations/browsersession.js +1 -1
  121. package/build/npm/esm/prod/integrations/browsersession.js.map +1 -1
  122. package/build/npm/esm/prod/integrations/fetchStreamPerformance.js +3 -2
  123. package/build/npm/esm/prod/integrations/fetchStreamPerformance.js.map +1 -1
  124. package/build/npm/esm/prod/integrations/graphqlClient.js +1 -1
  125. package/build/npm/esm/prod/integrations/graphqlClient.js.map +1 -1
  126. package/build/npm/esm/prod/integrations/httpclient.js +1 -6
  127. package/build/npm/esm/prod/integrations/httpclient.js.map +1 -1
  128. package/build/npm/esm/prod/integrations/httpcontext.js +19 -11
  129. package/build/npm/esm/prod/integrations/httpcontext.js.map +1 -1
  130. package/build/npm/esm/prod/integrations/spanstreaming.js +5 -21
  131. package/build/npm/esm/prod/integrations/spanstreaming.js.map +1 -1
  132. package/build/npm/esm/prod/integrations/spotlight.js.map +1 -1
  133. package/build/npm/esm/prod/integrations/view-hierarchy.js +1 -0
  134. package/build/npm/esm/prod/integrations/view-hierarchy.js.map +1 -1
  135. package/build/npm/esm/prod/integrations/webVitals.js +10 -15
  136. package/build/npm/esm/prod/integrations/webVitals.js.map +1 -1
  137. package/build/npm/esm/prod/package.json +1 -1
  138. package/build/npm/esm/prod/profiling/utils.js +1 -1
  139. package/build/npm/esm/prod/profiling/utils.js.map +1 -1
  140. package/build/npm/esm/prod/sdk.js +11 -8
  141. package/build/npm/esm/prod/sdk.js.map +1 -1
  142. package/build/npm/esm/prod/tracing/backgroundtab.js +1 -1
  143. package/build/npm/esm/prod/tracing/backgroundtab.js.map +1 -1
  144. package/build/npm/esm/prod/tracing/browserTracingIntegration.js +26 -34
  145. package/build/npm/esm/prod/tracing/browserTracingIntegration.js.map +1 -1
  146. package/build/npm/esm/prod/tracing/linkedTraces.js +1 -0
  147. package/build/npm/esm/prod/tracing/linkedTraces.js.map +1 -1
  148. package/build/npm/esm/prod/tracing/request.js +12 -17
  149. package/build/npm/esm/prod/tracing/request.js.map +1 -1
  150. package/build/npm/esm/prod/transports/fetch.js.map +1 -1
  151. package/build/npm/esm/prod/utils/lazyLoadIntegration.js +2 -8
  152. package/build/npm/esm/prod/utils/lazyLoadIntegration.js.map +1 -1
  153. package/build/npm/types/client.d.ts.map +1 -1
  154. package/build/npm/types/eventbuilder.d.ts.map +1 -1
  155. package/build/npm/types/exports.d.ts +1 -1
  156. package/build/npm/types/exports.d.ts.map +1 -1
  157. package/build/npm/types/index.d.ts +2 -1
  158. package/build/npm/types/index.d.ts.map +1 -1
  159. package/build/npm/types/integrations/browsersession.d.ts +3 -5
  160. package/build/npm/types/integrations/browsersession.d.ts.map +1 -1
  161. package/build/npm/types/integrations/featureFlags/openfeature/integration.d.ts.map +1 -1
  162. package/build/npm/types/integrations/featureFlags/openfeature/types.d.ts +9 -9
  163. package/build/npm/types/integrations/featureFlags/openfeature/types.d.ts.map +1 -1
  164. package/build/npm/types/integrations/fetchStreamPerformance.d.ts.map +1 -1
  165. package/build/npm/types/integrations/graphqlClient.d.ts.map +1 -1
  166. package/build/npm/types/integrations/httpcontext.d.ts.map +1 -1
  167. package/build/npm/types/integrations/spanstreaming.d.ts +1 -0
  168. package/build/npm/types/integrations/spanstreaming.d.ts.map +1 -1
  169. package/build/npm/types/integrations/spotlight.d.ts +1 -1
  170. package/build/npm/types/integrations/usertiming.d.ts +2 -0
  171. package/build/npm/types/integrations/usertiming.d.ts.map +1 -0
  172. package/build/npm/types/integrations/view-hierarchy.d.ts.map +1 -1
  173. package/build/npm/types/integrations/webVitals.d.ts +1 -8
  174. package/build/npm/types/integrations/webVitals.d.ts.map +1 -1
  175. package/build/npm/types/integrations/webWorker.d.ts +1 -1
  176. package/build/npm/types/profiling/UIProfiler.d.ts.map +1 -1
  177. package/build/npm/types/sdk.d.ts.map +1 -1
  178. package/build/npm/types/tracing/browserTracingIntegration.d.ts +1 -37
  179. package/build/npm/types/tracing/browserTracingIntegration.d.ts.map +1 -1
  180. package/build/npm/types/tracing/request.d.ts.map +1 -1
  181. package/build/npm/types/utils/lazyLoadIntegration.d.ts +1 -1
  182. package/build/npm/types/utils/lazyLoadIntegration.d.ts.map +1 -1
  183. package/package.json +11 -20
  184. package/build/npm/types/integrations-bundle/index.createlangchaincallbackhandler.d.ts +0 -2
  185. package/build/npm/types/integrations-bundle/index.createlangchaincallbackhandler.d.ts.map +0 -1
  186. package/build/npm/types/integrations-bundle/index.instrumentanthropicaiclient.d.ts +0 -2
  187. package/build/npm/types/integrations-bundle/index.instrumentanthropicaiclient.d.ts.map +0 -1
  188. package/build/npm/types/integrations-bundle/index.instrumentgooglegenaiclient.d.ts +0 -2
  189. package/build/npm/types/integrations-bundle/index.instrumentgooglegenaiclient.d.ts.map +0 -1
  190. package/build/npm/types/integrations-bundle/index.instrumentlangchainembeddings.d.ts +0 -2
  191. package/build/npm/types/integrations-bundle/index.instrumentlangchainembeddings.d.ts.map +0 -1
  192. package/build/npm/types/integrations-bundle/index.instrumentlanggraph.d.ts +0 -2
  193. package/build/npm/types/integrations-bundle/index.instrumentlanggraph.d.ts.map +0 -1
  194. package/build/npm/types/integrations-bundle/index.instrumentopenaiclient.d.ts +0 -2
  195. package/build/npm/types/integrations-bundle/index.instrumentopenaiclient.d.ts.map +0 -1
  196. package/build/npm/types/integrations-bundle/index.instrumentstategraph.d.ts +0 -2
  197. package/build/npm/types/integrations-bundle/index.instrumentstategraph.d.ts.map +0 -1
  198. package/build/npm/types-ts3.8/client.d.ts +0 -76
  199. package/build/npm/types-ts3.8/debug-build.d.ts +0 -7
  200. package/build/npm/types-ts3.8/diagnose-sdk.d.ts +0 -11
  201. package/build/npm/types-ts3.8/eventbuilder.d.ts +0 -40
  202. package/build/npm/types-ts3.8/exports.d.ts +0 -21
  203. package/build/npm/types-ts3.8/feedbackAsync.d.ts +0 -7
  204. package/build/npm/types-ts3.8/feedbackSync.d.ts +0 -4
  205. package/build/npm/types-ts3.8/helpers.d.ts +0 -27
  206. package/build/npm/types-ts3.8/index.bundle.base.d.ts +0 -2
  207. package/build/npm/types-ts3.8/index.bundle.d.ts +0 -5
  208. package/build/npm/types-ts3.8/index.bundle.feedback.d.ts +0 -7
  209. package/build/npm/types-ts3.8/index.bundle.logs.metrics.d.ts +0 -6
  210. package/build/npm/types-ts3.8/index.bundle.replay.d.ts +0 -6
  211. package/build/npm/types-ts3.8/index.bundle.replay.feedback.d.ts +0 -8
  212. package/build/npm/types-ts3.8/index.bundle.replay.logs.metrics.d.ts +0 -7
  213. package/build/npm/types-ts3.8/index.bundle.tracing.d.ts +0 -13
  214. package/build/npm/types-ts3.8/index.bundle.tracing.logs.metrics.d.ts +0 -13
  215. package/build/npm/types-ts3.8/index.bundle.tracing.replay.d.ts +0 -14
  216. package/build/npm/types-ts3.8/index.bundle.tracing.replay.feedback.d.ts +0 -16
  217. package/build/npm/types-ts3.8/index.bundle.tracing.replay.feedback.logs.metrics.d.ts +0 -14
  218. package/build/npm/types-ts3.8/index.bundle.tracing.replay.logs.metrics.d.ts +0 -14
  219. package/build/npm/types-ts3.8/index.d.ts +0 -38
  220. package/build/npm/types-ts3.8/integrations/breadcrumbs.d.ts +0 -16
  221. package/build/npm/types-ts3.8/integrations/browserapierrors.d.ts +0 -23
  222. package/build/npm/types-ts3.8/integrations/browserprofiling.d.ts +0 -2
  223. package/build/npm/types-ts3.8/integrations/browsersession.d.ts +0 -25
  224. package/build/npm/types-ts3.8/integrations/contextlines.d.ts +0 -32
  225. package/build/npm/types-ts3.8/integrations/culturecontext.d.ts +0 -18
  226. package/build/npm/types-ts3.8/integrations/featureFlags/growthbook/index.d.ts +0 -2
  227. package/build/npm/types-ts3.8/integrations/featureFlags/growthbook/integration.d.ts +0 -25
  228. package/build/npm/types-ts3.8/integrations/featureFlags/growthbook/types.d.ts +0 -6
  229. package/build/npm/types-ts3.8/integrations/featureFlags/launchdarkly/index.d.ts +0 -2
  230. package/build/npm/types-ts3.8/integrations/featureFlags/launchdarkly/integration.d.ts +0 -27
  231. package/build/npm/types-ts3.8/integrations/featureFlags/launchdarkly/types.d.ts +0 -44
  232. package/build/npm/types-ts3.8/integrations/featureFlags/openfeature/index.d.ts +0 -2
  233. package/build/npm/types-ts3.8/integrations/featureFlags/openfeature/integration.d.ts +0 -18
  234. package/build/npm/types-ts3.8/integrations/featureFlags/openfeature/types.d.ts +0 -78
  235. package/build/npm/types-ts3.8/integrations/featureFlags/statsig/index.d.ts +0 -2
  236. package/build/npm/types-ts3.8/integrations/featureFlags/statsig/integration.d.ts +0 -30
  237. package/build/npm/types-ts3.8/integrations/featureFlags/statsig/types.d.ts +0 -14
  238. package/build/npm/types-ts3.8/integrations/featureFlags/unleash/index.d.ts +0 -2
  239. package/build/npm/types-ts3.8/integrations/featureFlags/unleash/integration.d.ts +0 -31
  240. package/build/npm/types-ts3.8/integrations/featureFlags/unleash/types.d.ts +0 -21
  241. package/build/npm/types-ts3.8/integrations/fetchStreamPerformance.d.ts +0 -16
  242. package/build/npm/types-ts3.8/integrations/globalhandlers.d.ts +0 -19
  243. package/build/npm/types-ts3.8/integrations/graphqlClient.d.ts +0 -60
  244. package/build/npm/types-ts3.8/integrations/httpclient.d.ts +0 -32
  245. package/build/npm/types-ts3.8/integrations/httpcontext.d.ts +0 -8
  246. package/build/npm/types-ts3.8/integrations/linkederrors.d.ts +0 -12
  247. package/build/npm/types-ts3.8/integrations/reportingobserver.d.ts +0 -12
  248. package/build/npm/types-ts3.8/integrations/spanstreaming.d.ts +0 -4
  249. package/build/npm/types-ts3.8/integrations/spotlight.d.ts +0 -21
  250. package/build/npm/types-ts3.8/integrations/view-hierarchy.d.ts +0 -51
  251. package/build/npm/types-ts3.8/integrations/webVitals.d.ts +0 -26
  252. package/build/npm/types-ts3.8/integrations/webWorker.d.ts +0 -129
  253. package/build/npm/types-ts3.8/integrations-bundle/index.captureconsole.d.ts +0 -2
  254. package/build/npm/types-ts3.8/integrations-bundle/index.createlangchaincallbackhandler.d.ts +0 -2
  255. package/build/npm/types-ts3.8/integrations-bundle/index.dedupe.d.ts +0 -2
  256. package/build/npm/types-ts3.8/integrations-bundle/index.extraerrordata.d.ts +0 -2
  257. package/build/npm/types-ts3.8/integrations-bundle/index.feedback.d.ts +0 -5
  258. package/build/npm/types-ts3.8/integrations-bundle/index.graphqlclient.d.ts +0 -2
  259. package/build/npm/types-ts3.8/integrations-bundle/index.instrumentanthropicaiclient.d.ts +0 -2
  260. package/build/npm/types-ts3.8/integrations-bundle/index.instrumentgooglegenaiclient.d.ts +0 -2
  261. package/build/npm/types-ts3.8/integrations-bundle/index.instrumentlangchainembeddings.d.ts +0 -2
  262. package/build/npm/types-ts3.8/integrations-bundle/index.instrumentlanggraph.d.ts +0 -2
  263. package/build/npm/types-ts3.8/integrations-bundle/index.instrumentopenaiclient.d.ts +0 -2
  264. package/build/npm/types-ts3.8/integrations-bundle/index.instrumentstategraph.d.ts +0 -2
  265. package/build/npm/types-ts3.8/integrations-bundle/index.modulemetadata.d.ts +0 -2
  266. package/build/npm/types-ts3.8/integrations-bundle/index.rewriteframes.d.ts +0 -2
  267. package/build/npm/types-ts3.8/integrations-bundle/index.spotlight.d.ts +0 -2
  268. package/build/npm/types-ts3.8/normalizeStringifyValue.d.ts +0 -15
  269. package/build/npm/types-ts3.8/pluggable-exports-bundle/index.multiplexedtransport.d.ts +0 -2
  270. package/build/npm/types-ts3.8/profiling/UIProfiler.d.ts +0 -75
  271. package/build/npm/types-ts3.8/profiling/index.d.ts +0 -8
  272. package/build/npm/types-ts3.8/profiling/integration.d.ts +0 -4
  273. package/build/npm/types-ts3.8/profiling/jsSelfProfiling.d.ts +0 -41
  274. package/build/npm/types-ts3.8/profiling/startProfileForSpan.d.ts +0 -8
  275. package/build/npm/types-ts3.8/profiling/utils.d.ts +0 -112
  276. package/build/npm/types-ts3.8/report-dialog.d.ts +0 -8
  277. package/build/npm/types-ts3.8/sdk.d.ts +0 -62
  278. package/build/npm/types-ts3.8/stack-parsers.d.ts +0 -9
  279. package/build/npm/types-ts3.8/tracing/backgroundtab.d.ts +0 -6
  280. package/build/npm/types-ts3.8/tracing/browserTracingIntegration.d.ts +0 -271
  281. package/build/npm/types-ts3.8/tracing/linkedTraces.d.ts +0 -52
  282. package/build/npm/types-ts3.8/tracing/reportPageLoaded.d.ts +0 -11
  283. package/build/npm/types-ts3.8/tracing/request.d.ts +0 -87
  284. package/build/npm/types-ts3.8/tracing/setActiveSpan.d.ts +0 -39
  285. package/build/npm/types-ts3.8/tracing/utils.d.ts +0 -17
  286. package/build/npm/types-ts3.8/transports/fetch.d.ts +0 -8
  287. package/build/npm/types-ts3.8/transports/offline.d.ts +0 -33
  288. package/build/npm/types-ts3.8/transports/types.d.ts +0 -6
  289. package/build/npm/types-ts3.8/userfeedback.d.ts +0 -10
  290. package/build/npm/types-ts3.8/utils/detectBrowserExtension.d.ts +0 -6
  291. package/build/npm/types-ts3.8/utils/lazyLoadIntegration.d.ts +0 -35
@@ -1,87 +0,0 @@
1
- import { Client, RequestHookInfo, ResponseHookInfo, Span } from '@sentry/core/browser';
2
- /** Options for Request Instrumentation */
3
- export interface RequestInstrumentationOptions {
4
- /**
5
- * List of strings and/or Regular Expressions used to determine which outgoing requests will have `sentry-trace` and `baggage`
6
- * headers attached.
7
- *
8
- * **Default:** If this option is not provided, tracing headers will be attached to all outgoing requests.
9
- * If you are using a browser SDK, by default, tracing headers will only be attached to outgoing requests to the same origin.
10
- *
11
- * **Disclaimer:** Carelessly setting this option in browser environments may result into CORS errors!
12
- * Only attach tracing headers to requests to the same origin, or to requests to services you can control CORS headers of.
13
- * Cross-origin requests, meaning requests to a different domain, for example a request to `https://api.example.com/` while you're on `https://example.com/`, take special care.
14
- * If you are attaching headers to cross-origin requests, make sure the backend handling the request returns a `"Access-Control-Allow-Headers: sentry-trace, baggage"` header to ensure your requests aren't blocked.
15
- *
16
- * If you provide a `tracePropagationTargets` array, the entries you provide will be matched against the entire URL of the outgoing request.
17
- * If you are using a browser SDK, the entries will also be matched against the pathname of the outgoing requests.
18
- * This is so you can have matchers for relative requests, for example, `/^\/api/` if you want to trace requests to your `/api` routes on the same domain.
19
- *
20
- * If any of the two match any of the provided values, tracing headers will be attached to the outgoing request.
21
- * Both, the string values, and the RegExes you provide in the array will match if they partially match the URL or pathname.
22
- *
23
- * Examples:
24
- * - `tracePropagationTargets: [/^\/api/]` and request to `https://same-origin.com/api/posts`:
25
- * - Tracing headers will be attached because the request is sent to the same origin and the regex matches the pathname "/api/posts".
26
- * - `tracePropagationTargets: [/^\/api/]` and request to `https://different-origin.com/api/posts`:
27
- * - Tracing headers will not be attached because the pathname will only be compared when the request target lives on the same origin.
28
- * - `tracePropagationTargets: [/^\/api/, 'https://external-api.com']` and request to `https://external-api.com/v1/data`:
29
- * - Tracing headers will be attached because the request URL matches the string `'https://external-api.com'`.
30
- */
31
- tracePropagationTargets?: Array<string | RegExp>;
32
- /**
33
- * Flag to disable patching all together for fetch requests.
34
- *
35
- * Default: true
36
- */
37
- traceFetch: boolean;
38
- /**
39
- * Flag to disable patching all together for xhr requests.
40
- *
41
- * Default: true
42
- */
43
- traceXHR: boolean;
44
- /**
45
- * Flag to disable tracking of long-lived streams, like server-sent events (SSE) via fetch.
46
- * Do not enable this in case you have live streams or very long running streams.
47
- *
48
- * Disabled by default since it can lead to issues with streams using the `cancel()` api
49
- * (https://github.com/getsentry/sentry-javascript/issues/13950)
50
- *
51
- * Default: false
52
- *
53
- * @deprecated Use `fetchStreamPerformanceIntegration()` instead. Add it to your `integrations` array
54
- * to track the duration of streamed fetch response bodies.
55
- */
56
- trackFetchStreamPerformance: boolean;
57
- /**
58
- * If true, Sentry will capture http timings and add them to the corresponding http spans.
59
- *
60
- * Default: true
61
- */
62
- enableHTTPTimings: boolean;
63
- /**
64
- * This function will be called before creating a span for a request with the given url.
65
- * Return false if you don't want a span for the given url.
66
- *
67
- * Default: (url: string) => true
68
- */
69
- shouldCreateSpanForRequest?(this: void, url: string): boolean;
70
- /**
71
- * Is called when spans are started for outgoing requests.
72
- */
73
- onRequestSpanStart?(span: Span, requestInformation: RequestHookInfo): void;
74
- /**
75
- * Is called when spans end for outgoing requests, providing access to response headers.
76
- */
77
- onRequestSpanEnd?(span: Span, responseInformation: ResponseHookInfo): void;
78
- }
79
- export declare const defaultRequestInstrumentationOptions: RequestInstrumentationOptions;
80
- /** Registers span creators for xhr and fetch requests */
81
- export declare function instrumentOutgoingRequests(client: Client, _options?: Partial<RequestInstrumentationOptions>): void;
82
- /**
83
- * A function that determines whether to attach tracing headers to a request.
84
- * We only export this function for testing purposes.
85
- */
86
- export declare function shouldAttachHeaders(targetUrl: string, tracePropagationTargets: (string | RegExp)[] | undefined): boolean;
87
- //# sourceMappingURL=request.d.ts.map
@@ -1,39 +0,0 @@
1
- import { Span } from '@sentry/core/browser';
2
- /**
3
- * Sets an inactive span active on the current scope.
4
- *
5
- * This is useful in browser applications, if you want to create a span that cannot be finished
6
- * within its callback. Any spans started while the given span is active, will be children of the span.
7
- *
8
- * If there already was an active span on the scope prior to calling this function, it is replaced
9
- * with the given span and restored after the span ended. Otherwise, the span will simply be
10
- * removed, resulting in no active span on the scope.
11
- *
12
- * IMPORTANT: This function can ONLY be used in the browser! Calling this function in a server
13
- * environment (for example in a server-side rendered component) will result in undefined behaviour
14
- * and is not supported.
15
- * You MUST call `span.end()` manually, otherwise the span will never be finished.
16
- *
17
- * @example
18
- * ```js
19
- * let checkoutSpan;
20
- *
21
- * on('checkoutStarted', () => {
22
- * checkoutSpan = Sentry.startInactiveSpan({ name: 'checkout-flow' });
23
- * Sentry.setActiveSpanInBrowser(checkoutSpan);
24
- * })
25
- *
26
- * // during this time, any spans started will be children of `checkoutSpan`:
27
- * Sentry.startSpan({ name: 'checkout-step-1' }, () => {
28
- * // ... `
29
- * })
30
- *
31
- * on('checkoutCompleted', () => {
32
- * checkoutSpan?.end();
33
- * })
34
- * ```
35
- *
36
- * @param span - the span to set active
37
- */
38
- export declare function setActiveSpanInBrowser(span: Span): void;
39
- //# sourceMappingURL=setActiveSpan.d.ts.map
@@ -1,17 +0,0 @@
1
- /**
2
- * Checks if the baggage header has Sentry values.
3
- */
4
- export declare function baggageHeaderHasSentryValues(baggageHeader: string): boolean;
5
- /**
6
- * Gets the full URL from a given URL string.
7
- */
8
- export declare function getFullURL(url: string): string | undefined;
9
- /**
10
- * Checks if the entry is a PerformanceResourceTiming.
11
- */
12
- export declare function isPerformanceResourceTiming(entry: PerformanceEntry): entry is PerformanceResourceTiming;
13
- /**
14
- * Creates a Headers object from a record of string key-value pairs, and returns undefined if it fails.
15
- */
16
- export declare function createHeadersSafely(headers: Record<string, string> | undefined): Headers | undefined;
17
- //# sourceMappingURL=utils.d.ts.map
@@ -1,8 +0,0 @@
1
- import { Transport } from '@sentry/core/browser';
2
- import { WINDOW } from '../helpers';
3
- import { BrowserTransportOptions } from './types';
4
- /**
5
- * Creates a Transport that uses the Fetch API to send events to Sentry.
6
- */
7
- export declare function makeFetchTransport(options: BrowserTransportOptions, nativeFetch?: typeof WINDOW.fetch): Transport;
8
- //# sourceMappingURL=fetch.d.ts.map
@@ -1,33 +0,0 @@
1
- import { BaseTransportOptions, OfflineTransportOptions, Transport } from '@sentry/core/browser';
2
- type Store = <T>(callback: (store: IDBObjectStore) => T | PromiseLike<T>) => Promise<T>;
3
- /** Create or open an IndexedDb store */
4
- export declare function createStore(dbName: string, storeName: string): Store;
5
- /** Insert into the end of the store */
6
- export declare function push(store: Store, value: Uint8Array | string, maxQueueSize: number): Promise<void>;
7
- /** Insert into the front of the store */
8
- export declare function unshift(store: Store, value: Uint8Array | string, maxQueueSize: number): Promise<void>;
9
- /** Pop the oldest value from the store */
10
- export declare function shift(store: Store): Promise<Uint8Array | string | undefined>;
11
- export interface BrowserOfflineTransportOptions extends Pick<OfflineTransportOptions, Exclude<keyof OfflineTransportOptions, 'createStore'>> {
12
- /**
13
- * Name of indexedDb database to store envelopes in
14
- * Default: 'sentry-offline'
15
- */
16
- dbName?: string;
17
- /**
18
- * Name of indexedDb object store to store envelopes in
19
- * Default: 'queue'
20
- */
21
- storeName?: string;
22
- /**
23
- * Maximum number of envelopes to store
24
- * Default: 30
25
- */
26
- maxQueueSize?: number;
27
- }
28
- /**
29
- * Creates a transport that uses IndexedDb to store events when offline.
30
- */
31
- export declare function makeBrowserOfflineTransport<T extends BaseTransportOptions>(createTransport?: (options: T) => Transport): (options: T & BrowserOfflineTransportOptions) => Transport;
32
- export {};
33
- //# sourceMappingURL=offline.d.ts.map
@@ -1,6 +0,0 @@
1
- import { BaseTransportOptions } from '@sentry/core/browser';
2
- export interface BrowserTransportOptions extends BaseTransportOptions {
3
- /** Fetch API init parameters. Used by the FetchTransport */
4
- fetchOptions?: RequestInit;
5
- }
6
- //# sourceMappingURL=types.d.ts.map
@@ -1,10 +0,0 @@
1
- import { DsnComponents, EventEnvelope, SdkMetadata, UserFeedback } from '@sentry/core/browser';
2
- /**
3
- * Creates an envelope from a user feedback.
4
- */
5
- export declare function createUserFeedbackEnvelope(feedback: UserFeedback, { metadata, tunnel, dsn, }: {
6
- metadata: SdkMetadata | undefined;
7
- tunnel: string | undefined;
8
- dsn: DsnComponents | undefined;
9
- }): EventEnvelope;
10
- //# sourceMappingURL=userfeedback.d.ts.map
@@ -1,6 +0,0 @@
1
- /**
2
- * Returns true if the SDK is running in an embedded browser extension.
3
- * Stand-alone browser extensions (which do not share the same data as the main browser page) are fine.
4
- */
5
- export declare function checkAndWarnIfIsEmbeddedBrowserExtension(): boolean;
6
- //# sourceMappingURL=detectBrowserExtension.d.ts.map
@@ -1,35 +0,0 @@
1
- import { IntegrationFn } from '@sentry/core/browser';
2
- declare const LAZY_LOADABLE_NAMES: readonly [
3
- "replayIntegration",
4
- "replayCanvasIntegration",
5
- "feedbackIntegration",
6
- "feedbackModalIntegration",
7
- "feedbackScreenshotIntegration",
8
- "captureConsoleIntegration",
9
- "contextLinesIntegration",
10
- "linkedErrorsIntegration",
11
- "dedupeIntegration",
12
- "extraErrorDataIntegration",
13
- "graphqlClientIntegration",
14
- "httpClientIntegration",
15
- "reportingObserverIntegration",
16
- "rewriteFramesIntegration",
17
- "browserProfilingIntegration",
18
- "moduleMetadataIntegration",
19
- "instrumentAnthropicAiClient",
20
- "instrumentOpenAiClient",
21
- "instrumentGoogleGenAIClient",
22
- "instrumentStateGraph",
23
- "instrumentLangGraph",
24
- "createLangChainCallbackHandler",
25
- "instrumentLangChainEmbeddings"
26
- ];
27
- type ElementOf<T extends readonly unknown[]> = T[number];
28
- type LazyLoadableIntegrationName = ElementOf<typeof LAZY_LOADABLE_NAMES>;
29
- /**
30
- * Lazy load an integration from the CDN.
31
- * Rejects if the integration cannot be loaded.
32
- */
33
- export declare function lazyLoadIntegration(name: LazyLoadableIntegrationName, scriptNonce?: string): Promise<IntegrationFn>;
34
- export {};
35
- //# sourceMappingURL=lazyLoadIntegration.d.ts.map