@sentry/core 10.39.0-alpha.0 → 10.40.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 (193) hide show
  1. package/build/cjs/attributes.js.map +1 -1
  2. package/build/cjs/client.js +7 -13
  3. package/build/cjs/client.js.map +1 -1
  4. package/build/cjs/envelope.js +7 -41
  5. package/build/cjs/envelope.js.map +1 -1
  6. package/build/cjs/exports.js +4 -2
  7. package/build/cjs/exports.js.map +1 -1
  8. package/build/cjs/fetch.js +8 -4
  9. package/build/cjs/fetch.js.map +1 -1
  10. package/build/cjs/index.js +3 -48
  11. package/build/cjs/index.js.map +1 -1
  12. package/build/cjs/integration.js +0 -12
  13. package/build/cjs/integration.js.map +1 -1
  14. package/build/cjs/integrations/eventFilters.js +1 -1
  15. package/build/cjs/integrations/eventFilters.js.map +1 -1
  16. package/build/cjs/integrations/requestdata.js +6 -72
  17. package/build/cjs/integrations/requestdata.js.map +1 -1
  18. package/build/cjs/semanticAttributes.js +0 -84
  19. package/build/cjs/semanticAttributes.js.map +1 -1
  20. package/build/cjs/tracing/langgraph/index.js +1 -1
  21. package/build/cjs/tracing/langgraph/index.js.map +1 -1
  22. package/build/cjs/tracing/sentrySpan.js +0 -32
  23. package/build/cjs/tracing/sentrySpan.js.map +1 -1
  24. package/build/cjs/tracing/trace.js +0 -1
  25. package/build/cjs/tracing/trace.js.map +1 -1
  26. package/build/cjs/tracing/vercel-ai/index.js +0 -1
  27. package/build/cjs/tracing/vercel-ai/index.js.map +1 -1
  28. package/build/cjs/utils/featureFlags.js +0 -1
  29. package/build/cjs/utils/featureFlags.js.map +1 -1
  30. package/build/cjs/utils/misc.js +7 -0
  31. package/build/cjs/utils/misc.js.map +1 -1
  32. package/build/cjs/utils/node-stack-trace.js +11 -2
  33. package/build/cjs/utils/node-stack-trace.js.map +1 -1
  34. package/build/cjs/utils/scopeData.js +0 -4
  35. package/build/cjs/utils/scopeData.js.map +1 -1
  36. package/build/cjs/utils/should-ignore-span.js +9 -31
  37. package/build/cjs/utils/should-ignore-span.js.map +1 -1
  38. package/build/cjs/utils/spanUtils.js +2 -90
  39. package/build/cjs/utils/spanUtils.js.map +1 -1
  40. package/build/cjs/utils/tunnel.js +74 -0
  41. package/build/cjs/utils/tunnel.js.map +1 -0
  42. package/build/cjs/utils/version.js +1 -1
  43. package/build/cjs/utils/version.js.map +1 -1
  44. package/build/cjs/utils/worldwide.js.map +1 -1
  45. package/build/esm/attributes.js.map +1 -1
  46. package/build/esm/client.js +3 -9
  47. package/build/esm/client.js.map +1 -1
  48. package/build/esm/envelope.js +8 -41
  49. package/build/esm/envelope.js.map +1 -1
  50. package/build/esm/exports.js +4 -2
  51. package/build/esm/exports.js.map +1 -1
  52. package/build/esm/fetch.js +8 -4
  53. package/build/esm/fetch.js.map +1 -1
  54. package/build/esm/index.js +5 -11
  55. package/build/esm/index.js.map +1 -1
  56. package/build/esm/integration.js +1 -12
  57. package/build/esm/integration.js.map +1 -1
  58. package/build/esm/integrations/eventFilters.js +1 -1
  59. package/build/esm/integrations/eventFilters.js.map +1 -1
  60. package/build/esm/integrations/requestdata.js +6 -72
  61. package/build/esm/integrations/requestdata.js.map +1 -1
  62. package/build/esm/package.json +1 -1
  63. package/build/esm/semanticAttributes.js +1 -57
  64. package/build/esm/semanticAttributes.js.map +1 -1
  65. package/build/esm/tracing/langgraph/index.js +1 -1
  66. package/build/esm/tracing/langgraph/index.js.map +1 -1
  67. package/build/esm/tracing/sentrySpan.js +1 -33
  68. package/build/esm/tracing/sentrySpan.js.map +1 -1
  69. package/build/esm/tracing/trace.js +0 -1
  70. package/build/esm/tracing/trace.js.map +1 -1
  71. package/build/esm/tracing/vercel-ai/index.js +0 -1
  72. package/build/esm/tracing/vercel-ai/index.js.map +1 -1
  73. package/build/esm/utils/featureFlags.js +0 -1
  74. package/build/esm/utils/featureFlags.js.map +1 -1
  75. package/build/esm/utils/misc.js +7 -1
  76. package/build/esm/utils/misc.js.map +1 -1
  77. package/build/esm/utils/node-stack-trace.js +11 -2
  78. package/build/esm/utils/node-stack-trace.js.map +1 -1
  79. package/build/esm/utils/scopeData.js +0 -4
  80. package/build/esm/utils/scopeData.js.map +1 -1
  81. package/build/esm/utils/should-ignore-span.js +9 -31
  82. package/build/esm/utils/should-ignore-span.js.map +1 -1
  83. package/build/esm/utils/spanUtils.js +3 -87
  84. package/build/esm/utils/spanUtils.js.map +1 -1
  85. package/build/esm/utils/tunnel.js +72 -0
  86. package/build/esm/utils/tunnel.js.map +1 -0
  87. package/build/esm/utils/version.js +1 -1
  88. package/build/esm/utils/version.js.map +1 -1
  89. package/build/esm/utils/worldwide.js.map +1 -1
  90. package/build/types/attributes.d.ts +1 -1
  91. package/build/types/attributes.d.ts.map +1 -1
  92. package/build/types/client.d.ts +2 -40
  93. package/build/types/client.d.ts.map +1 -1
  94. package/build/types/envelope.d.ts +1 -6
  95. package/build/types/envelope.d.ts.map +1 -1
  96. package/build/types/exports.d.ts.map +1 -1
  97. package/build/types/fetch.d.ts.map +1 -1
  98. package/build/types/index.d.ts +7 -12
  99. package/build/types/index.d.ts.map +1 -1
  100. package/build/types/integration.d.ts +0 -4
  101. package/build/types/integration.d.ts.map +1 -1
  102. package/build/types/integrations/requestdata.d.ts.map +1 -1
  103. package/build/types/semanticAttributes.d.ts +0 -38
  104. package/build/types/semanticAttributes.d.ts.map +1 -1
  105. package/build/types/tracing/sentrySpan.d.ts +1 -10
  106. package/build/types/tracing/sentrySpan.d.ts.map +1 -1
  107. package/build/types/tracing/vercel-ai/index.d.ts.map +1 -1
  108. package/build/types/types-hoist/envelope.d.ts +2 -22
  109. package/build/types/types-hoist/envelope.d.ts.map +1 -1
  110. package/build/types/types-hoist/integration.d.ts +0 -7
  111. package/build/types/types-hoist/integration.d.ts.map +1 -1
  112. package/build/types/types-hoist/link.d.ts +2 -2
  113. package/build/types/types-hoist/link.d.ts.map +1 -1
  114. package/build/types/types-hoist/options.d.ts +2 -18
  115. package/build/types/types-hoist/options.d.ts.map +1 -1
  116. package/build/types/types-hoist/span.d.ts +0 -27
  117. package/build/types/types-hoist/span.d.ts.map +1 -1
  118. package/build/types/utils/featureFlags.d.ts.map +1 -1
  119. package/build/types/utils/misc.d.ts +7 -0
  120. package/build/types/utils/misc.d.ts.map +1 -1
  121. package/build/types/utils/node-stack-trace.d.ts.map +1 -1
  122. package/build/types/utils/scopeData.d.ts.map +1 -1
  123. package/build/types/utils/should-ignore-span.d.ts +3 -3
  124. package/build/types/utils/should-ignore-span.d.ts.map +1 -1
  125. package/build/types/utils/spanUtils.d.ts +2 -22
  126. package/build/types/utils/spanUtils.d.ts.map +1 -1
  127. package/build/types/utils/tunnel.d.ts +16 -0
  128. package/build/types/utils/tunnel.d.ts.map +1 -0
  129. package/build/types/utils/worldwide.d.ts +0 -2
  130. package/build/types/utils/worldwide.d.ts.map +1 -1
  131. package/build/types-ts3.8/attributes.d.ts +1 -1
  132. package/build/types-ts3.8/client.d.ts +2 -40
  133. package/build/types-ts3.8/envelope.d.ts +1 -6
  134. package/build/types-ts3.8/index.d.ts +7 -12
  135. package/build/types-ts3.8/integration.d.ts +0 -4
  136. package/build/types-ts3.8/semanticAttributes.d.ts +0 -38
  137. package/build/types-ts3.8/tracing/sentrySpan.d.ts +1 -10
  138. package/build/types-ts3.8/types-hoist/envelope.d.ts +2 -22
  139. package/build/types-ts3.8/types-hoist/integration.d.ts +0 -7
  140. package/build/types-ts3.8/types-hoist/link.d.ts +2 -2
  141. package/build/types-ts3.8/types-hoist/options.d.ts +2 -18
  142. package/build/types-ts3.8/types-hoist/span.d.ts +0 -27
  143. package/build/types-ts3.8/utils/misc.d.ts +7 -0
  144. package/build/types-ts3.8/utils/should-ignore-span.d.ts +3 -3
  145. package/build/types-ts3.8/utils/spanUtils.d.ts +2 -22
  146. package/build/types-ts3.8/utils/tunnel.d.ts +16 -0
  147. package/build/types-ts3.8/utils/worldwide.d.ts +0 -2
  148. package/package.json +2 -3
  149. package/build/cjs/integrations/spanStreaming.js +0 -54
  150. package/build/cjs/integrations/spanStreaming.js.map +0 -1
  151. package/build/cjs/spans/captureSpan.js +0 -104
  152. package/build/cjs/spans/captureSpan.js.map +0 -1
  153. package/build/cjs/spans/spanBuffer.js +0 -121
  154. package/build/cjs/spans/spanBuffer.js.map +0 -1
  155. package/build/cjs/spans/spanFirstUtils.js +0 -186
  156. package/build/cjs/spans/spanFirstUtils.js.map +0 -1
  157. package/build/cjs/utils/beforeSendSpan.js +0 -36
  158. package/build/cjs/utils/beforeSendSpan.js.map +0 -1
  159. package/build/cjs/utils/hasSpanStreamingEnabled.js +0 -21
  160. package/build/cjs/utils/hasSpanStreamingEnabled.js.map +0 -1
  161. package/build/esm/integrations/spanStreaming.js +0 -52
  162. package/build/esm/integrations/spanStreaming.js.map +0 -1
  163. package/build/esm/spans/captureSpan.js +0 -102
  164. package/build/esm/spans/captureSpan.js.map +0 -1
  165. package/build/esm/spans/spanBuffer.js +0 -119
  166. package/build/esm/spans/spanBuffer.js.map +0 -1
  167. package/build/esm/spans/spanFirstUtils.js +0 -182
  168. package/build/esm/spans/spanFirstUtils.js.map +0 -1
  169. package/build/esm/utils/beforeSendSpan.js +0 -33
  170. package/build/esm/utils/beforeSendSpan.js.map +0 -1
  171. package/build/esm/utils/hasSpanStreamingEnabled.js +0 -19
  172. package/build/esm/utils/hasSpanStreamingEnabled.js.map +0 -1
  173. package/build/types/integrations/spanStreaming.d.ts +0 -11
  174. package/build/types/integrations/spanStreaming.d.ts.map +0 -1
  175. package/build/types/spans/captureSpan.d.ts +0 -10
  176. package/build/types/spans/captureSpan.d.ts.map +0 -1
  177. package/build/types/spans/spanBuffer.d.ts +0 -35
  178. package/build/types/spans/spanBuffer.d.ts.map +0 -1
  179. package/build/types/spans/spanFirstUtils.d.ts +0 -20
  180. package/build/types/spans/spanFirstUtils.d.ts.map +0 -1
  181. package/build/types/types-hoist/attributes.d.ts +0 -19
  182. package/build/types/types-hoist/attributes.d.ts.map +0 -1
  183. package/build/types/utils/beforeSendSpan.d.ts +0 -22
  184. package/build/types/utils/beforeSendSpan.d.ts.map +0 -1
  185. package/build/types/utils/hasSpanStreamingEnabled.d.ts +0 -9
  186. package/build/types/utils/hasSpanStreamingEnabled.d.ts.map +0 -1
  187. package/build/types-ts3.8/integrations/spanStreaming.d.ts +0 -11
  188. package/build/types-ts3.8/spans/captureSpan.d.ts +0 -10
  189. package/build/types-ts3.8/spans/spanBuffer.d.ts +0 -35
  190. package/build/types-ts3.8/spans/spanFirstUtils.d.ts +0 -20
  191. package/build/types-ts3.8/types-hoist/attributes.d.ts +0 -19
  192. package/build/types-ts3.8/utils/beforeSendSpan.d.ts +0 -22
  193. package/build/types-ts3.8/utils/hasSpanStreamingEnabled.d.ts +0 -9
