@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,75 +0,0 @@
1
- import { Client, ContinuousProfiler, Span } from '@sentry/core/browser';
2
- /**
3
- * UIProfiler (Profiling V2):
4
- * Supports two lifecycle modes:
5
- * - 'manual': controlled explicitly via start()/stop()
6
- * - 'trace': automatically runs while there are active sampled root spans
7
- *
8
- * Profiles are emitted as standalone `profile_chunk` envelopes either when:
9
- * - there are no more sampled root spans, or
10
- * - the 60s chunk timer elapses while profiling is running.
11
- */
12
- export declare class UIProfiler implements ContinuousProfiler<Client> {
13
- private _client;
14
- private _profiler;
15
- private _chunkTimer;
16
- private _profilerId;
17
- private _isRunning;
18
- private _sessionSampled;
19
- private _lifecycleMode;
20
- private _activeRootSpanIds;
21
- private _rootSpanTimeouts;
22
- constructor();
23
- /**
24
- * Initialize the profiler with client, session sampling and lifecycle mode.
25
- */
26
- initialize(client: Client): void;
27
- /** Starts UI profiling (only effective in 'manual' mode and when sampled). */
28
- start(): void;
29
- /** Stops UI profiling (only effective in 'manual' mode). */
30
- stop(): void;
31
- /** Handle an already-active root span at integration setup time (used only in trace mode). */
32
- notifyRootSpanActive(rootSpan: Span): void;
33
- /**
34
- * Begin profiling if not already running.
35
- */
36
- private _beginProfiling;
37
- /** End profiling session; final chunk will be collected and sent. */
38
- private _endProfiling;
39
- /** Trace-mode: attach spanStart/spanEnd listeners. */
40
- private _setupTraceLifecycleListeners;
41
- /**
42
- * Resets profiling information from scope and resets running state (used on failure)
43
- */
44
- private _resetProfilerInfo;
45
- /**
46
- * Clear and reset all per-root-span timeouts.
47
- */
48
- private _clearAllRootSpanTimeouts;
49
- /** Keep track of root spans and schedule safeguard timeout (trace mode). */
50
- private _registerTraceRootSpan;
51
- /**
52
- * Start a profiler instance if needed.
53
- */
54
- private _startProfilerInstance;
55
- /**
56
- * Schedule the next 60s chunk while running.
57
- * Each tick collects a chunk and restarts the profiler.
58
- * A chunk should be closed when there are no active root spans anymore OR when the maximum chunk interval is reached.
59
- */
60
- private _startPeriodicChunking;
61
- /**
62
- * Handle timeout for a specific root span ID to avoid indefinitely running profiler if `spanEnd` never fires.
63
- * If this was the last active root span, collect the current chunk and stop profiling.
64
- */
65
- private _onRootSpanTimeout;
66
- /**
67
- * Stop current profiler instance, convert profile to chunk & send.
68
- */
69
- private _collectCurrentChunk;
70
- /**
71
- * Send a profile chunk as a standalone envelope.
72
- */
73
- private _sendProfileChunk;
74
- }
75
- //# sourceMappingURL=UIProfiler.d.ts.map
@@ -1,8 +0,0 @@
1
- import { Profiler } from '@sentry/core/browser';
2
- /**
3
- * Profiler namespace for controlling the JS profiler in 'manual' mode.
4
- *
5
- * Requires the `browserProfilingIntegration` from the `@sentry/browser` package.
6
- */
7
- export declare const uiProfiler: Profiler;
8
- //# sourceMappingURL=index.d.ts.map
@@ -1,4 +0,0 @@
1
- export declare const browserProfilingIntegration: () => import("@sentry/core").Integration & {
2
- name: "BrowserProfiling";
3
- };
4
- //# sourceMappingURL=integration.d.ts.map
@@ -1,41 +0,0 @@
1
- type JSSelfProfileSampleMarker = 'script' | 'gc' | 'style' | 'layout' | 'paint' | 'other';
2
- export type JSSelfProfileSample = {
3
- timestamp: number;
4
- stackId?: number;
5
- marker?: JSSelfProfileSampleMarker;
6
- };
7
- export type JSSelfProfileStack = {
8
- frameId: number;
9
- parentId?: number;
10
- };
11
- export type JSSelfProfileFrame = {
12
- name: string;
13
- resourceId?: number;
14
- line?: number;
15
- column?: number;
16
- };
17
- export type JSSelfProfile = {
18
- resources: string[];
19
- frames: JSSelfProfileFrame[];
20
- stacks: JSSelfProfileStack[];
21
- samples: JSSelfProfileSample[];
22
- };
23
- export interface JSSelfProfiler {
24
- sampleInterval: number;
25
- stopped: boolean;
26
- stop: () => Promise<JSSelfProfile>;
27
- addEventListener(event: 'samplebufferfull', callback: (trace: JSSelfProfile) => void): void;
28
- }
29
- export declare const JSSelfProfilerConstructor: {
30
- new (options: {
31
- sampleInterval: number;
32
- maxBufferSize: number;
33
- }): JSSelfProfiler;
34
- };
35
- declare global {
36
- interface Window {
37
- Profiler: typeof JSSelfProfilerConstructor | undefined;
38
- }
39
- }
40
- export {};
41
- //# sourceMappingURL=jsSelfProfiling.d.ts.map
@@ -1,8 +0,0 @@
1
- import { 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,112 +0,0 @@
1
- import { Client, DebugImage, Envelope, Event, EventEnvelope, Profile, ProfileChunk, Span, ThreadCpuProfile } from '@sentry/core/browser';
2
- import { BrowserOptions } from '../client';
3
- import { JSSelfProfile, JSSelfProfiler } from './jsSelfProfiling';
4
- export declare const PROFILER_THREAD_ID_STRING: string;
5
- export declare const PROFILER_THREAD_NAME: string;
6
- /**
7
- *
8
- */
9
- export declare function enrichWithThreadInformation(profile: ThreadCpuProfile | JSSelfProfile): ThreadCpuProfile;
10
- export interface ProfiledEvent extends Event {
11
- sdkProcessingMetadata: {
12
- profile?: JSSelfProfile;
13
- };
14
- }
15
- /**
16
- * Creates a profiling event envelope from a Sentry event. If profile does not pass
17
- * validation, returns null.
18
- * @param event
19
- * @param dsn
20
- * @param metadata
21
- * @param tunnel
22
- * @returns {EventEnvelope | null}
23
- */
24
- /**
25
- * Creates a profiling event envelope from a Sentry event.
26
- */
27
- export declare function createProfilePayload(profile_id: string, start_timestamp: number | undefined, processed_profile: JSSelfProfile, event: ProfiledEvent): Profile;
28
- /**
29
- * Create a profile chunk envelope item
30
- */
31
- export declare function createProfileChunkPayload(jsSelfProfile: JSSelfProfile, client: Client, profilerId?: string): ProfileChunk;
32
- /**
33
- * Validate a profile chunk against the Sample Format V2 requirements.
34
- * https://develop.sentry.dev/sdk/telemetry/profiles/sample-format-v2/
35
- * - Presence of samples, stacks, frames
36
- * - Required metadata fields
37
- */
38
- export declare function validateProfileChunk(chunk: ProfileChunk): {
39
- valid: true;
40
- } | {
41
- reason: string;
42
- };
43
- /**
44
- *
45
- */
46
- export declare function isProfiledTransactionEvent(event: Event): event is ProfiledEvent;
47
- /**
48
- *
49
- */
50
- export declare function isAutomatedPageLoadSpan(span: Span): boolean;
51
- /**
52
- * Converts a JSSelfProfile to a our sampled format.
53
- * Does not currently perform stack indexing.
54
- */
55
- export declare function convertJSSelfProfileToSampledFormat(input: JSSelfProfile): Profile['profile'];
56
- /**
57
- * Adds items to envelope if they are not already present - mutates the envelope.
58
- * @param envelope
59
- */
60
- export declare function addProfilesToEnvelope(envelope: EventEnvelope, profiles: Profile[]): Envelope;
61
- /**
62
- * Finds transactions with profile_id context in the envelope
63
- * @param envelope
64
- * @returns
65
- */
66
- export declare function findProfiledTransactionsFromEnvelope(envelope: Envelope): Event[];
67
- /**
68
- * Applies debug meta data to an event from a list of paths to resources (sourcemaps)
69
- */
70
- export declare function applyDebugMetadata(resource_paths: ReadonlyArray<string>): DebugImage[];
71
- /**
72
- * Checks the given sample rate to make sure it is valid type and value (a boolean, or a number between 0 and 1).
73
- */
74
- export declare function isValidSampleRate(rate: unknown): boolean;
75
- export declare const MAX_PROFILE_DURATION_MS = 30000;
76
- /**
77
- * Starts the profiler and returns the profiler instance.
78
- */
79
- export declare function startJSSelfProfile(): JSSelfProfiler | undefined;
80
- /**
81
- * Determine if a profile should be profiled.
82
- */
83
- export declare function shouldProfileSpanLegacy(span: Span): boolean;
84
- /**
85
- * Determine if a profile should be created for the current session.
86
- */
87
- export declare function shouldProfileSession(options: BrowserOptions): boolean;
88
- /**
89
- * Checks if legacy profiling is configured.
90
- */
91
- export declare function hasLegacyProfiling(options: BrowserOptions): boolean;
92
- /**
93
- * Creates a profiling envelope item, if the profile does not pass validation, returns null.
94
- * @param event
95
- * @returns {Profile | null}
96
- */
97
- export declare function createProfilingEvent(profile_id: string, start_timestamp: number | undefined, profile: JSSelfProfile, event: ProfiledEvent): Profile | null;
98
- /**
99
- *
100
- */
101
- export declare function getActiveProfilesCount(): number;
102
- /**
103
- * Retrieves profile from global cache and removes it.
104
- */
105
- export declare function takeProfileFromGlobalCache(profile_id: string): JSSelfProfile | undefined;
106
- /**
107
- * Adds profile to global cache and evicts the oldest profile if the cache is full.
108
- */
109
- export declare function addProfileToGlobalCache(profile_id: string, profile: JSSelfProfile): void;
110
- export declare const PROFILED_ROOT_SPANS: WeakSet<Span>;
111
- export declare function setThreadAttributes(span: Span): void;
112
- //# sourceMappingURL=utils.d.ts.map
@@ -1,8 +0,0 @@
1
- import { ReportDialogOptions } from '@sentry/core/browser';
2
- /**
3
- * Present the user with a report dialog.
4
- *
5
- * @param options Everything is optional, we try to fetch all info need from the current scope.
6
- */
7
- export declare function showReportDialog(options?: ReportDialogOptions): void;
8
- //# sourceMappingURL=report-dialog.d.ts.map
@@ -1,62 +0,0 @@
1
- import { Client, Integration, Options } from '@sentry/core/browser';
2
- import { BrowserOptions } from './client';
3
- /** Get the default integrations for the browser SDK. */
4
- export declare function getDefaultIntegrations(_options: Options): Integration[];
5
- /**
6
- * The Sentry Browser SDK Client.
7
- *
8
- * To use this SDK, call the {@link init} function as early as possible when
9
- * loading the web page. To set context information or send manual events, use
10
- * the provided methods.
11
- *
12
- * @example
13
- *
14
- * ```
15
- *
16
- * import { init } from '@sentry/browser';
17
- *
18
- * init({
19
- * dsn: '__DSN__',
20
- * // ...
21
- * });
22
- * ```
23
- *
24
- * @example
25
- * ```
26
- *
27
- * import { addBreadcrumb } from '@sentry/browser';
28
- * addBreadcrumb({
29
- * message: 'My Breadcrumb',
30
- * // ...
31
- * });
32
- * ```
33
- *
34
- * @example
35
- *
36
- * ```
37
- *
38
- * import * as Sentry from '@sentry/browser';
39
- * Sentry.captureMessage('Hello, world!');
40
- * Sentry.captureException(new Error('Good bye'));
41
- * Sentry.captureEvent({
42
- * message: 'Manual',
43
- * stacktrace: [
44
- * // ...
45
- * ],
46
- * });
47
- * ```
48
- *
49
- * @see {@link BrowserOptions} for documentation on configuration options.
50
- */
51
- export declare function init(options?: BrowserOptions): Client | undefined;
52
- /**
53
- * This function is here to be API compatible with the loader.
54
- * @hidden
55
- */
56
- export declare function forceLoad(): void;
57
- /**
58
- * This function is here to be API compatible with the loader.
59
- * @hidden
60
- */
61
- export declare function onLoad(callback: () => void): void;
62
- //# sourceMappingURL=sdk.d.ts.map
@@ -1,9 +0,0 @@
1
- import { StackLineParser } from '@sentry/core/browser';
2
- export declare const chromeStackLineParser: StackLineParser;
3
- export declare const geckoStackLineParser: StackLineParser;
4
- export declare const winjsStackLineParser: StackLineParser;
5
- export declare const opera10StackLineParser: StackLineParser;
6
- export declare const opera11StackLineParser: StackLineParser;
7
- export declare const defaultStackLineParsers: StackLineParser[];
8
- export declare const defaultStackParser: import("@sentry/core").StackParser;
9
- //# sourceMappingURL=stack-parsers.d.ts.map
@@ -1,6 +0,0 @@
1
- /**
2
- * Add a listener that cancels and finishes a transaction when the global
3
- * document is hidden.
4
- */
5
- export declare function registerBackgroundTabDetection(): void;
6
- //# sourceMappingURL=backgroundtab.d.ts.map
@@ -1,271 +0,0 @@
1
- import { Client, RequestHookInfo, ResponseHookInfo, Span, StartSpanOptions } from '@sentry/core/browser';
2
- export declare const BROWSER_TRACING_INTEGRATION_ID = "BrowserTracing";
3
- export declare function isBotUserAgent(): boolean;
4
- /** Options for Browser Tracing integration */
5
- export interface BrowserTracingOptions {
6
- /**
7
- * The time that has to pass without any span being created.
8
- * If this time is exceeded, the idle span will finish.
9
- *
10
- * Default: 1000 (ms)
11
- */
12
- idleTimeout: number;
13
- /**
14
- * The max. time an idle span may run.
15
- * If this time is exceeded, the idle span will finish no matter what.
16
- *
17
- * Default: 30000 (ms)
18
- */
19
- finalTimeout: number;
20
- /**
21
- The max. time an idle span may run.
22
- * If this time is exceeded, the idle span will finish no matter what.
23
- *
24
- * Default: 15000 (ms)
25
- */
26
- childSpanTimeout: number;
27
- /**
28
- * If a span should be created on page load.
29
- * If this is set to `false`, this integration will not start the default page load span.
30
- * Default: true
31
- */
32
- instrumentPageLoad: boolean;
33
- /**
34
- * If a span should be created on navigation (history change).
35
- * If this is set to `false`, this integration will not start the default navigation spans.
36
- * Default: true
37
- */
38
- instrumentNavigation: boolean;
39
- /**
40
- * Flag spans where tabs moved to background with "cancelled". Browser background tab timing is
41
- * not suited towards doing precise measurements of operations. By default, we recommend that this option
42
- * be enabled as background transactions can mess up your statistics in nondeterministic ways.
43
- *
44
- * Default: true
45
- */
46
- markBackgroundSpan: boolean;
47
- /**
48
- * If true, Sentry will capture long tasks and add them to the corresponding transaction.
49
- *
50
- * Default: true
51
- */
52
- enableLongTask: boolean;
53
- /**
54
- * If true, Sentry will capture long animation frames and add them to the corresponding transaction.
55
- *
56
- * Default: false
57
- */
58
- enableLongAnimationFrame: boolean;
59
- /**
60
- * If true, Sentry will capture first input delay and add it to the corresponding transaction.
61
- *
62
- * Default: true
63
- */
64
- enableInp: boolean;
65
- /**
66
- * @deprecated This option is no longer used. Element timing is now tracked via the standalone
67
- * `elementTimingIntegration`. Add it to your `integrations` array to collect element timing metrics.
68
- */
69
- enableElementTiming?: boolean;
70
- /**
71
- * Flag to disable patching all together for fetch requests.
72
- *
73
- * Default: true
74
- */
75
- traceFetch: boolean;
76
- /**
77
- * Flag to disable patching all together for xhr requests.
78
- *
79
- * Default: true
80
- */
81
- traceXHR: boolean;
82
- /**
83
- * Flag to disable tracking of long-lived streams, like server-sent events (SSE) via fetch.
84
- * Do not enable this in case you have live streams or very long running streams.
85
- *
86
- * Default: false
87
- *
88
- * @deprecated Use `fetchStreamPerformanceIntegration()` instead. Add it to your `integrations` array
89
- * to track the duration of streamed fetch response bodies.
90
- */
91
- trackFetchStreamPerformance: boolean;
92
- /**
93
- * If true, Sentry will capture http timings and add them to the corresponding http spans.
94
- *
95
- * Default: true
96
- */
97
- enableHTTPTimings: boolean;
98
- /**
99
- * Resource spans with `op`s matching strings in the array will not be emitted.
100
- *
101
- * Default: []
102
- */
103
- ignoreResourceSpans: Array<'resouce.script' | 'resource.css' | 'resource.img' | 'resource.other' | string>;
104
- /**
105
- * Spans created from the following browser Performance APIs,
106
- *
107
- * - [`performance.mark(...)`](https://developer.mozilla.org/en-US/docs/Web/API/Performance/mark)
108
- * - [`performance.measure(...)`](https://developer.mozilla.org/en-US/docs/Web/API/Performance/measure)
109
- *
110
- * will not be emitted if their names match strings in this array.
111
- *
112
- * This is useful, if you come across `mark` or `measure` spans in your Sentry traces
113
- * that you want to ignore. For example, sometimes, browser extensions or libraries
114
- * emit these entries on their own, which might not be relevant to your application.
115
- *
116
- * * @example
117
- * ```ts
118
- * Sentry.init({
119
- * integrations: [
120
- * Sentry.browserTracingIntegration({
121
- * ignorePerformanceApiSpans: ['myMeasurement', /myMark/],
122
- * }),
123
- * ],
124
- * });
125
- *
126
- * // no spans will be created for these:
127
- * performance.mark('myMark');
128
- * performance.measure('myMeasurement');
129
- *
130
- * // spans will be created for these:
131
- * performance.mark('authenticated');
132
- * performance.measure('input-duration', ...);
133
- * ```
134
- *
135
- * Default: [] - By default, all `mark` and `measure` entries are sent as spans.
136
- */
137
- ignorePerformanceApiSpans: Array<string | RegExp>;
138
- /**
139
- * By default, the SDK will try to detect redirects and avoid creating separate spans for them.
140
- * If you want to opt-out of this behavior, you can set this option to `false`.
141
- *
142
- * Default: true
143
- */
144
- detectRedirects: boolean;
145
- /**
146
- * Link the currently started trace to a previous trace (e.g. a prior pageload, navigation or
147
- * manually started span). When enabled, this option will allow you to navigate between traces
148
- * in the Sentry UI.
149
- *
150
- * You can set this option to the following values:
151
- *
152
- * - `'in-memory'`: The previous trace data will be stored in memory.
153
- * This is useful for single-page applications and enabled by default.
154
- *
155
- * - `'session-storage'`: The previous trace data will be stored in the `sessionStorage`.
156
- * This is useful for multi-page applications or static sites but it means that the
157
- * Sentry SDK writes to the browser's `sessionStorage`.
158
- *
159
- * - `'off'`: The previous trace data will not be stored or linked.
160
- *
161
- * You can also use {@link BrowserTracingOptions.consistentTraceSampling} to get
162
- * consistent trace sampling of subsequent traces. Otherwise, by default, your
163
- * `tracesSampleRate` or `tracesSampler` config significantly influences how often
164
- * traces will be linked.
165
- *
166
- * @default 'in-memory' - see explanation above
167
- */
168
- linkPreviousTrace: 'in-memory' | 'session-storage' | 'off';
169
- /**
170
- * If true, Sentry will consistently sample subsequent traces based on the
171
- * sampling decision of the initial trace. For example, if the initial page
172
- * load trace was sampled positively, all subsequent traces (e.g. navigations)
173
- * are also sampled positively. In case the initial trace was sampled negatively,
174
- * all subsequent traces are also sampled negatively.
175
- *
176
- * This option allows you to get consistent, linked traces within a user journey
177
- * while maintaining an overall quota based on your trace sampling settings.
178
- *
179
- * This option is only effective if {@link BrowserTracingOptions.linkPreviousTrace}
180
- * is enabled (i.e. not set to `'off'`).
181
- *
182
- * @default `false` - this is an opt-in feature.
183
- */
184
- consistentTraceSampling: boolean;
185
- /**
186
- * If set to `true`, the pageload span will not end itself automatically, unless it
187
- * runs until the {@link BrowserTracingOptions.finalTimeout} (30 seconds by default) is reached.
188
- *
189
- * Set this option to `true`, if you want full control over the pageload span duration.
190
- * You can use `Sentry.reportPageLoaded()` to manually end the pageload span whenever convenient.
191
- * Be aware that you have to ensure that this is always called, regardless of the chosen route
192
- * or path in the application.
193
- *
194
- * @default `false`. By default, the pageload span will end itself automatically, based on
195
- * the {@link BrowserTracingOptions.finalTimeout}, {@link BrowserTracingOptions.idleTimeout}
196
- * and {@link BrowserTracingOptions.childSpanTimeout}. This is more convenient to use but means
197
- * that the pageload duration can be arbitrary and might not be fully representative of a perceived
198
- * page load time.
199
- */
200
- enableReportPageLoaded: boolean;
201
- /**
202
- * _experiments allows the user to send options to define how this integration works.
203
- *
204
- * Default: undefined
205
- */
206
- _experiments: Partial<{
207
- enableInteractions: boolean;
208
- enableStandaloneClsSpans: boolean;
209
- enableStandaloneLcpSpans: boolean;
210
- }>;
211
- /**
212
- * A callback which is called before a span for a pageload or navigation is started.
213
- * It receives the options passed to `startSpan`, and expects to return an updated options object.
214
- */
215
- beforeStartSpan?: (options: StartSpanOptions) => StartSpanOptions;
216
- /**
217
- * This function will be called before creating a span for a request with the given url.
218
- * Return false if you don't want a span for the given url.
219
- *
220
- * Default: (url: string) => true
221
- */
222
- shouldCreateSpanForRequest?(this: void, url: string): boolean;
223
- /**
224
- * This callback is invoked directly after a span is started for an outgoing fetch or XHR request.
225
- * You can use it to annotate the span with additional data or attributes, for example by setting
226
- * attributes based on the passed request headers.
227
- */
228
- onRequestSpanStart?(span: Span, requestInformation: RequestHookInfo): void;
229
- /**
230
- * Is called when spans end for outgoing requests, providing access to response headers.
231
- */
232
- onRequestSpanEnd?(span: Span, responseInformation: ResponseHookInfo): void;
233
- }
234
- /**
235
- * The Browser Tracing integration automatically instruments browser pageload/navigation
236
- * actions as transactions, and captures requests, metrics and errors as spans.
237
- *
238
- * The integration can be configured with a variety of options, and can be extended to use
239
- * any routing library.
240
- *
241
- * We explicitly export the proper type here, as this has to be extended in some cases.
242
- */
243
- export declare const browserTracingIntegration: (options?: Partial<BrowserTracingOptions>) => {
244
- name: string;
245
- setup(client: Client<import("@sentry/core").ClientOptions<import("@sentry/core").BaseTransportOptions>>): void;
246
- afterAllSetup(client: Client<import("@sentry/core").ClientOptions<import("@sentry/core").BaseTransportOptions>>): void;
247
- };
248
- /**
249
- * Manually start a page load span.
250
- * This will only do something if a browser tracing integration integration has been setup.
251
- *
252
- * If you provide a custom `traceOptions` object, it will be used to continue the trace
253
- * instead of the default behavior, which is to look it up on the <meta> tags.
254
- */
255
- export declare function startBrowserTracingPageLoadSpan(client: Client, spanOptions: StartSpanOptions, traceOptions?: {
256
- sentryTrace?: string | undefined;
257
- baggage?: string | undefined;
258
- }): Span | undefined;
259
- /**
260
- * Manually start a navigation span.
261
- * This will only do something if a browser tracing integration has been setup.
262
- */
263
- export declare function startBrowserTracingNavigationSpan(client: Client, spanOptions: StartSpanOptions, options?: {
264
- url?: string;
265
- isRedirect?: boolean;
266
- }): Span | undefined;
267
- /** Returns the value of a meta tag */
268
- export declare function getMetaContent(metaName: string): string | undefined;
269
- /** Returns the description of a server timing entry */
270
- export declare function getServerTiming(name: string): string | undefined;
271
- //# sourceMappingURL=browserTracingIntegration.d.ts.map
@@ -1,52 +0,0 @@
1
- import { Client, PropagationContext, Span, SpanContextData } from '@sentry/core/browser';
2
- export interface PreviousTraceInfo {
3
- /**
4
- * Span context of the previous trace's local root span
5
- */
6
- spanContext: SpanContextData;
7
- /**
8
- * Timestamp in seconds when the previous trace was started
9
- */
10
- startTimestamp: number;
11
- /**
12
- * sample rate of the previous trace
13
- */
14
- sampleRate: number;
15
- /**
16
- * The sample rand of the previous trace
17
- */
18
- sampleRand: number;
19
- }
20
- export declare const PREVIOUS_TRACE_MAX_DURATION = 3600;
21
- export declare const PREVIOUS_TRACE_KEY = "sentry_previous_trace";
22
- export declare const PREVIOUS_TRACE_TMP_SPAN_ATTRIBUTE = "sentry.previous_trace";
23
- /**
24
- * Takes care of linking traces and applying the (consistent) sampling behavoiour based on the passed options
25
- * @param options - options for linking traces and consistent trace sampling (@see BrowserTracingOptions)
26
- * @param client - Sentry client
27
- */
28
- export declare function linkTraces(client: Client, { linkPreviousTrace, consistentTraceSampling, }: {
29
- linkPreviousTrace: 'session-storage' | 'in-memory';
30
- consistentTraceSampling: boolean;
31
- }): void;
32
- /**
33
- * Adds a previous_trace span link to the passed span if the passed
34
- * previousTraceInfo is still valid.
35
- *
36
- * @returns the updated previous trace info (based on the current span/trace) to
37
- * be used on the next call
38
- */
39
- export declare function addPreviousTraceSpanLink(previousTraceInfo: PreviousTraceInfo | undefined, span: Span, oldPropagationContext: PropagationContext): PreviousTraceInfo;
40
- /**
41
- * Stores @param previousTraceInfo in sessionStorage.
42
- */
43
- export declare function storePreviousTraceInSessionStorage(previousTraceInfo: PreviousTraceInfo): void;
44
- /**
45
- * Retrieves the previous trace from sessionStorage if available.
46
- */
47
- export declare function getPreviousTraceFromSessionStorage(): PreviousTraceInfo | undefined;
48
- /**
49
- * see {@link import('@sentry/core/browser').spanIsSampled}
50
- */
51
- export declare function spanContextSampled(ctx: SpanContextData): boolean;
52
- //# sourceMappingURL=linkedTraces.d.ts.map
@@ -1,11 +0,0 @@
1
- import { Client } from '@sentry/core/browser';
2
- /**
3
- * Manually report the end of the page load, resulting in the SDK ending the pageload span.
4
- * This only works if {@link BrowserTracingOptions.enableReportPageLoaded} is set to `true`.
5
- * Otherwise, the pageload span will end itself based on the {@link BrowserTracingOptions.finalTimeout},
6
- * {@link BrowserTracingOptions.idleTimeout} and {@link BrowserTracingOptions.childSpanTimeout}.
7
- *
8
- * @param client - The client to use. If not provided, the global client will be used.
9
- */
10
- export declare function reportPageLoaded(client?: Client | undefined): void;
11
- //# sourceMappingURL=reportPageLoaded.d.ts.map