@@ -1 +1 @@
1
- {"version":3,"file":"span.d.ts","sourceRoot":"","sources":["../../../src/types-hoist/span.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvD,KAAK,cAAc,GAAG,QAAQ,GAAG,MAAM,CAAC;AACxC,KAAK,kBAAkB,GAAG,MAAM,CAAC;AACjC,KAAK,yBAAyB,GAAG,MAAM,CAAC;AACxC,KAAK,yBAAyB,GAAG,MAAM,CAAC;AACxC,MAAM,MAAM,UAAU,GAClB,cAAc,GACd,GAAG,cAAc,IAAI,kBAAkB,EAAE,GACzC,GAAG,cAAc,IAAI,kBAAkB,IAAI,yBAAyB,EAAE,GACtE,GAAG,cAAc,IAAI,kBAAkB,IAAI,yBAA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;GAUG;AACH,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,EACd,OAAO,GAAE,MAAmC,GAC3C,IAAI,CAON;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,WAAW,EAAE,EACpB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,MAAM,GACd,IAAI,CA4BN;AAED;;;;;;;;GAQG;AACH,wBAAgB,oCAAoC,CAClD,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,EACd,eAAe,GAAE,MAAqC,GACrD,IAAI,CAuBN"}
@@ -76,5 +76,12 @@ export declare function addContextToFrame(lines: string[], frame: StackFrame, li
76
76
  * @returns `true` if the exception has already been captured, `false` if not (with the side effect of marking it seen)
77
77
  */
78
78
  export declare function checkOrSetAlreadyCaught(exception: unknown): boolean;
79
+ /**
80
+ * Checks whether we've already captured the given exception (note: not an identical exception - the very object).
81
+ * It is considered already captured if it has the `__sentry_captured__` property set to `true`.
82
+ *
83
+ * @internal Only considered for internal usage
84
+ */
85
+ export declare function isAlreadyCaptured(exception: unknown): boolean | void;
79
86
  export {};
80
87
  //# sourceMappingURL=misc.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../src/utils/misc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAM5D,UAAU,cAAc;IACtB,UAAU,CAAC,IAAI,MAAM,CAAC;CACvB;AAmBD;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,MAAM,6BAAc,GAAG,MAAM,CAqBlD;AAMD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,K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H,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,GAAE,OAAe,GAAG,OAAO,CAkBpF;AAED,6BAA6B;AAC7B,wBAAgB,IAAI,CAAC,SAAS,CAAC,EAAE,WAAW,GAAG,iBAAiB,CAmF/D;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,CAAC,EAAE,WAAW,GAAG,eAAe,CAE5E"}
1
+ {"version":3,"file":"node-stack-trace.d.ts","sourceRoot":"","sources":["../../../src/utils/node-stack-trace.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGpF,MAAM,MAAM,WAAW,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,KAAK,MAAM,GAAG,SAAS,CAAC;AAE/E;;GAEG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,GAAE,OAAe,GAAG,OAAO,CAkBpF;AAED,6BAA6B;AAC7B,wBAAgB,IAAI,CAAC,SAAS,CAAC,EAAE,WAAW,GAAG,iBAAiB,CAoF/D;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,CAAC,EAAE,WAAW,GAAG,eAAe,CAE5E"}
@@ -1 +1 @@
1
- {"version":3,"file":"scopeData.d.ts","sourceRoot":"","sources":["../../../src/utils/scopeData.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAKlD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI,CAgBzE;AAED,yCAAyC;AACzC,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI,CA2D1E;AAED;;;G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BAA8B;AAC9B,wBAAgB,UAAU,CAAC,IAAI,SAAS,aAAa,GAAG,aAAa,EACnE,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,GACxB,IAAI,CAUN;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,KAAK,GAAG,SAAS,EAAE,YAAY,EAAE,KAAK,GAAG,SAAS,GAAG,SAAS,CAKlH"}
@@ -1,12 +1,12 @@
1
1
  import type { ClientOptions } from '../types-hoist/options';
2
- import type { SpanJSON, SpanV2JSON } from '../types-hoist/span';
2
+ import type { SpanJSON } from '../types-hoist/span';
3
3
  /**
4
4
  * Check if a span should be ignored based on the ignoreSpans configuration.
5
5
  */
6
- export declare function shouldIgnoreSpan(span: Pick<SpanJSON, 'description' | 'op'> | Pick<SpanV2JSON, 'name' | 'attributes'>, ignoreSpans: Required<ClientOptions>['ignoreSpans']): boolean;
6
+ export declare function shouldIgnoreSpan(span: Pick<SpanJSON, 'description' | 'op'>, ignoreSpans: Required<ClientOptions>['ignoreSpans']): boolean;
7
7
  /**
8
8
  * Takes a list of spans, and a span that was dropped, and re-parents the child spans of the dropped span to the parent of the dropped span, if possible.
9
9
  * This mutates the spans array in place!
10
10
  */
11
- export declare function reparentChildSpans(spans: Pick<SpanV2JSON, 'parent_span_id' | 'span_id'>[], dropSpan: Pick<SpanV2JSON, 'parent_span_id' | 'span_id'>): void;
11
+ export declare function reparentChildSpans(spans: SpanJSON[], dropSpan: SpanJSON): void;
12
12
  //# sourceMappingURL=should-ignore-span.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"should-ignore-span.d.ts","sourceRoot":"","sources":["../../../src/utils/should-ignore-span.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAQhE;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,YAAY,CAAC,EACpF,WAAW,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC,aAAa,CAAC,GAClD,OAAO,CAkDT;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,gBAAgB,GAAG,SAAS,CAAC,EAAE,EACvD,QAAQ,EAAE,IAAI,CAAC,UAAU,EAAE,gBAAgB,GAAG,SAAS,CAAC,GACvD,IAAI,CAeN"}
1
+ {"version":3,"file":"should-ignore-span.d.ts","sourceRoot":"","sources":["../../../src/utils/should-ignore-span.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAQpD;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC,EAC1C,WAAW,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC,aAAa,CAAC,GAClD,OAAO,CAgCT;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAe9E"}
@@ -1,7 +1,6 @@
1
- import type { Attributes } from '../attributes';
2
1
  import type { TraceContext } from '../types-hoist/context';
3
2
  import type { SpanLink, SpanLinkJSON } from '../types-hoist/link';
4
- import type { Span, SpanAttributes, SpanJSON, SpanTimeInput, SpanV2JSON } from '../types-hoist/span';
3
+ import type { Span, SpanAttributes, SpanJSON, SpanTimeInput } from '../types-hoist/span';
5
4
  import type { SpanStatus } from '../types-hoist/spanStatus';
6
5
  export declare const TRACE_FLAG_NONE = 0;
7
6
  export declare const TRACE_FLAG_SAMPLED = 1;
@@ -29,12 +28,6 @@ export declare function spanToTraceparentHeader(span: Span): string;
29
28
  * If the links array is empty, it returns `undefined` so the empty value can be dropped before it's sent.
30
29
  */
31
30
  export declare function convertSpanLinksForEnvelope(links?: SpanLink[]): SpanLinkJSON[] | undefined;
32
- /**
33
- *
34
- * @param links
35
- * @returns
36
- */
37
- export declare function getV2SpanLinks(links?: SpanLink[]): SpanLinkJSON<Attributes>[] | undefined;
38
31
  /**
39
32
  * Convert a span time input into a timestamp in seconds.
40
33
  */
@@ -43,11 +36,6 @@ export declare function spanTimeInputToSeconds(input: SpanTimeInput | undefined)
43
36
  * Convert a span to a JSON representation.
44
37
  */
45
38
  export declare function spanToJSON(span: Span): SpanJSON;
46
- /**
47
- * Convert a span to a SpanV2JSON representation.
48
- * @returns
49
- */
50
- export declare function spanToV2JSON(span: Span): SpanV2JSON;
51
39
  /** Exported only for tests. */
52
40
  export interface OpenTelemetrySdkTraceBaseSpan extends Span {
53
41
  attributes: SpanAttributes;
@@ -67,10 +55,6 @@ export interface OpenTelemetrySdkTraceBaseSpan extends Span {
67
55
  export declare function spanIsSampled(span: Span): boolean;
68
56
  /** Get the status message to use for a JSON representation of a span. */
69
57
  export declare function getStatusMessage(status: SpanStatus | undefined): string | undefined;
70
- /**
71
- * Convert the various statuses to the ones expected by Sentry ('ok' is default)
72
- */
73
- export declare function getV2StatusMessage(status: SpanStatus | undefined): 'ok' | 'error';
74
58
  declare const CHILD_SPANS_FIELD = "_sentryChildSpans";
75
59
  declare const ROOT_SPAN_FIELD = "_sentryRootSpan";
76
60
  type SpanWithPotentialChildren = Span & {
@@ -90,11 +74,7 @@ export declare function getSpanDescendants(span: SpanWithPotentialChildren): Spa
90
74
  /**
91
75
  * Returns the root span of a given span.
92
76
  */
93
- export declare const getRootSpan: typeof INTERNAL_getSegmentSpan;
94
- /**
95
- * Returns the segment span of a given span.
96
- */
97
- export declare function INTERNAL_getSegmentSpan(span: SpanWithPotentialChildren): Span;
77
+ export declare function getRootSpan(span: SpanWithPotentialChildren): Span;
98
78
  /**
99
79
  * Returns the currently active span.
100
80
  */
@@ -1 +1 @@
1
- {"version":3,"file":"spanUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/spanUtils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAahD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAc,aAAa,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAS5D,eAAO,MAAM,eAAe,IAAM,CAAC;AACnC,eAAO,MAAM,kBAAkB,IAAM,CAAC;AAItC;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,CActE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,CAe3D;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAIpD;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAI1D;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,GAAG,YAAY,EAAE,GAAG,SAAS,CAY1F;AACD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,GAAG,YAAY,CAAC,UAAU,CAAC,EAAE,GAAG,SAAS,CAYzF;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,aAAa,GAAG,S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,CAoB1E;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,yBAAyB,GAAG,IAAI,CAEjE;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,IAAI,GAAG,SAAS,CAQhD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAU1C;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAM7D"}
@@ -0,0 +1,16 @@
1
+ export interface HandleTunnelRequestOptions {
2
+ /** Incoming request containing the Sentry envelope as its body */
3
+ request: Request;
4
+ /** Pre-parsed array of allowed DSN strings */
5
+ allowedDsns: Array<string>;
6
+ }
7
+ /**
8
+ * Core Sentry tunnel handler - framework agnostic.
9
+ *
10
+ * Validates the envelope DSN against allowed DSNs, then forwards the
11
+ * envelope to the Sentry ingest endpoint.
12
+ *
13
+ * @returns A `Response` — either the upstream Sentry response on success, or an error response.
14
+ */
15
+ export declare function handleTunnelRequest(options: HandleTunnelRequestOptions): Promise<Response>;
16
+ //# sourceMappingURL=tunnel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tunnel.d.ts","sourceRoot":"","sources":["../../../src/utils/tunnel.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,0BAA0B;IACzC,kEAAkE;IAClE,OAAO,EAAE,OAAO,CAAC;IACjB,8CAA8C;IAC9C,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED;;;;;;;GAOG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,0BAA0B,GAAG,OAAO,CAAC,QAAQ,CAAC,CAuDhG"}
@@ -53,8 +53,6 @@ export type InternalGlobal = {
53
53
  */
54
54
  _sentryModuleMetadata?: Record<string, any>;
55
55
  _sentryEsmLoaderHookRegistered?: boolean;
56
- _sentryInjectLoaderHookRegister?: () => void;
57
- _sentryInjectLoaderHookRegistered?: boolean;
58
56
  } & Carrier;
59
57
  /** Get's the global object for the current JavaScript runtime */
60
58
  export declare const GLOBAL_OBJ: InternalGlobal;
@@ -1 +1 @@
1
- {"version":3,"file":"worldwide.d.ts","sourceRoot":"","sources":["../../../src/utils/worldwide.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,oEAAoE;AACpE,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,cAAc,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5D,OAAO,EAAE,OAAO,CAAC;IACjB,mBAAmB,CAAC,EAAE,GAAG,CAAC;IAC1B,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,OAAO,CAAC,EAAE;QACR,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK,GAAG,GAAG,CAAC;QAC/F,uBAAuB,CAAC,EAAE,IAAI,CAAC;KAChC,CAAC;IACF,oBAAoB,CAAC,EAAE;QACrB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC;QAC1B,uBAAuB,CAAC,EAAE,IAAI,CAAC;KAChC,CAAC;IACF,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE;QACf,EAAE,CAAC,EAAE,MAAM,CAAC;KACb,CAAC;IACF,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC;;;;OAIG;IAC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,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE;QACf,EAAE,CAAC,EAAE,MAAM,CAAC;KACb,CAAC;IACF,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5C,8BAA8B,CAAC,EAAE,OAAO,CAAC;CAC1C,GAAG,OAAO,CAAC;AAEZ,iEAAiE;AACjE,eAAO,MAAM,UAAU,EAA4B,cAAc,CAAC"}
@@ -30,7 +30,7 @@ export type AttributeObject = {
30
30
  value: unknown;
31
31
  unit?: AttributeUnit;
32
32
  };
33
- export type AttributeUnit = DurationUnit | InformationUnit | FractionUnit;
33
+ type AttributeUnit = DurationUnit | InformationUnit | FractionUnit;
34
34
  export type ValidatedAttributes<T> = {
35
35
  [K in keyof T]: T[K] extends {
36
36
  value: any;
@@ -1,5 +1,5 @@
1
1
  import { IntegrationIndex } from './integration';
2
- import { Scope, ScopeData } from './scope';
2
+ import { Scope } from './scope';
3
3
  import { Breadcrumb, BreadcrumbHint, FetchBreadcrumbHint, XhrBreadcrumbHint } from './types-hoist/breadcrumb';
4
4
  import { CheckIn, MonitorConfig } from './types-hoist/checkin';
5
5
  import { EventDropReason, Outcome } from './types-hoist/clientreport';
@@ -18,7 +18,7 @@ import { RequestEventData } from './types-hoist/request';
18
18
  import { SdkMetadata } from './types-hoist/sdkmetadata';
19
19
  import { Session, SessionAggregates } from './types-hoist/session';
20
20
  import { SeverityLevel } from './types-hoist/severity';
21
- import { Span, SpanAttributes, SpanContextData, SpanV2JSON, SpanV2JSONWithSegmentRef } from './types-hoist/span';
21
+ import { Span, SpanAttributes, SpanContextData } from './types-hoist/span';
22
22
  import { StartSpanOptions } from './types-hoist/startSpanOptions';
23
23
  import { Transport, TransportMakeRequestResponse } from './types-hoist/transport';
24
24
  /**
@@ -207,30 +207,6 @@ export declare abstract class Client<O extends ClientOptions = ClientOptions> {
207
207
  * @returns {() => void} A function that, when executed, removes the registered callback.
208
208
  */
209
209
  on(hook: 'spanEnd', callback: (span: Span) => void): () => void;
210
- /**
211
- * Register a callback for after a span is ended.
212
- */
213
- on(hook: 'afterSpanEnd', callback: (span: Span) => void): () => void;
214
- /**
215
- * Register a callback for after a segment span is ended.
216
- */
217
- on(hook: 'afterSegmentSpanEnd', callback: (span: Span) => void): () => void;
218
- /**
219
- * Register a callback for when the span JSON is ready to be enqueued into the span buffer.
220
- */
221
- on(hook: 'enqueueSpan', callback: (spanJSON: SpanV2JSONWithSegmentRef) => void): () => void;
222
- /**
223
- * Register a callback for when a span JSON is processed, to add some data to the span JSON.
224
- */
225
- on(hook: 'processSpan', callback: (spanJSON: SpanV2JSON, hint: {
226
- readOnlySpan: Span;
227
- }) => void): () => void;
228
- /**
229
- * Register a callback for when a segment span JSON is processed, to add some data to the segment span JSON.
230
- */
231
- on(hook: 'processSegmentSpan', callback: (spanJSON: SpanV2JSON, hint: {
232
- scopeData: ScopeData;
233
- }) => void): () => void;
234
210
  /**
235
211
  * Register a callback for when an idle span is allowed to auto-finish.
236
212
  * @returns {() => void} A function that, when executed, removes the registered callback.
@@ -426,20 +402,6 @@ export declare abstract class Client<O extends ClientOptions = ClientOptions> {
426
402
  }): void;
427
403
  /** Fire a hook whenever a span ends. */
428
404
  emit(hook: 'spanEnd', span: Span): void;
429
- /** Fire a hook after the `spanEnd` hook */
430
- emit(hook: 'afterSpanEnd', span: Span): void;
431
- /** Fire a hook after a span is processed, to add some attributes to the span JSON. */
432
- emit(hook: 'processSpan', spanJSON: SpanV2JSON, hint: {
433
- readOnlySpan: Span;
434
- }): void;
435
- /** Fire a hook after a span is processed, to add some attributes to the span JSON. */
436
- emit(hook: 'processSegmentSpan', spanJSON: SpanV2JSON, hint: {
437
- scopeData: ScopeData;
438
- }): void;
439
- /** Fire a hook after the `segmentSpanEnd` hook is fired. */
440
- emit(hook: 'afterSegmentSpanEnd', span: Span): void;
441
- /** Fire a hook after a span ready to be enqueued into the span buffer. */
442
- emit(hook: 'enqueueSpan', spanJSON: SpanV2JSONWithSegmentRef): void;
443
405
  /**
444
406
  * Fire a hook indicating that an idle span is allowed to auto finish.
445
407
  */
@@ -2,12 +2,11 @@ import { Client } from './client';
2
2
  import { SentrySpan } from './tracing/sentrySpan';
3
3
  import { LegacyCSPReport } from './types-hoist/csp';
4
4
  import { DsnComponents } from './types-hoist/dsn';
5
- import { DynamicSamplingContext, EventEnvelope, RawSecurityEnvelope, SessionEnvelope, SpanEnvelope, SpanV2Envelope } from './types-hoist/envelope';
5
+ import { EventEnvelope, RawSecurityEnvelope, SessionEnvelope, SpanEnvelope } from './types-hoist/envelope';
6
6
  import { Event } from './types-hoist/event';
7
7
  import { SdkInfo } from './types-hoist/sdkinfo';
8
8
  import { SdkMetadata } from './types-hoist/sdkmetadata';
9
9
  import { Session, SessionAggregates } from './types-hoist/session';
10
- import { SpanV2JSON } from './types-hoist/span';
11
10
  /**
12
11
  * Apply SdkInfo (name, version, packages, integrations) to the corresponding event key.
13
12
  * Merge with existing data if any.
@@ -30,10 +29,6 @@ export declare function createSpanEnvelope(spans: [
30
29
  SentrySpan,
31
30
  ...SentrySpan[]
32
31
  ], client?: Client): SpanEnvelope;
33
- /**
34
- * Creates a span v2 envelope
35
- */
36
- export declare function createSpanV2Envelope(serializedSpans: SpanV2JSON[], dsc: Partial<DynamicSamplingContext>, client: Client): SpanV2Envelope;
37
32
  /**
38
33
  * Create an Envelope from a CSP report.
39
34
  */
@@ -6,7 +6,7 @@ export { ServerRuntimeClientOptions } from './server-runtime-client';
6
6
  export { IntegrationIndex } from './integration';
7
7
  export * from './tracing';
8
8
  export * from './semanticAttributes';
9
- export { createEventEnvelope, createSessionEnvelope, createSpanEnvelope, createSpanV2Envelope } from './envelope';
9
+ export { createEventEnvelope, createSessionEnvelope, createSpanEnvelope } from './envelope';
10
10
  export { captureCheckIn, withMonitor, captureException, captureEvent, captureMessage, lastEventId, close, flush, setContext, setExtra, setExtras, setTag, setTags, setUser, setConversationId, isInitialized, isEnabled, startSession, endSession, captureSession, addEventProcessor, } from './exports';
11
11
  export { getCurrentScope, getIsolationScope, getGlobalScope, withScope, withIsolationScope, getClient, getTraceContextFromScope, } from './currentScopes';
12
12
  export { getDefaultCurrentScope, getDefaultIsolationScope } from './defaultScopes';
@@ -31,16 +31,14 @@ export { prepareEvent } from './utils/prepareEvent';
31
31
  export { ExclusiveEventHintOrCaptureContext } from './utils/prepareEvent';
32
32
  export { createCheckInEnvelope } from './checkin';
33
33
  export { hasSpansEnabled } from './utils/hasSpansEnabled';
34
- export { hasSpanStreamingEnabled } from './utils/hasSpanStreamingEnabled';
35
34
  export { isSentryRequestUrl } from './utils/isSentryRequestUrl';
36
35
  export { handleCallbackErrors } from './utils/handleCallbackErrors';
37
36
  export { parameterize, fmt } from './utils/parameterize';
37
+ export { HandleTunnelRequestOptions } from './utils/tunnel';
38
+ export { handleTunnelRequest } from './utils/tunnel';
38
39
  export { addAutoIpAddressToSession } from './utils/ipAddress';
39
40
  export { addAutoIpAddressToUser } from './utils/ipAddress';
40
- export { convertSpanLinksForEnvelope, spanToTraceHeader, spanToJSON, spanIsSampled, spanToTraceContext, getSpanDescendants, getStatusMessage, getRootSpan, INTERNAL_getSegmentSpan, getActiveSpan, addChildSpanToSpan, spanTimeInputToSeconds, updateSpanName, spanToV2JSON, showSpanDropWarning, } from './utils/spanUtils';
41
- export { captureSpan } from './spans/captureSpan';
42
- export { safeSetSpanJSONAttributes } from './spans/spanFirstUtils';
43
- export { SpanBuffer, SpanBufferOptions } from './spans/spanBuffer';
41
+ export { convertSpanLinksForEnvelope, spanToTraceHeader, spanToJSON, spanIsSampled, spanToTraceContext, getSpanDescendants, getStatusMessage, getRootSpan, getActiveSpan, addChildSpanToSpan, spanTimeInputToSeconds, updateSpanName, } from './utils/spanUtils';
44
42
  export { _setSpanForScope as _INTERNAL_setSpanForScope } from './utils/spanOnScope';
45
43
  export { parseSampleRate } from './utils/parseSampleRate';
46
44
  export { applySdkMetadata } from './utils/sdkMetadata';
@@ -68,7 +66,6 @@ export { consoleIntegration } from './integrations/console';
68
66
  export { featureFlagsIntegration, FeatureFlagsIntegration } from './integrations/featureFlags';
69
67
  export { growthbookIntegration } from './integrations/featureFlags';
70
68
  export { conversationIdIntegration } from './integrations/conversationId';
71
- export { spanStreamingIntegration } from './integrations/spanStreaming';
72
69
  export { profiler } from './profiling';
73
70
  export { instrumentFetchRequest } from './fetch';
74
71
  export { trpcMiddleware } from './trpc';
@@ -120,7 +117,7 @@ export { isDOMError, isDOMException, isElement, isError, isErrorEvent, isEvent,
120
117
  export { isBrowser } from './utils/isBrowser';
121
118
  export { CONSOLE_LEVELS, consoleSandbox, debug, originalConsoleMethods } from './utils/debug-logger';
122
119
  export { SentryDebugLogger } from './utils/debug-logger';
123
- export { addContextToFrame, addExceptionMechanism, addExceptionTypeValue, checkOrSetAlreadyCaught, getEventDescription, parseSemver, uuid4, } from './utils/misc';
120
+ export { addContextToFrame, addExceptionMechanism, addExceptionTypeValue, checkOrSetAlreadyCaught, isAlreadyCaptured, getEventDescription, parseSemver, uuid4, } from './utils/misc';
124
121
  export { isNodeEnv, loadModule } from './utils/node';
125
122
  export { normalize, normalizeToSize, normalizeUrlToBase } from './utils/normalize';
126
123
  export { addNonEnumerableProperty, convertToPlainObject, dropUndefinedKeys, extractExceptionKeysForMessage, fill, getOriginalFunction, markFunctionWrapped, objectify, } from './utils/object';
@@ -154,8 +151,6 @@ export { SDK_VERSION } from './utils/version';
154
151
  export { getDebugImagesForResources, getFilenameToDebugIdMap } from './utils/debug-ids';
155
152
  export { getFilenameToMetadataMap } from './metadata';
156
153
  export { escapeStringForRegex } from './vendor/escapeStringForRegex';
157
- export { isV2BeforeSendSpanCallback, withStreamSpan } from './utils/beforeSendSpan';
158
- export { shouldIgnoreSpan, reparentChildSpans } from './utils/should-ignore-span';
159
154
  export { Attachment } from './types-hoist/attachment';
160
155
  export { Breadcrumb, BreadcrumbHint, FetchBreadcrumbData, XhrBreadcrumbData, FetchBreadcrumbHint, XhrBreadcrumbHint, } from './types-hoist/breadcrumb';
161
156
  export { ClientReport, Outcome, EventDropReason } from './types-hoist/clientreport';
@@ -163,7 +158,7 @@ export { Context, Contexts, DeviceContext, OsContext, AppContext, CultureContext
163
158
  export { DataCategory } from './types-hoist/datacategory';
164
159
  export { DsnComponents, DsnLike, DsnProtocol } from './types-hoist/dsn';
165
160
  export { DebugImage, DebugMeta } from './types-hoist/debugMeta';
166
- export { AttachmentItem, BaseEnvelopeHeaders, BaseEnvelopeItemHeaders, ClientReportEnvelope, ClientReportItem, DynamicSamplingContext, Envelope, EnvelopeItemType, EnvelopeItem, EventEnvelope, EventEnvelopeHeaders, EventItem, ReplayEnvelope, FeedbackItem, SessionEnvelope, SessionItem, UserFeedbackItem, CheckInItem, CheckInEnvelope, RawSecurityEnvelope, RawSecurityItem, ProfileItem, ProfileChunkEnvelope, ProfileChunkItem, SpanEnvelope, SpanV2Envelope, SpanItem, LogEnvelope, MetricEnvelope, } from './types-hoist/envelope';
161
+ export { AttachmentItem, BaseEnvelopeHeaders, BaseEnvelopeItemHeaders, ClientReportEnvelope, ClientReportItem, DynamicSamplingContext, Envelope, EnvelopeItemType, EnvelopeItem, EventEnvelope, EventEnvelopeHeaders, EventItem, ReplayEnvelope, FeedbackItem, SessionEnvelope, SessionItem, UserFeedbackItem, CheckInItem, CheckInEnvelope, RawSecurityEnvelope, RawSecurityItem, ProfileItem, ProfileChunkEnvelope, ProfileChunkItem, SpanEnvelope, SpanItem, LogEnvelope, MetricEnvelope, } from './types-hoist/envelope';
167
162
  export { ExtendedError } from './types-hoist/error';
168
163
  export { Event, EventHint, EventType, ErrorEvent, TransactionEvent } from './types-hoist/event';
169
164
  export { EventProcessor } from './types-hoist/eventprocessor';
@@ -184,7 +179,7 @@ export { SdkInfo } from './types-hoist/sdkinfo';
184
179
  export { SdkMetadata } from './types-hoist/sdkmetadata';
185
180
  export { SessionAggregates, AggregationCounts, Session, SessionContext, SessionStatus, SerializedSession, } from './types-hoist/session';
186
181
  export { SeverityLevel } from './types-hoist/severity';
187
- export { Span, SentrySpanArguments, SpanOrigin, SpanAttributeValue, SpanAttributes, SpanTimeInput, SpanJSON, SpanContextData, TraceFlag, SpanV2JSON, SpanV2JSONWithSegmentRef, SerializedSpanContainer, } from './types-hoist/span';
182
+ export { Span, SentrySpanArguments, SpanOrigin, SpanAttributeValue, SpanAttributes, SpanTimeInput, SpanJSON, SpanContextData, TraceFlag, } from './types-hoist/span';
188
183
  export { SpanStatus } from './types-hoist/spanStatus';
189
184
  export { Log, LogSeverityLevel } from './types-hoist/log';
190
185
  export { Metric, MetricType, SerializedMetric, SerializedMetricContainer, SerializedMetricAttributeValue, } from './types-hoist/metric';
@@ -15,10 +15,6 @@ export declare function getIntegrationsToSetup(options: Pick<CoreOptions, 'defau
15
15
  * @param withDefault should enable default integrations
16
16
  */
17
17
  export declare function setupIntegrations(client: Client, integrations: Integration[]): IntegrationIndex;
18
- /**
19
- * Runs the `beforeSetup` hooks of the given integrations on the given client.
20
- */
21
- export declare function beforeSetupIntegrations(client: Client, integrations: Integration[]): void;
22
18
  /**
23
19
  * Execute the `afterAllSetup` hooks of the given integrations.
24
20
  */
@@ -4,7 +4,6 @@
4
4
  *
5
5
  */
6
6
  export declare const SEMANTIC_ATTRIBUTE_SENTRY_SOURCE = "sentry.source";
7
- export declare const SEMANTIC_ATTRIBUTE_SENTRY_SPAN_SOURCE = "sentry.span.source";
8
7
  /**
9
8
  * Attributes that holds the sample rate that was locally applied to a span.
10
9
  * If this attribute is not defined, it means that the span inherited a sampling decision.
@@ -51,9 +50,7 @@ export declare const SEMANTIC_ATTRIBUTE_CACHE_KEY = "cache.key";
51
50
  export declare const SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE = "cache.item_size";
52
51
  /** TODO: Remove these once we update to latest semantic conventions */
53
52
  export declare const SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD = "http.request.method";
54
- export declare const SEMANTIC_ATTRIBUTE_HTTP_REQUEST_TIME_TO_FIRST_BYTE = "http.request.time_to_first_byte";
55
53
  export declare const SEMANTIC_ATTRIBUTE_URL_FULL = "url.full";
56
- export declare const SEMANTIC_ATTRIBUTE_URL_QUERY = "url.query";
57
54
  /**
58
55
  * A span link attribute to mark the link as a special span link.
59
56
  *
@@ -78,39 +75,4 @@ export declare const SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE = "sentry.link.type";
78
75
  * For LangGraph: configurable.thread_id
79
76
  */
80
77
  export declare const GEN_AI_CONVERSATION_ID_ATTRIBUTE = "gen_ai.conversation.id";
81
- /** The release version of the application */
82
- export declare const SEMANTIC_ATTRIBUTE_SENTRY_RELEASE = "sentry.release";
83
- /** The environment name (e.g., "production", "staging", "development") */
84
- export declare const SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT = "sentry.environment";
85
- /** The segment name (e.g., "GET /users") */
86
- export declare const SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME = "sentry.segment.name";
87
- /** The id of the segment that this span belongs to. */
88
- export declare const SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID = "sentry.segment.id";
89
- /** The user ID (gated by sendDefaultPii) */
90
- export declare const SEMANTIC_ATTRIBUTE_USER_ID = "user.id";
91
- /** The user email (gated by sendDefaultPii) */
92
- export declare const SEMANTIC_ATTRIBUTE_USER_EMAIL = "user.email";
93
- /** The user IP address (gated by sendDefaultPii) */
94
- export declare const SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS = "user.ip_address";
95
- /** The user username (gated by sendDefaultPii) */
96
- export declare const SEMANTIC_ATTRIBUTE_USER_USERNAME = "user.name";
97
- /** The name of the Sentry SDK (e.g., "sentry.php", "sentry.javascript") */
98
- export declare const SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME = "sentry.sdk.name";
99
- /** The version of the Sentry SDK */
100
- export declare const SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION = "sentry.sdk.version";
101
- export declare const SEMANTIC_ATTRIBUTE_WEB_VITAL_LCP_VALUE = "browser.web_vital.lcp.value";
102
- export declare const SEMANTIC_ATTRIBUTE_WEB_VITAL_LCP_ELEMENT = "browser.web_vital.lcp.element";
103
- export declare const SEMANTIC_ATTRIBUTE_WEB_VITAL_LCP_ID = "browser.web_vital.lcp.id";
104
- export declare const SEMANTIC_ATTRIBUTE_WEB_VITAL_LCP_URL = "browser.web_vital.lcp.url";
105
- export declare const SEMANTIC_ATTRIBUTE_WEB_VITAL_LCP_LOAD_TIME = "browser.web_vital.lcp.load_time";
106
- export declare const SEMANTIC_ATTRIBUTE_WEB_VITAL_LCP_RENDER_TIME = "browser.web_vital.lcp.render_time";
107
- export declare const SEMANTIC_ATTRIBUTE_WEB_VITAL_LCP_SIZE = "browser.web_vital.lcp.size";
108
- export declare const SEMANTIC_ATTRIBUTE_WEB_VITAL_CLS_VALUE = "browser.web_vital.cls.value";
109
- export declare const SEMANTIC_ATTRIBUTE_WEB_VITAL_CLS_SOURCES = "browser.web_vital.cls.source";
110
- export declare const SEMANTIC_ATTRIBUTE_WEB_VITAL_INP_VALUE = "browser.web_vital.inp.value";
111
- export declare const SEMANTIC_ATTRIBUTE_WEB_VITAL_TTFB_VALUE = "browser.web_vital.ttfb.value";
112
- export declare const SEMANTIC_ATTRIBUTE_WEB_VITAL_TTFB_REQUEST_TIME = "browser.web_vital.ttfb.request_time";
113
- export declare const SEMANTIC_ATTRIBUTE_WEB_VITAL_FP_VALUE = "browser.web_vital.fp.value";
114
- export declare const SEMANTIC_ATTRIBUTE_WEB_VITAL_FCP_VALUE = "browser.web_vital.fcp.value";
115
- export declare const SEMANTIC_ATTRIBUTE_BROWSER_CONNECTION_RTT = "browser.connection.rtt";
116
78
  //# sourceMappingURL=semanticAttributes.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { SpanLink } from '../types-hoist/link';
2
- import { SentrySpanArguments, Span, SpanAttributes, SpanAttributeValue, SpanContextData, SpanJSON, SpanTimeInput, SpanV2JSON } from '../types-hoist/span';
2
+ import { SentrySpanArguments, Span, SpanAttributes, SpanAttributeValue, SpanContextData, SpanJSON, SpanTimeInput } from '../types-hoist/span';
3
3
  import { SpanStatus } from '../types-hoist/spanStatus';
4
4
  import { TimedEvent } from '../types-hoist/timedEvent';
5
5
  /**
@@ -77,15 +77,6 @@ export declare class SentrySpan implements Span {
77
77
  * use `spanToJSON(span)` instead.
78
78
  */
79
79
  getSpanJSON(): SpanJSON;
80
- /**
81
- * Get SpanV2JSON representation of this span.
82
- *
83
- * @hidden
84
- * @internal This method is purely for internal purposes and should not be used outside
85
- * of SDK code. If you need to get a JSON representation of a span,
86
- * use `spanToV2JSON(span)` instead.
87
- */
88
- getSpanV2JSON(): SpanV2JSON;
89
80
  /** @inheritdoc */
90
81
  isRecording(): boolean;
91
82
  /**
@@ -11,7 +11,7 @@ import { Profile, ProfileChunk } from './profiling';
11
11
  import { ReplayEvent, ReplayRecordingData } from './replay';
12
12
  import { SdkInfo } from './sdkinfo';
13
13
  import { SerializedSession, SessionAggregates } from './session';
14
- import { SerializedSpanContainer, SpanJSON } from './span';
14
+ import { SpanJSON } from './span';
15
15
  export type DynamicSamplingContext = {
16
16
  trace_id: string;
17
17
  public_key: DsnComponents['publicKey'];
@@ -87,21 +87,6 @@ type ProfileChunkItemHeaders = {
87
87
  type SpanItemHeaders = {
88
88
  type: 'span';
89
89
  };
90
- type SpanContainerItemHeaders = {
91
- /**
92
- * Same as v1 span item type but this envelope is distinguished by {@link SpanContainerItemHeaders.content_type}.
93
- */
94
- type: 'span';
95
- /**
96
- * The number of span items in the container. This must be the same as the number of span items in the payload.
97
- */
98
- item_count: number;
99
- /**
100
- * The content type of the span items. This must be `application/vnd.sentry.items.span.v2+json`.
101
- * (the presence of this field also distinguishes the span item from the v1 span item)
102
- */
103
- content_type: 'application/vnd.sentry.items.span.v2+json';
104
- };
105
90
  type LogContainerItemHeaders = {
106
91
  type: 'log';
107
92
  /**
@@ -135,7 +120,6 @@ export type FeedbackItem = BaseEnvelopeItem<FeedbackItemHeaders, FeedbackEvent>;
135
120
  export type ProfileItem = BaseEnvelopeItem<ProfileItemHeaders, Profile>;
136
121
  export type ProfileChunkItem = BaseEnvelopeItem<ProfileChunkItemHeaders, ProfileChunk>;
137
122
  export type SpanItem = BaseEnvelopeItem<SpanItemHeaders, Partial<SpanJSON>>;
138
- export type SpanContainerItem = BaseEnvelopeItem<SpanContainerItemHeaders, SerializedSpanContainer>;
139
123
  export type LogContainerItem = BaseEnvelopeItem<LogContainerItemHeaders, SerializedLogContainer>;
140
124
  export type MetricContainerItem = BaseEnvelopeItem<MetricContainerItemHeaders, SerializedMetricContainer>;
141
125
  export type RawSecurityItem = BaseEnvelopeItem<RawSecurityHeaders, LegacyCSPReport>;
@@ -155,9 +139,6 @@ type ReplayEnvelopeHeaders = BaseEnvelopeHeaders;
155
139
  type SpanEnvelopeHeaders = BaseEnvelopeHeaders & {
156
140
  trace?: DynamicSamplingContext;
157
141
  };
158
- type SpanV2EnvelopeHeaders = BaseEnvelopeHeaders & {
159
- trace?: DynamicSamplingContext;
160
- };
161
142
  type LogEnvelopeHeaders = BaseEnvelopeHeaders;
162
143
  type MetricEnvelopeHeaders = BaseEnvelopeHeaders;
163
144
  export type EventEnvelope = BaseEnvelope<EventEnvelopeHeaders, EventItem | AttachmentItem | UserFeedbackItem | FeedbackItem | ProfileItem>;
@@ -172,12 +153,11 @@ export type ReplayEnvelope = [
172
153
  ];
173
154
  export type CheckInEnvelope = BaseEnvelope<CheckInEnvelopeHeaders, CheckInItem>;
174
155
  export type SpanEnvelope = BaseEnvelope<SpanEnvelopeHeaders, SpanItem>;
175
- export type SpanV2Envelope = BaseEnvelope<SpanV2EnvelopeHeaders, SpanContainerItem>;
176
156
  export type ProfileChunkEnvelope = BaseEnvelope<BaseEnvelopeHeaders, ProfileChunkItem>;
177
157
  export type RawSecurityEnvelope = BaseEnvelope<BaseEnvelopeHeaders, RawSecurityItem>;
178
158
  export type LogEnvelope = BaseEnvelope<LogEnvelopeHeaders, LogContainerItem>;
179
159
  export type MetricEnvelope = BaseEnvelope<MetricEnvelopeHeaders, MetricContainerItem>;
180
- export type Envelope = EventEnvelope | SessionEnvelope | ClientReportEnvelope | ProfileChunkEnvelope | ReplayEnvelope | CheckInEnvelope | SpanEnvelope | SpanV2Envelope | RawSecurityEnvelope | LogEnvelope | MetricEnvelope;
160
+ export type Envelope = EventEnvelope | SessionEnvelope | ClientReportEnvelope | ProfileChunkEnvelope | ReplayEnvelope | CheckInEnvelope | SpanEnvelope | RawSecurityEnvelope | LogEnvelope | MetricEnvelope;
181
161
  export type EnvelopeItem = Envelope[1][number];
182
162
  export {};
183
163
  //# sourceMappingURL=envelope.d.ts.map
@@ -11,13 +11,6 @@ export interface Integration {
11
11
  * It does not receives any arguments, and should only use for e.g. global monkey patching and similar things.
12
12
  */
13
13
  setupOnce?(): void;
14
- /**
15
- * This hook is called for all integrations before the `setup` hook.
16
- * This is useful for integrations that need to e.g. modify client values before other integrations are set up.
17
- * Use this hook with caution and prefer `setup` whenever possible.
18
- * @param client
19
- */
20
- beforeSetup?(client: Client): void;
21
14
  /**
22
15
  * Set up an integration for the given client.
23
16
  * Receives the client as argument.
@@ -19,11 +19,11 @@ export interface SpanLink {
19
19
  * Link interface for the event envelope item. It's a flattened representation of `SpanLink`.
20
20
  * Can include additional fields defined by OTel.
21
21
  */
22
- export interface SpanLinkJSON<TAttributes = SpanLinkAttributes> extends Record<string, unknown> {
22
+ export interface SpanLinkJSON extends Record<string, unknown> {
23
23
  span_id: string;
24
24
  trace_id: string;
25
25
  sampled?: boolean;
26
- attributes?: TAttributes;
26
+ attributes?: SpanLinkAttributes;
27
27
  }
28
28
  export {};
29
29
  //# sourceMappingURL=link.d.ts.map
@@ -6,7 +6,7 @@ import { Log } from './log';
6
6
  import { Metric } from './metric';
7
7
  import { TracesSamplerSamplingContext } from './samplingcontext';
8
8
  import { SdkMetadata } from './sdkmetadata';
9
- import { SpanJSON, SpanV2JSON } from './span';
9
+ import { SpanJSON } from './span';
10
10
  import { StackLineParser, StackParser } from './stacktrace';
11
11
  import { TracePropagationTargets } from './tracing';
12
12
  import { BaseTransportOptions, Transport } from './transport';
@@ -450,15 +450,6 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
450
450
  * @default false
451
451
  */
452
452
  strictTraceContinuation?: boolean;
453
- /**
454
- * [Experimental] The trace lifecycle, determining whether spans are sent statically when the entire local span tree is complete, or
455
- * in batches, following interval- and action-based triggers.
456
- *
457
- * @experimental this option is currently still experimental and its type, name, or entire presence is subject to break and change at any time.
458
- *
459
- * @default 'static'
460
- */
461
- traceLifecycle?: 'static' | 'stream';
462
453
  /**
463
454
  * The organization ID for your Sentry project.
464
455
  *
@@ -535,7 +526,7 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
535
526
  *
536
527
  * @returns The modified span payload that will be sent.
537
528
  */
538
- beforeSendSpan?: ((span: SpanJSON) => SpanJSON) | SpanV2CompatibleBeforeSendSpanCallback;
529
+ beforeSendSpan?: (span: SpanJSON) => SpanJSON;
539
530
  /**
540
531
  * An event-processing callback for transaction events, guaranteed to be invoked after all other event
541
532
  * processors. This allows an event to be modified or dropped before it's sent.
@@ -561,13 +552,6 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
561
552
  */
562
553
  beforeBreadcrumb?: (breadcrumb: Breadcrumb, hint?: BreadcrumbHint) => Breadcrumb | null;
563
554
  }
564
- /**
565
- * A callback that is known to be compatible with actually receiving and returning a span v2 JSON object.
566
- * Only useful in conjunction with the {@link CoreOptions.traceLifecycle} option.
567
- */
568
- export type SpanV2CompatibleBeforeSendSpanCallback = ((span: SpanV2JSON) => SpanV2JSON) & {
569
- _v2: true;
570
- };
571
555
  /** Base configuration options for every SDK. */
572
556
  export interface CoreOptions<TO extends BaseTransportOptions = BaseTransportOptions> extends Pick<Partial<ClientOptions<TO>>, Exclude<keyof Partial<ClientOptions<TO>>, 'integrations' | 'transport' | 'stackParser'>> {
573
557
  /**