@sentry/node 8.41.0-beta.1 → 8.42.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 (282) hide show
  1. package/build/cjs/integrations/anr/index.js +2 -16
  2. package/build/cjs/integrations/anr/index.js.map +1 -1
  3. package/build/cjs/integrations/console.js.map +1 -1
  4. package/build/cjs/integrations/context.js +1 -2
  5. package/build/cjs/integrations/context.js.map +1 -1
  6. package/build/cjs/integrations/contextlines.js.map +1 -1
  7. package/build/cjs/integrations/http/SentryHttpInstrumentation.js.map +1 -1
  8. package/build/cjs/integrations/http/index.js.map +1 -1
  9. package/build/cjs/integrations/local-variables/index.js.map +1 -1
  10. package/build/cjs/integrations/local-variables/local-variables-async.js +1 -1
  11. package/build/cjs/integrations/local-variables/local-variables-async.js.map +1 -1
  12. package/build/cjs/integrations/local-variables/local-variables-sync.js.map +1 -1
  13. package/build/cjs/integrations/modules.js.map +1 -1
  14. package/build/cjs/integrations/node-fetch.js +9 -19
  15. package/build/cjs/integrations/node-fetch.js.map +1 -1
  16. package/build/cjs/integrations/onuncaughtexception.js.map +1 -1
  17. package/build/cjs/integrations/onunhandledrejection.js.map +1 -1
  18. package/build/cjs/integrations/spotlight.js.map +1 -1
  19. package/build/cjs/integrations/tracing/amqplib.js.map +1 -1
  20. package/build/cjs/integrations/tracing/connect.js.map +1 -1
  21. package/build/cjs/integrations/tracing/dataloader.js.map +1 -1
  22. package/build/cjs/integrations/tracing/express.js.map +1 -1
  23. package/build/cjs/integrations/tracing/fastify.js.map +1 -1
  24. package/build/cjs/integrations/tracing/genericPool.js.map +1 -1
  25. package/build/cjs/integrations/tracing/graphql.js.map +1 -1
  26. package/build/cjs/integrations/tracing/hapi/index.js.map +1 -1
  27. package/build/cjs/integrations/tracing/index.js.map +1 -1
  28. package/build/cjs/integrations/tracing/kafka.js.map +1 -1
  29. package/build/cjs/integrations/tracing/knex.js.map +1 -1
  30. package/build/cjs/integrations/tracing/koa.js.map +1 -1
  31. package/build/cjs/integrations/tracing/lrumemoizer.js.map +1 -1
  32. package/build/cjs/integrations/tracing/mongo.js.map +1 -1
  33. package/build/cjs/integrations/tracing/mongoose.js.map +1 -1
  34. package/build/cjs/integrations/tracing/mysql.js.map +1 -1
  35. package/build/cjs/integrations/tracing/mysql2.js.map +1 -1
  36. package/build/cjs/integrations/tracing/nest/helpers.js.map +1 -1
  37. package/build/cjs/integrations/tracing/nest/nest.js.map +1 -1
  38. package/build/cjs/integrations/tracing/nest/sentry-nest-event-instrumentation.js.map +1 -1
  39. package/build/cjs/integrations/tracing/nest/sentry-nest-instrumentation.js.map +1 -1
  40. package/build/cjs/integrations/tracing/postgres.js.map +1 -1
  41. package/build/cjs/integrations/tracing/prisma.js.map +1 -1
  42. package/build/cjs/integrations/tracing/redis.js.map +1 -1
  43. package/build/cjs/integrations/tracing/tedious.js.map +1 -1
  44. package/build/cjs/otel/instrument.js +6 -4
  45. package/build/cjs/otel/instrument.js.map +1 -1
  46. package/build/cjs/proxy/base.js +0 -1
  47. package/build/cjs/proxy/base.js.map +1 -1
  48. package/build/cjs/sdk/api.js +0 -3
  49. package/build/cjs/sdk/api.js.map +1 -1
  50. package/build/cjs/sdk/client.js +19 -0
  51. package/build/cjs/sdk/client.js.map +1 -1
  52. package/build/cjs/sdk/index.js +1 -1
  53. package/build/cjs/sdk/index.js.map +1 -1
  54. package/build/cjs/sdk/initOtel.js +3 -1
  55. package/build/cjs/sdk/initOtel.js.map +1 -1
  56. package/build/cjs/transports/http.js.map +1 -1
  57. package/build/cjs/utils/addOriginToSpan.js.map +1 -1
  58. package/build/cjs/utils/createMissingInstrumentationContext.js.map +1 -1
  59. package/build/cjs/utils/ensureIsWrapped.js.map +1 -1
  60. package/build/cjs/utils/errorhandling.js.map +1 -1
  61. package/build/esm/integrations/anr/index.js +2 -16
  62. package/build/esm/integrations/anr/index.js.map +1 -1
  63. package/build/esm/integrations/anr/worker-script.js +2 -2
  64. package/build/esm/integrations/console.js.map +1 -1
  65. package/build/esm/integrations/context.js +1 -2
  66. package/build/esm/integrations/context.js.map +1 -1
  67. package/build/esm/integrations/contextlines.js.map +1 -1
  68. package/build/esm/integrations/http/SentryHttpInstrumentation.js.map +1 -1
  69. package/build/esm/integrations/http/index.js.map +1 -1
  70. package/build/esm/integrations/local-variables/index.js.map +1 -1
  71. package/build/esm/integrations/local-variables/local-variables-async.js +1 -1
  72. package/build/esm/integrations/local-variables/local-variables-async.js.map +1 -1
  73. package/build/esm/integrations/local-variables/local-variables-sync.js.map +1 -1
  74. package/build/esm/integrations/local-variables/worker-script.js +2 -2
  75. package/build/esm/integrations/modules.js.map +1 -1
  76. package/build/esm/integrations/node-fetch.js +10 -20
  77. package/build/esm/integrations/node-fetch.js.map +1 -1
  78. package/build/esm/integrations/onuncaughtexception.js.map +1 -1
  79. package/build/esm/integrations/onunhandledrejection.js.map +1 -1
  80. package/build/esm/integrations/spotlight.js.map +1 -1
  81. package/build/esm/integrations/tracing/amqplib.js.map +1 -1
  82. package/build/esm/integrations/tracing/connect.js.map +1 -1
  83. package/build/esm/integrations/tracing/dataloader.js.map +1 -1
  84. package/build/esm/integrations/tracing/express.js.map +1 -1
  85. package/build/esm/integrations/tracing/fastify.js.map +1 -1
  86. package/build/esm/integrations/tracing/genericPool.js.map +1 -1
  87. package/build/esm/integrations/tracing/graphql.js.map +1 -1
  88. package/build/esm/integrations/tracing/hapi/index.js.map +1 -1
  89. package/build/esm/integrations/tracing/index.js.map +1 -1
  90. package/build/esm/integrations/tracing/kafka.js.map +1 -1
  91. package/build/esm/integrations/tracing/knex.js.map +1 -1
  92. package/build/esm/integrations/tracing/koa.js.map +1 -1
  93. package/build/esm/integrations/tracing/lrumemoizer.js.map +1 -1
  94. package/build/esm/integrations/tracing/mongo.js.map +1 -1
  95. package/build/esm/integrations/tracing/mongoose.js.map +1 -1
  96. package/build/esm/integrations/tracing/mysql.js.map +1 -1
  97. package/build/esm/integrations/tracing/mysql2.js.map +1 -1
  98. package/build/esm/integrations/tracing/nest/helpers.js.map +1 -1
  99. package/build/esm/integrations/tracing/nest/nest.js.map +1 -1
  100. package/build/esm/integrations/tracing/nest/sentry-nest-event-instrumentation.js.map +1 -1
  101. package/build/esm/integrations/tracing/nest/sentry-nest-instrumentation.js.map +1 -1
  102. package/build/esm/integrations/tracing/postgres.js.map +1 -1
  103. package/build/esm/integrations/tracing/prisma.js.map +1 -1
  104. package/build/esm/integrations/tracing/redis.js.map +1 -1
  105. package/build/esm/integrations/tracing/tedious.js.map +1 -1
  106. package/build/esm/otel/instrument.js +4 -2
  107. package/build/esm/otel/instrument.js.map +1 -1
  108. package/build/esm/package.json +1 -1
  109. package/build/esm/proxy/base.js +0 -1
  110. package/build/esm/proxy/base.js.map +1 -1
  111. package/build/esm/sdk/api.js +0 -3
  112. package/build/esm/sdk/api.js.map +1 -1
  113. package/build/esm/sdk/client.js +19 -0
  114. package/build/esm/sdk/client.js.map +1 -1
  115. package/build/esm/sdk/index.js +1 -1
  116. package/build/esm/sdk/index.js.map +1 -1
  117. package/build/esm/sdk/initOtel.js +3 -1
  118. package/build/esm/sdk/initOtel.js.map +1 -1
  119. package/build/esm/transports/http.js.map +1 -1
  120. package/build/esm/utils/addOriginToSpan.js.map +1 -1
  121. package/build/esm/utils/createMissingInstrumentationContext.js.map +1 -1
  122. package/build/esm/utils/ensureIsWrapped.js.map +1 -1
  123. package/build/esm/utils/errorhandling.js.map +1 -1
  124. package/build/types/index.d.ts +1 -1
  125. package/build/types/index.d.ts.map +1 -1
  126. package/build/types/integrations/anr/common.d.ts +1 -1
  127. package/build/types/integrations/anr/common.d.ts.map +1 -1
  128. package/build/types/integrations/anr/index.d.ts +1 -1
  129. package/build/types/integrations/anr/index.d.ts.map +1 -1
  130. package/build/types/integrations/childProcess.d.ts +2 -2
  131. package/build/types/integrations/childProcess.d.ts.map +1 -1
  132. package/build/types/integrations/console.d.ts +1 -1
  133. package/build/types/integrations/console.d.ts.map +1 -1
  134. package/build/types/integrations/context.d.ts +2 -2
  135. package/build/types/integrations/context.d.ts.map +1 -1
  136. package/build/types/integrations/contextlines.d.ts +2 -2
  137. package/build/types/integrations/contextlines.d.ts.map +1 -1
  138. package/build/types/integrations/fs.d.ts +1 -1
  139. package/build/types/integrations/fs.d.ts.map +1 -1
  140. package/build/types/integrations/http/index.d.ts +2 -2
  141. package/build/types/integrations/http/index.d.ts.map +1 -1
  142. package/build/types/integrations/local-variables/index.d.ts +1 -1
  143. package/build/types/integrations/local-variables/index.d.ts.map +1 -1
  144. package/build/types/integrations/local-variables/local-variables-async.d.ts +1 -1
  145. package/build/types/integrations/local-variables/local-variables-async.d.ts.map +1 -1
  146. package/build/types/integrations/local-variables/local-variables-sync.d.ts +2 -2
  147. package/build/types/integrations/local-variables/local-variables-sync.d.ts.map +1 -1
  148. package/build/types/integrations/modules.d.ts +1 -1
  149. package/build/types/integrations/modules.d.ts.map +1 -1
  150. package/build/types/integrations/node-fetch.d.ts +1 -1
  151. package/build/types/integrations/node-fetch.d.ts.map +1 -1
  152. package/build/types/integrations/onuncaughtexception.d.ts +1 -1
  153. package/build/types/integrations/onuncaughtexception.d.ts.map +1 -1
  154. package/build/types/integrations/onunhandledrejection.d.ts +2 -2
  155. package/build/types/integrations/onunhandledrejection.d.ts.map +1 -1
  156. package/build/types/integrations/spotlight.d.ts +1 -1
  157. package/build/types/integrations/spotlight.d.ts.map +1 -1
  158. package/build/types/integrations/tracing/amqplib.d.ts +1 -1
  159. package/build/types/integrations/tracing/amqplib.d.ts.map +1 -1
  160. package/build/types/integrations/tracing/connect.d.ts +1 -1
  161. package/build/types/integrations/tracing/connect.d.ts.map +1 -1
  162. package/build/types/integrations/tracing/dataloader.d.ts +1 -1
  163. package/build/types/integrations/tracing/dataloader.d.ts.map +1 -1
  164. package/build/types/integrations/tracing/express.d.ts +1 -1
  165. package/build/types/integrations/tracing/express.d.ts.map +1 -1
  166. package/build/types/integrations/tracing/fastify.d.ts +1 -1
  167. package/build/types/integrations/tracing/fastify.d.ts.map +1 -1
  168. package/build/types/integrations/tracing/genericPool.d.ts +1 -1
  169. package/build/types/integrations/tracing/genericPool.d.ts.map +1 -1
  170. package/build/types/integrations/tracing/graphql.d.ts +1 -1
  171. package/build/types/integrations/tracing/graphql.d.ts.map +1 -1
  172. package/build/types/integrations/tracing/hapi/index.d.ts +1 -1
  173. package/build/types/integrations/tracing/hapi/index.d.ts.map +1 -1
  174. package/build/types/integrations/tracing/index.d.ts +1 -1
  175. package/build/types/integrations/tracing/index.d.ts.map +1 -1
  176. package/build/types/integrations/tracing/kafka.d.ts +1 -1
  177. package/build/types/integrations/tracing/kafka.d.ts.map +1 -1
  178. package/build/types/integrations/tracing/knex.d.ts +1 -1
  179. package/build/types/integrations/tracing/knex.d.ts.map +1 -1
  180. package/build/types/integrations/tracing/koa.d.ts +1 -1
  181. package/build/types/integrations/tracing/koa.d.ts.map +1 -1
  182. package/build/types/integrations/tracing/lrumemoizer.d.ts +1 -1
  183. package/build/types/integrations/tracing/lrumemoizer.d.ts.map +1 -1
  184. package/build/types/integrations/tracing/mongo.d.ts +1 -1
  185. package/build/types/integrations/tracing/mongo.d.ts.map +1 -1
  186. package/build/types/integrations/tracing/mongoose.d.ts +1 -1
  187. package/build/types/integrations/tracing/mongoose.d.ts.map +1 -1
  188. package/build/types/integrations/tracing/mysql.d.ts +1 -15
  189. package/build/types/integrations/tracing/mysql.d.ts.map +1 -1
  190. package/build/types/integrations/tracing/mysql2.d.ts +1 -1
  191. package/build/types/integrations/tracing/mysql2.d.ts.map +1 -1
  192. package/build/types/integrations/tracing/nest/helpers.d.ts +1 -1
  193. package/build/types/integrations/tracing/nest/helpers.d.ts.map +1 -1
  194. package/build/types/integrations/tracing/nest/nest.d.ts +1 -1
  195. package/build/types/integrations/tracing/nest/nest.d.ts.map +1 -1
  196. package/build/types/integrations/tracing/nest/sentry-nest-event-instrumentation.d.ts.map +1 -1
  197. package/build/types/integrations/tracing/nest/sentry-nest-instrumentation.d.ts.map +1 -1
  198. package/build/types/integrations/tracing/postgres.d.ts +1 -1
  199. package/build/types/integrations/tracing/postgres.d.ts.map +1 -1
  200. package/build/types/integrations/tracing/prisma.d.ts +1 -1
  201. package/build/types/integrations/tracing/prisma.d.ts.map +1 -1
  202. package/build/types/integrations/tracing/redis.d.ts +1 -1
  203. package/build/types/integrations/tracing/redis.d.ts.map +1 -1
  204. package/build/types/integrations/tracing/tedious.d.ts +1 -1
  205. package/build/types/integrations/tracing/tedious.d.ts.map +1 -1
  206. package/build/types/otel/instrument.d.ts +1 -1
  207. package/build/types/otel/instrument.d.ts.map +1 -1
  208. package/build/types/proxy/base.d.ts.map +1 -1
  209. package/build/types/sdk/api.d.ts +1 -1
  210. package/build/types/sdk/api.d.ts.map +1 -1
  211. package/build/types/sdk/client.d.ts +3 -0
  212. package/build/types/sdk/client.d.ts.map +1 -1
  213. package/build/types/sdk/index.d.ts +1 -1
  214. package/build/types/sdk/index.d.ts.map +1 -1
  215. package/build/types/sdk/initOtel.d.ts.map +1 -1
  216. package/build/types/sdk/scope.d.ts +1 -1
  217. package/build/types/sdk/scope.d.ts.map +1 -1
  218. package/build/types/transports/http.d.ts +1 -1
  219. package/build/types/transports/http.d.ts.map +1 -1
  220. package/build/types/types.d.ts +35 -5
  221. package/build/types/types.d.ts.map +1 -1
  222. package/build/types/utils/addOriginToSpan.d.ts +1 -1
  223. package/build/types/utils/addOriginToSpan.d.ts.map +1 -1
  224. package/build/types/utils/createMissingInstrumentationContext.d.ts +1 -1
  225. package/build/types/utils/createMissingInstrumentationContext.d.ts.map +1 -1
  226. package/build/types/utils/ensureIsWrapped.d.ts.map +1 -1
  227. package/build/types/utils/entry-point.d.ts +24 -0
  228. package/build/types/utils/entry-point.d.ts.map +1 -0
  229. package/build/types/utils/errorhandling.d.ts.map +1 -1
  230. package/build/types/utils/prepareEvent.d.ts +1 -1
  231. package/build/types/utils/prepareEvent.d.ts.map +1 -1
  232. package/build/types-ts3.8/index.d.ts +1 -1
  233. package/build/types-ts3.8/integrations/anr/common.d.ts +1 -1
  234. package/build/types-ts3.8/integrations/anr/index.d.ts +1 -1
  235. package/build/types-ts3.8/integrations/childProcess.d.ts +2 -2
  236. package/build/types-ts3.8/integrations/console.d.ts +1 -1
  237. package/build/types-ts3.8/integrations/context.d.ts +2 -2
  238. package/build/types-ts3.8/integrations/contextlines.d.ts +2 -2
  239. package/build/types-ts3.8/integrations/fs.d.ts +1 -1
  240. package/build/types-ts3.8/integrations/http/index.d.ts +2 -2
  241. package/build/types-ts3.8/integrations/local-variables/index.d.ts +1 -1
  242. package/build/types-ts3.8/integrations/local-variables/local-variables-async.d.ts +1 -1
  243. package/build/types-ts3.8/integrations/local-variables/local-variables-sync.d.ts +2 -2
  244. package/build/types-ts3.8/integrations/modules.d.ts +1 -1
  245. package/build/types-ts3.8/integrations/node-fetch.d.ts +1 -1
  246. package/build/types-ts3.8/integrations/onuncaughtexception.d.ts +1 -1
  247. package/build/types-ts3.8/integrations/onunhandledrejection.d.ts +2 -2
  248. package/build/types-ts3.8/integrations/spotlight.d.ts +1 -1
  249. package/build/types-ts3.8/integrations/tracing/amqplib.d.ts +1 -1
  250. package/build/types-ts3.8/integrations/tracing/connect.d.ts +1 -1
  251. package/build/types-ts3.8/integrations/tracing/dataloader.d.ts +1 -1
  252. package/build/types-ts3.8/integrations/tracing/express.d.ts +1 -1
  253. package/build/types-ts3.8/integrations/tracing/fastify.d.ts +1 -1
  254. package/build/types-ts3.8/integrations/tracing/genericPool.d.ts +1 -1
  255. package/build/types-ts3.8/integrations/tracing/graphql.d.ts +1 -1
  256. package/build/types-ts3.8/integrations/tracing/hapi/index.d.ts +1 -1
  257. package/build/types-ts3.8/integrations/tracing/index.d.ts +1 -1
  258. package/build/types-ts3.8/integrations/tracing/kafka.d.ts +1 -1
  259. package/build/types-ts3.8/integrations/tracing/knex.d.ts +1 -1
  260. package/build/types-ts3.8/integrations/tracing/koa.d.ts +1 -1
  261. package/build/types-ts3.8/integrations/tracing/lrumemoizer.d.ts +1 -1
  262. package/build/types-ts3.8/integrations/tracing/mongo.d.ts +1 -1
  263. package/build/types-ts3.8/integrations/tracing/mongoose.d.ts +1 -1
  264. package/build/types-ts3.8/integrations/tracing/mysql.d.ts +1 -15
  265. package/build/types-ts3.8/integrations/tracing/mysql2.d.ts +1 -1
  266. package/build/types-ts3.8/integrations/tracing/nest/helpers.d.ts +1 -1
  267. package/build/types-ts3.8/integrations/tracing/nest/nest.d.ts +1 -1
  268. package/build/types-ts3.8/integrations/tracing/postgres.d.ts +1 -1
  269. package/build/types-ts3.8/integrations/tracing/prisma.d.ts +1 -1
  270. package/build/types-ts3.8/integrations/tracing/redis.d.ts +1 -1
  271. package/build/types-ts3.8/integrations/tracing/tedious.d.ts +1 -1
  272. package/build/types-ts3.8/sdk/api.d.ts +1 -1
  273. package/build/types-ts3.8/sdk/client.d.ts +6 -0
  274. package/build/types-ts3.8/sdk/index.d.ts +1 -1
  275. package/build/types-ts3.8/sdk/scope.d.ts +1 -1
  276. package/build/types-ts3.8/transports/http.d.ts +1 -1
  277. package/build/types-ts3.8/types.d.ts +35 -5
  278. package/build/types-ts3.8/utils/addOriginToSpan.d.ts +1 -1
  279. package/build/types-ts3.8/utils/createMissingInstrumentationContext.d.ts +1 -1
  280. package/build/types-ts3.8/utils/entry-point.d.ts +24 -0
  281. package/build/types-ts3.8/utils/prepareEvent.d.ts +1 -1
  282. package/package.json +3 -4
@@ -15,5 +15,5 @@ export declare const instrumentPostgres: ((options?: unknown) => void) & {
15
15
  * });
16
16
  * ```
17
17
  */
18
- export declare const postgresIntegration: () => import("@sentry/types").Integration;
18
+ export declare const postgresIntegration: () => import("@sentry/core").Integration;
19
19
  //# sourceMappingURL=postgres.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postgres.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/postgres.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,kBAAkB;;CAS9B,CAAC;AAWF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB,2CAA0C,CAAC"}
1
+ {"version":3,"file":"postgres.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/postgres.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,kBAAkB;;CAS9B,CAAC;AAWF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB,0CAA0C,CAAC"}
@@ -28,5 +28,5 @@ export declare const instrumentPrisma: ((options?: unknown) => void) & {
28
28
  * });
29
29
  * ```
30
30
  */
31
- export declare const prismaIntegration: () => import("@sentry/types").Integration;
31
+ export declare const prismaIntegration: () => import("@sentry/core").Integration;
32
32
  //# sourceMappingURL=prisma.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prisma.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/prisma.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,gBAAgB;;CAO3B,CAAC;AAwBH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,iBAAiB,2CAAwC,CAAC"}
1
+ {"version":3,"file":"prisma.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/prisma.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,gBAAgB;;CAO3B,CAAC;AAwBH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,iBAAiB,0CAAwC,CAAC"}
@@ -20,6 +20,6 @@ export declare const instrumentRedis: (() => void) & {
20
20
  * });
21
21
  * ```
22
22
  */
23
- export declare const redisIntegration: (options?: RedisOptions | undefined) => import("@sentry/types").Integration;
23
+ export declare const redisIntegration: (options?: RedisOptions | undefined) => import("@sentry/core").Integration;
24
24
  export {};
25
25
  //# sourceMappingURL=redis.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"redis.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/redis.ts"],"names":[],"mappings":"AAyBA,UAAU,YAAY;IACpB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B;AA8DD,qJAAqJ;AACrJ,eAAO,MAAM,eAAe,SACtB,IAAI;;CAQT,CAAC;AAYF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB,6EAAuC,CAAC"}
1
+ {"version":3,"file":"redis.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/redis.ts"],"names":[],"mappings":"AAyBA,UAAU,YAAY;IACpB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B;AA8DD,qJAAqJ;AACrJ,eAAO,MAAM,eAAe,SACtB,IAAI;;CAQT,CAAC;AAYF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB,4EAAuC,CAAC"}
@@ -15,5 +15,5 @@ export declare const instrumentTedious: ((options?: unknown) => void) & {
15
15
  * });
16
16
  * ```
17
17
  */
18
- export declare const tediousIntegration: () => import("@sentry/types").Integration;
18
+ export declare const tediousIntegration: () => import("@sentry/core").Integration;
19
19
  //# sourceMappingURL=tedious.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tedious.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/tedious.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,iBAAiB;;CAAiF,CAAC;AA0BhH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,2CAAyC,CAAC"}
1
+ {"version":3,"file":"tedious.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/tedious.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,iBAAiB;;CAAiF,CAAC;AA0BhH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,0CAAyC,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { Instrumentation } from '@opentelemetry/instrumentation';
1
+ import { type Instrumentation } from '@opentelemetry/instrumentation';
2
2
  /** Exported only for tests. */
3
3
  export declare const INSTRUMENTED: Record<string, Instrumentation>;
4
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"instrument.d.ts","sourceRoot":"","sources":["../../../src/otel/instrument.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAGtE,+BAA+B;AAC/B,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAM,CAAC;AAEhE;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,GAAG,OAAO,EACtD,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,eAAe,GAC9C,CAAC,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAmBhD"}
1
+ {"version":3,"file":"instrument.d.ts","sourceRoot":"","sources":["../../../src/otel/instrument.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAA4B,MAAM,gCAAgC,CAAC;AAEhG,+BAA+B;AAC/B,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAM,CAAC;AAEhE;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,GAAG,OAAO,EACtD,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,eAAe,GAC9C,CAAC,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAqBhD"}
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/proxy/base.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;;;AAKH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,KAAK,GAAG,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,KAAK,GAAG,MA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gB,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,OAAO;IAwBrD,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,aAAa,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;IAkBnH,gBAAgB,IAAI,MAAM;IAS1B,IAAI,WAAW,IAAI,MAAM,CAExB;IAED,IAAI,WAAW,CAAC,CAAC,EAAE,MAAM,EAIxB;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,IAAI,QAAQ,CAAC,CAAC,EAAE,MAAM,EAIrB;CACF"}
@@ -1,4 +1,4 @@
1
- import type { StackParser } from '@sentry/types';
1
+ import type { StackParser } from '@sentry/core';
2
2
  /**
3
3
  * Returns a release dynamically from environment variables.
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/sdk/api.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAGjD;;GAEG;AAEH,wBAAgB,gBAAgB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAkGtE;AAED,2BAA2B;AAC3B,eAAO,MAAM,kBAAkB,EAAE,WAAmF,CAAC"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/sdk/api.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAIhD;;GAEG;AAEH,wBAAgB,gBAAgB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAkGtE;AAED,2BAA2B;AAC3B,eAAO,MAAM,kBAAkB,EAAE,WAAmF,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import type { Tracer } from '@opentelemetry/api';
2
2
  import type { BasicTracerProvider } from '@opentelemetry/sdk-trace-base';
3
+ import type { DynamicSamplingContext, Scope, TraceContext } from '@sentry/core';
3
4
  import { ServerRuntimeClient } from '@sentry/core';
4
5
  import type { NodeClientOptions } from '../types';
5
6
  /** A client for using Sentry with Node & OpenTelemetry. */
@@ -21,5 +22,7 @@ export declare class NodeClient extends ServerRuntimeClient<NodeClientOptions> {
21
22
  * result in a memory leak.
22
23
  */
23
24
  startClientReportTracking(): void;
25
+ /** Custom implementation for OTEL, so we can handle scope-span linking. */
26
+ protected _getTraceInfoFromScope(scope: Scope | undefined): [dynamicSamplingContext: Partial<DynamicSamplingContext> | undefined, traceContext: TraceContext | undefined];
24
27
  }
25
28
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/sdk/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,OAAO,EAAe,mBAAmB,EAAoB,MAAM,cAAc,CAAC;AAIlF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAIlD,2DAA2D;AAC3D,qBAAa,UAAW,SAAQ,mBAAmB,CAAC,iBAAiB,CAAC;IAC7D,aAAa,EAAE,mBAAmB,GAAG,SAAS,CAAC;IACtD,OAAO,CAAC,OAAO,CAAqB;IACpC,OAAO,CAAC,qBAAqB,CAA6B;IAC1D,OAAO,CAAC,gCAAgC,CAA2B;gBAEhD,OAAO,EAAE,iBAAiB;IAiB7C,2BAA2B;IAC3B,IAAW,MAAM,IAAI,MAAM,CAW1B;IAIY,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAiB/C,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,CAAC,OAAO,CAAC;IAYhE;;;;;;OAMG;IASI,yBAAyB,IAAI,IAAI;CAoBzC"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/sdk/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAGjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAA8B,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5G,OAAO,EAAe,mBAAmB,EAA4B,MAAM,cAAc,CAAC;AAI1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAIlD,2DAA2D;AAC3D,qBAAa,UAAW,SAAQ,mBAAmB,CAAC,iBAAiB,CAAC;IAC7D,aAAa,EAAE,mBAAmB,GAAG,SAAS,CAAC;IACtD,OAAO,CAAC,OAAO,CAAqB;IACpC,OAAO,CAAC,qBAAqB,CAA6B;IAC1D,OAAO,CAAC,gCAAgC,CAA2B;gBAEhD,OAAO,EAAE,iBAAiB;IAuB7C,2BAA2B;IAC3B,IAAW,MAAM,IAAI,MAAM,CAW1B;IAIY,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAiB/C,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,CAAC,OAAO,CAAC;IAYhE;;;;;;OAMG;IASI,yBAAyB,IAAI,IAAI;IAqBxC,2EAA2E;IAC3E,SAAS,CAAC,sBAAsB,CAC9B,KAAK,EAAE,KAAK,GAAG,SAAS,GACvB,CAAC,sBAAsB,EAAE,OAAO,CAAC,sBAAsB,CAAC,GAAG,SAAS,EAAE,YAAY,EAAE,YAAY,GAAG,SAAS,CAAC;CAOjH"}
@@ -1,4 +1,4 @@
1
- import type { Integration, Options } from '@sentry/types';
1
+ import type { Integration, Options } from '@sentry/core';
2
2
  import type { NodeOptions } from '../types';
3
3
  import { NodeClient } from './client';
4
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/index.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAgB1D,OAAO,KAAK,EAAqB,WAAW,EAAE,MAAM,UAAU,CAAC;AAI/D,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAOtC;;GAEG;AACH,wBAAgB,wCAAwC,IAAI,WAAW,EAAE,CAqBxE;AAED,qDAAqD;AACrD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,EAAE,CAStE;AAYD;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,UAAU,GAAG,SAAS,CAElF;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,UAAU,CAEhG;AAqED;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CA0BjD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAuCzD,OAAO,KAAK,EAAqB,WAAW,EAAE,MAAM,UAAU,CAAC;AAI/D,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAOtC;;GAEG;AACH,wBAAgB,wCAAwC,IAAI,WAAW,EAAE,CAqBxE;AAED,qDAAqD;AACrD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,EAAE,CAStE;AAYD;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,UAAU,GAAG,SAAS,CAElF;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,UAAU,CAEhG;AAqED;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CA0BjD"}
@@ -1 +1 @@
1
- {"version":3,"file":"initOtel.d.ts","sourceRoot":"","sources":["../../../src/sdk/initOtel.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAapE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3C;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAO1D;AAsBD,iCAAiC;AACjC,wBAAgB,wBAAwB,CAAC,aAAa,CAAC,EAAE,oBAAoB,GAAG,IAAI,CA0BnF;AAED,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,sBAAsB,CAAC,EAAE,oBAAoB,CAAC;CAC/C;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,GAAE,kBAAuB,GAAG,IAAI,CAoB3E;AAYD,+BAA+B;AAC/B,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,GAAG,mBAAmB,CAyBjE"}
1
+ {"version":3,"file":"initOtel.d.ts","sourceRoot":"","sources":["../../../src/sdk/initOtel.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAWpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3C;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAO1D;AAwBD,iCAAiC;AACjC,wBAAgB,wBAAwB,CAAC,aAAa,CAAC,EAAE,oBAAoB,GAAG,IAAI,CA0BnF;AAED,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,sBAAsB,CAAC,EAAE,oBAAoB,CAAC;CAC/C;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,GAAE,kBAAuB,GAAG,IAAI,CAoB3E;AAYD,+BAA+B;AAC/B,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,GAAG,mBAAmB,CAyBjE"}
@@ -1,4 +1,4 @@
1
- import type { Scope } from '@sentry/types';
1
+ import type { Scope } from '@sentry/core';
2
2
  /**
3
3
  * Update the active isolation scope.
4
4
  * Should be used with caution!
@@ -1 +1 @@
1
- {"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../../src/sdk/scope.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,cAAc,EAAE,KAAK,GAAG,IAAI,CAK7D"}
1
+ {"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../../src/sdk/scope.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAG1C;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,cAAc,EAAE,KAAK,GAAG,IAAI,CAK7D"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import type { BaseTransportOptions, Transport } from '@sentry/types';
2
+ import type { BaseTransportOptions, Transport } from '@sentry/core';
3
3
  import type { HTTPModule } from './http-module';
4
4
  export interface NodeTransportOptions extends BaseTransportOptions {
5
5
  /** Define custom headers */
@@ -1 +1 @@
1
- {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/transports/http.ts"],"names":[],"mappings":";AAMA,OAAO,KAAK,EACV,oBAAoB,EACpB,SAAS,EAIV,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACnD,6EAA6E;IAC7E,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAkBD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,oBAAoB,GAAG,SAAS,CAmC1E"}
1
+ {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/transports/http.ts"],"names":[],"mappings":";AAIA,OAAO,KAAK,EACV,oBAAoB,EACpB,SAAS,EAIV,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACnD,6EAA6E;IAC7E,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAkBD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,oBAAoB,GAAG,SAAS,CAmC1E"}
@@ -1,10 +1,26 @@
1
1
  import type { Span as WriteableSpan } from '@opentelemetry/api';
2
+ import type { Instrumentation } from '@opentelemetry/instrumentation';
2
3
  import type { ReadableSpan } from '@opentelemetry/sdk-trace-base';
3
- import type { ClientOptions, Options, SamplingContext, Scope, Span, TracePropagationTargets } from '@sentry/types';
4
+ import type { ClientOptions, Options, SamplingContext, Scope, Span, TracePropagationTargets } from '@sentry/core';
4
5
  import type { NodeTransportOptions } from './transports';
6
+ /**
7
+ * Note: In the next major version of the Sentry SDK this interface will be removed and the SDK will by default only wrap
8
+ * ESM modules that are required to be wrapped by OpenTelemetry Instrumentation.
9
+ */
5
10
  export interface EsmLoaderHookOptions {
11
+ /**
12
+ * Provide a list of modules to wrap with `import-in-the-middle`.
13
+ *
14
+ * @deprecated It is recommended to use `onlyIncludeInstrumentedModules: true` instead of manually defining modules to include and exclude.
15
+ */
6
16
  include?: Array<string | RegExp>;
7
- exclude?: Array<string | RegExp> /**
17
+ /**
18
+ * Provide a list of modules to prevent them from being wrapped with `import-in-the-middle`.
19
+ *
20
+ * @deprecated It is recommended to use `onlyIncludeInstrumentedModules: true` instead of manually defining modules to include and exclude.
21
+ */
22
+ exclude?: Array<string | RegExp>;
23
+ /**
8
24
  * When set to `true`, `import-in-the-middle` will only wrap ESM modules that are specifically instrumented by
9
25
  * OpenTelemetry plugins. This is useful to avoid issues where `import-in-the-middle` is not compatible with some of
10
26
  * your dependencies.
@@ -14,7 +30,10 @@ export interface EsmLoaderHookOptions {
14
30
  * `Sentry.init()`.
15
31
  *
16
32
  * Defaults to `false`.
17
- */;
33
+ *
34
+ * Note: In the next major version of the Sentry SDK this option will be removed and the SDK will by default only wrap
35
+ * ESM modules that are required to be wrapped by OpenTelemetry Instrumentation.
36
+ */
18
37
  onlyIncludeInstrumentedModules?: boolean;
19
38
  }
20
39
  export interface BaseNodeOptions {
@@ -78,8 +97,16 @@ export interface BaseNodeOptions {
78
97
  * * The `SentryPropagator`
79
98
  * * The `SentryContextManager`
80
99
  * * The `SentrySampler`
100
+ *
101
+ * If you are registering your own OpenTelemetry Loader Hooks (or `import-in-the-middle` hooks), it is also recommended to set the `registerEsmLoaderHooks` option to false.
81
102
  */
82
103
  skipOpenTelemetrySetup?: boolean;
104
+ /**
105
+ * Provide an array of OpenTelemetry Instrumentations that should be registered.
106
+ *
107
+ * Use this option if you want to register OpenTelemetry instrumentation that the Sentry SDK does not yet have support for.
108
+ */
109
+ openTelemetryInstrumentations?: Instrumentation[];
83
110
  /**
84
111
  * The max. duration in seconds that the SDK will wait for parent spans to be finished before discarding a span.
85
112
  * The SDK will automatically clean up spans that have no finished parent after this duration.
@@ -106,6 +133,9 @@ export interface BaseNodeOptions {
106
133
  * ```
107
134
  *
108
135
  * Defaults to `true`.
136
+ *
137
+ * Note: In the next major version of the SDK, the possibility to provide fine-grained control will be removed from this option.
138
+ * This means that it will only be possible to pass `true` or `false`. The default value will continue to be `true`.
109
139
  */
110
140
  registerEsmLoaderHooks?: boolean | EsmLoaderHookOptions;
111
141
  /**
@@ -122,7 +152,7 @@ export interface BaseNodeOptions {
122
152
  }
123
153
  /**
124
154
  * Configuration options for the Sentry Node SDK
125
- * @see @sentry/types Options for more information.
155
+ * @see @sentry/core Options for more information.
126
156
  */
127
157
  export interface NodeOptions extends Options<NodeTransportOptions>, BaseNodeOptions {
128
158
  }
@@ -140,7 +170,7 @@ export interface CurrentScopes {
140
170
  * The base `Span` type is basically a `WriteableSpan`.
141
171
  * There are places where we basically want to allow passing _any_ span,
142
172
  * so in these cases we type this as `AbstractSpan` which could be either a regular `Span` or a `ReadableSpan`.
143
- * You'll have to make sur to check revelant fields before accessing them.
173
+ * You'll have to make sur to check relevant fields before accessing them.
144
174
  *
145
175
  * Note that technically, the `Span` exported from `@opentelemetry/sdk-trace-base` matches this,
146
176
  * but we cannot be 100% sure that we are actually getting such a span, so this type is more defensive.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,IAAI,aAAa,EAAE,MA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2
+ import type { SpanOrigin } from '@sentry/core';
3
3
  /** Adds an origin to an OTEL Span. */
4
4
  export declare function addOriginToSpan(span: Span, origin: SpanOrigin): void;
5
5
  //# sourceMappingURL=addOriginToSpan.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"addOriginToSpan.d.ts","sourceRoot":"","sources":["../../../src/utils/addOriginToSpan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,sCAAsC;AACtC,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,GAAG,IAAI,CAEpE"}
1
+ {"version":3,"file":"addOriginToSpan.d.ts","sourceRoot":"","sources":["../../../src/utils/addOriginToSpan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,sCAAsC;AACtC,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,GAAG,IAAI,CAEpE"}
@@ -1,3 +1,3 @@
1
- import type { MissingInstrumentationContext } from '@sentry/types';
1
+ import type { MissingInstrumentationContext } from '@sentry/core';
2
2
  export declare const createMissingInstrumentationContext: (pkg: string) => MissingInstrumentationContext;
3
3
  //# sourceMappingURL=createMissingInstrumentationContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createMissingInstrumentationContext.d.ts","sourceRoot":"","sources":["../../../src/utils/createMissingInstrumentationContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAC;AAGnE,eAAO,MAAM,mCAAmC,QAAS,MAAM,KAAG,6BAGhE,CAAC"}
1
+ {"version":3,"file":"createMissingInstrumentationContext.d.ts","sourceRoot":"","sources":["../../../src/utils/createMissingInstrumentationContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAGlE,eAAO,MAAM,mCAAmC,QAAS,MAAM,KAAG,6BAGhE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ensureIsWrapped.d.ts","sourceRoot":"","sources":["../../../src/utils/ensureIsWrapped.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,wBAAgB,eAAe,CAC7B,oBAAoB,EAAE,OAAO,EAC7B,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,KAAK,GACvD,IAAI,CAwBN"}
1
+ {"version":3,"file":"ensureIsWrapped.d.ts","sourceRoot":"","sources":["../../../src/utils/ensureIsWrapped.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,wBAAgB,eAAe,CAC7B,oBAAoB,EAAE,OAAO,EAC7B,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,KAAK,GACvD,IAAI,CAwBN"}
@@ -0,0 +1,24 @@
1
+ export interface ProcessInterface {
2
+ execArgv: string[];
3
+ argv: string[];
4
+ cwd: () => string;
5
+ }
6
+ export interface ProcessArgs {
7
+ appPath: string;
8
+ importPaths: string[];
9
+ requirePaths: string[];
10
+ }
11
+ /**
12
+ * Parses the process arguments to determine the app path, import paths, and require paths.
13
+ */
14
+ export declare function parseProcessPaths(proc: ProcessInterface): ProcessArgs;
15
+ /**
16
+ * Gets the current entry point type.
17
+ *
18
+ * `app` means this function was most likely called via the app entry point.
19
+ * `import` means this function was most likely called from an --import cli arg.
20
+ * `require` means this function was most likely called from a --require cli arg.
21
+ * `unknown` means we couldn't determine for sure.
22
+ */
23
+ export declare function getEntryPointType(proc?: ProcessInterface): 'import' | 'require' | 'app' | 'unknown';
24
+ //# sourceMappingURL=entry-point.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entry-point.d.ts","sourceRoot":"","sources":["../../../src/utils/entry-point.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,GAAG,EAAE,MAAM,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,gBAAgB,GAAG,WAAW,CAUrE;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,GAAE,gBAA0B,GAAG,QAAQ,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,CA2B5G"}
@@ -1 +1 @@
1
- {"version":3,"file":"errorhandling.d.ts","sourceRoot":"","sources":["../../../src/utils/errorhandling.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CA6BpD"}
1
+ {"version":3,"file":"errorhandling.d.ts","sourceRoot":"","sources":["../../../src/utils/errorhandling.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CA6BpD"}
@@ -1,4 +1,4 @@
1
- import type { CaptureContext, EventHint, ScopeContext } from '@sentry/types';
1
+ import type { CaptureContext, EventHint, ScopeContext } from '@sentry/core';
2
2
  /**
3
3
  * This type makes sure that we get either a CaptureContext, OR an EventHint.
4
4
  * It does not allow mixing them, which could lead to unexpected outcomes, e.g. this is disallowed:
@@ -1 +1 @@
1
- {"version":3,"file":"prepareEvent.d.ts","sourceRoot":"","sources":["../../../src/utils/prepareEvent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAA2B,YAAY,EAAE,MAAM,eAAe,CAAC;AAEtG;;;;GAIG;AACH,MAAM,MAAM,kCAAkC,GAC1C,CAAC,cAAc,GAAG,OAAO,CAAC;KAAG,GAAG,IAAI,MAAM,SAAS,GAAG,KAAK;CAAE,CAAC,CAAC,GAC/D,CAAC,SAAS,GAAG,OAAO,CAAC;KAAG,GAAG,IAAI,MAAM,YAAY,GAAG,KAAK;CAAE,CAAC,CAAC,CAAC;AAElE;;;GAGG;AACH,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,kCAAkC,GAAG,SAAS,GACnD,SAAS,GAAG,SAAS,CAiBvB"}
1
+ {"version":3,"file":"prepareEvent.d.ts","sourceRoot":"","sources":["../../../src/utils/prepareEvent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAA2B,YAAY,EAAE,MAAM,cAAc,CAAC;AAErG;;;;GAIG;AACH,MAAM,MAAM,kCAAkC,GAC1C,CAAC,cAAc,GAAG,OAAO,CAAC;KAAG,GAAG,IAAI,MAAM,SAAS,GAAG,KAAK;CAAE,CAAC,CAAC,GAC/D,CAAC,SAAS,GAAG,OAAO,CAAC;KAAG,GAAG,IAAI,MAAM,YAAY,GAAG,KAAK;CAAE,CAAC,CAAC,CAAC;AAElE;;;GAGG;AACH,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,kCAAkC,GAAG,SAAS,GACnD,SAAS,GAAG,SAAS,CAiBvB"}
@@ -46,5 +46,5 @@ export { NodeOptions } from './types';
46
46
  export { addRequestDataToEvent, DEFAULT_USER_INCLUDES, extractRequestData } from '@sentry/core';
47
47
  export { addOpenTelemetryInstrumentation, continueTrace, setOpenTelemetryContextAsyncContextStrategy as setNodeAsyncContextStrategy, } from '@sentry/opentelemetry';
48
48
  export { addBreadcrumb, isInitialized, getGlobalScope, lastEventId, close, createTransport, flush, SDK_VERSION, getSpanStatusFromHttpCode, setHttpStatus, captureCheckIn, withMonitor, requestDataIntegration, functionToStringIntegration, inboundFiltersIntegration, linkedErrorsIntegration, addEventProcessor, setContext, setExtra, setExtras, setTag, setTags, setUser, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, setCurrentClient, Scope, setMeasurement, getSpanDescendants, parameterize, getClient, getCurrentHub, getCurrentScope, getIsolationScope, getTraceData, getTraceMetaTags, withScope, withIsolationScope, captureException, captureEvent, captureMessage, captureFeedback, captureConsoleIntegration, debugIntegration, dedupeIntegration, extraErrorDataIntegration, rewriteFramesIntegration, sessionTimingIntegration, metricsDefault as metrics, startSession, captureSession, endSession, addIntegration, startSpan, startSpanManual, startInactiveSpan, startNewTrace, suppressTracing, getActiveSpan, withActiveSpan, getRootSpan, spanToJSON, spanToTraceHeader, spanToBaggageHeader, trpcMiddleware, zodErrorsIntegration, profiler, } from '@sentry/core';
49
- export { Breadcrumb, BreadcrumbHint, PolymorphicRequest, Request, RequestEventData, SdkInfo, Event, EventHint, ErrorEvent, Exception, Session, SeverityLevel, StackFrame, Stacktrace, Thread, User, Span, } from '@sentry/types';
49
+ export { Breadcrumb, BreadcrumbHint, PolymorphicRequest, Request, RequestEventData, SdkInfo, Event, EventHint, ErrorEvent, Exception, Session, SeverityLevel, StackFrame, Stacktrace, Thread, User, Span, } from '@sentry/core';
50
50
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Contexts, DsnComponents, Primitive, SdkMetadata } from '@sentry/types';
1
+ import { Contexts, DsnComponents, Primitive, SdkMetadata } from '@sentry/core';
2
2
  export interface AnrIntegrationOptions {
3
3
  /**
4
4
  * Interval to send heartbeat messages to the ANR worker.
@@ -1,4 +1,4 @@
1
- import { Integration } from '@sentry/types';
1
+ import { Integration } from '@sentry/core';
2
2
  import { AnrIntegrationOptions } from './common';
3
3
  export declare const base64WorkerScript = "###AnrWorkerScript###";
4
4
  type AnrInternal = {
@@ -9,12 +9,12 @@ interface Options {
9
9
  /**
10
10
  * Capture breadcrumbs for child processes and worker threads.
11
11
  */
12
- export declare const childProcessIntegration: (options?: Options | undefined) => import("@sentry/types").Integration;
12
+ export declare const childProcessIntegration: (options?: Options | undefined) => import("@sentry/core").Integration;
13
13
  /**
14
14
  * Capture breadcrumbs for child processes and worker threads.
15
15
  *
16
16
  * @deprecated Use `childProcessIntegration` integration instead. Functionally they are the same. `processThreadBreadcrumbIntegration` will be removed in the next major version.
17
17
  */
18
- export declare const processThreadBreadcrumbIntegration: (options?: Options | undefined) => import("@sentry/types").Integration;
18
+ export declare const processThreadBreadcrumbIntegration: (options?: Options | undefined) => import("@sentry/core").Integration;
19
19
  export {};
20
20
  //# sourceMappingURL=childProcess.d.ts.map
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Capture console logs as breadcrumbs.
3
3
  */
4
- export declare const consoleIntegration: () => import("@sentry/types").Integration;
4
+ export declare const consoleIntegration: () => import("@sentry/core").Integration;
5
5
  //# sourceMappingURL=console.d.ts.map
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import { readFile, readdir } from 'node:fs';
3
- import { AppContext, DeviceContext } from '@sentry/types';
3
+ import { AppContext, DeviceContext } from '@sentry/core';
4
4
  export declare const readFileAsync: typeof readFile.__promisify__;
5
5
  export declare const readDirAsync: typeof readdir.__promisify__;
6
6
  interface DeviceContextOptions {
@@ -17,7 +17,7 @@ interface ContextOptions {
17
17
  /**
18
18
  * Capture context about the environment and the device that the client is running on, to events.
19
19
  */
20
- export declare const nodeContextIntegration: (options?: ContextOptions | undefined) => import("@sentry/types").Integration;
20
+ export declare const nodeContextIntegration: (options?: ContextOptions | undefined) => import("@sentry/core").Integration;
21
21
  /**
22
22
  * Get app context information from process
23
23
  */
@@ -1,4 +1,4 @@
1
- import { Event, StackFrame } from '@sentry/types';
1
+ import { Event, StackFrame } from '@sentry/core';
2
2
  export declare const MAX_CONTEXTLINES_COLNO: number;
3
3
  export declare const MAX_CONTEXTLINES_LINENO: number;
4
4
  interface ContextLinesOptions {
@@ -26,6 +26,6 @@ export declare const _contextLinesIntegration: (options?: ContextLinesOptions) =
26
26
  /**
27
27
  * Capture the lines before and after the frame's context.
28
28
  */
29
- export declare const contextLinesIntegration: (options?: ContextLinesOptions | undefined) => import("@sentry/types").Integration;
29
+ export declare const contextLinesIntegration: (options?: ContextLinesOptions | undefined) => import("@sentry/core").Integration;
30
30
  export {};
31
31
  //# sourceMappingURL=contextlines.d.ts.map
@@ -20,5 +20,5 @@ export declare const fsIntegration: (options?: {
20
20
  * Defaults to `false`.
21
21
  */
22
22
  recordErrorMessagesAsSpanAttributes?: boolean | undefined;
23
- } | undefined) => import("@sentry/types").Integration;
23
+ } | undefined) => import("@sentry/core").Integration;
24
24
  //# sourceMappingURL=fs.d.ts.map
@@ -2,7 +2,7 @@
2
2
  import { ClientRequest, IncomingMessage, RequestOptions, ServerResponse } from 'node:http';
3
3
  import { HttpInstrumentationConfig } from '@opentelemetry/instrumentation-http';
4
4
  import { HttpInstrumentation } from '@opentelemetry/instrumentation-http';
5
- import { Span } from '@sentry/types';
5
+ import { Span } from '@sentry/core';
6
6
  import { HTTPModuleRequestIncomingMessage } from '../../transports/http-module';
7
7
  interface HttpOptions {
8
8
  /**
@@ -70,6 +70,6 @@ export declare const instrumentOtelHttp: ((options?: HttpInstrumentationConfig |
70
70
  * The http integration instruments Node's internal http and https modules.
71
71
  * It creates breadcrumbs and spans for outgoing HTTP requests which will be attached to the currently active span.
72
72
  */
73
- export declare const httpIntegration: (options?: HttpOptions | undefined) => import("@sentry/types").Integration;
73
+ export declare const httpIntegration: (options?: HttpOptions | undefined) => import("@sentry/core").Integration;
74
74
  export {};
75
75
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Integration } from '@sentry/types';
1
+ import { Integration } from '@sentry/core';
2
2
  import { LocalVariablesIntegrationOptions } from './common';
3
3
  export declare const localVariablesIntegration: (options?: LocalVariablesIntegrationOptions) => Integration;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -3,5 +3,5 @@ export declare const base64WorkerScript = "###LocalVariablesWorkerScript###";
3
3
  /**
4
4
  * Adds local variables to exception frames
5
5
  */
6
- export declare const localVariablesAsyncIntegration: (integrationOptions?: LocalVariablesIntegrationOptions | undefined) => import("@sentry/types").Integration;
6
+ export declare const localVariablesAsyncIntegration: (integrationOptions?: LocalVariablesIntegrationOptions | undefined) => import("@sentry/core").Integration;
7
7
  //# sourceMappingURL=local-variables-async.d.ts.map
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import { Debugger, InspectorNotification } from 'node:inspector';
3
- import { StackFrame, StackParser } from '@sentry/types';
3
+ import { StackFrame, StackParser } from '@sentry/core';
4
4
  import { LocalVariablesIntegrationOptions, Variables } from './common';
5
5
  /** Creates a unique hash from stack frames */
6
6
  export declare function hashFrames(frames: StackFrame[] | undefined): string | undefined;
@@ -29,6 +29,6 @@ export declare function createCallbackList<T>(complete: Next<T>): CallbackWrappe
29
29
  /**
30
30
  * Adds local variables to exception frames.
31
31
  */
32
- export declare const localVariablesSyncIntegration: (options?: LocalVariablesIntegrationOptions | undefined, sessionOverride?: DebugSession | undefined) => import("@sentry/types").Integration;
32
+ export declare const localVariablesSyncIntegration: (options?: LocalVariablesIntegrationOptions | undefined, sessionOverride?: DebugSession | undefined) => import("@sentry/core").Integration;
33
33
  export {};
34
34
  //# sourceMappingURL=local-variables-sync.d.ts.map
@@ -3,5 +3,5 @@
3
3
  *
4
4
  * Only works in CommonJS (CJS) environments.
5
5
  */
6
- export declare const modulesIntegration: () => import("@sentry/types").Integration;
6
+ export declare const modulesIntegration: () => import("@sentry/core").Integration;
7
7
  //# sourceMappingURL=modules.d.ts.map
@@ -10,6 +10,6 @@ interface NodeFetchOptions {
10
10
  */
11
11
  ignoreOutgoingRequests?: (url: string) => boolean;
12
12
  }
13
- export declare const nativeNodeFetchIntegration: (options?: NodeFetchOptions | undefined) => import("@sentry/types").Integration;
13
+ export declare const nativeNodeFetchIntegration: (options?: NodeFetchOptions | undefined) => import("@sentry/core").Integration;
14
14
  export {};
15
15
  //# sourceMappingURL=node-fetch.d.ts.map
@@ -21,7 +21,7 @@ interface OnUncaughtExceptionOptions {
21
21
  /**
22
22
  * Add a global exception handler.
23
23
  */
24
- export declare const onUncaughtExceptionIntegration: (options?: Partial<OnUncaughtExceptionOptions> | undefined) => import("@sentry/types").Integration;
24
+ export declare const onUncaughtExceptionIntegration: (options?: Partial<OnUncaughtExceptionOptions> | undefined) => import("@sentry/core").Integration;
25
25
  type ErrorHandler = {
26
26
  _errorHandler: boolean;
27
27
  } & ((error: Error) => void);
@@ -1,4 +1,4 @@
1
- import { Client } from '@sentry/types';
1
+ import { Client } from '@sentry/core';
2
2
  type UnhandledRejectionMode = 'none' | 'warn' | 'strict';
3
3
  interface OnUnhandledRejectionOptions {
4
4
  /**
@@ -10,7 +10,7 @@ interface OnUnhandledRejectionOptions {
10
10
  /**
11
11
  * Add a global promise rejection handler.
12
12
  */
13
- export declare const onUnhandledRejectionIntegration: (options?: Partial<OnUnhandledRejectionOptions> | undefined) => import("@sentry/types").Integration;
13
+ export declare const onUnhandledRejectionIntegration: (options?: Partial<OnUnhandledRejectionOptions> | undefined) => import("@sentry/core").Integration;
14
14
  /**
15
15
  * Send an exception with reason
16
16
  * @param reason string
@@ -14,7 +14,7 @@ export declare const INTEGRATION_NAME = "Spotlight";
14
14
  *
15
15
  * Important: This integration only works with Node 18 or newer.
16
16
  */
17
- export declare const spotlightIntegration: (options?: Partial<SpotlightConnectionOptions> | undefined) => import("@sentry/types").Integration;
17
+ export declare const spotlightIntegration: (options?: Partial<SpotlightConnectionOptions> | undefined) => import("@sentry/core").Integration;
18
18
  type HttpRequestImpl = typeof http.request;
19
19
  /**
20
20
  * We want to get an unpatched http request implementation to avoid capturing our own calls.
@@ -15,5 +15,5 @@ export declare const instrumentAmqplib: ((options?: unknown) => void) & {
15
15
  * });
16
16
  * ```
17
17
  */
18
- export declare const amqplibIntegration: () => import("@sentry/types").Integration;
18
+ export declare const amqplibIntegration: () => import("@sentry/core").Integration;
19
19
  //# sourceMappingURL=amqplib.d.ts.map
@@ -20,7 +20,7 @@ export declare const instrumentConnect: ((options?: unknown) => void) & {
20
20
  * })
21
21
  * ```
22
22
  */
23
- export declare const connectIntegration: () => import("@sentry/types").Integration;
23
+ export declare const connectIntegration: () => import("@sentry/core").Integration;
24
24
  /**
25
25
  * Add a Connect middleware to capture errors to Sentry.
26
26
  *
@@ -15,5 +15,5 @@ export declare const instrumentDataloader: ((options?: unknown) => void) & {
15
15
  * });
16
16
  * ```
17
17
  */
18
- export declare const dataloaderIntegration: () => import("@sentry/types").Integration;
18
+ export declare const dataloaderIntegration: () => import("@sentry/core").Integration;
19
19
  //# sourceMappingURL=dataloader.d.ts.map
@@ -19,7 +19,7 @@ export declare const instrumentExpress: ((options?: unknown) => void) & {
19
19
  * })
20
20
  * ```
21
21
  */
22
- export declare const expressIntegration: () => import("@sentry/types").Integration;
22
+ export declare const expressIntegration: () => import("@sentry/core").Integration;
23
23
  interface MiddlewareError extends Error {
24
24
  status?: number | string;
25
25
  statusCode?: number | string;
@@ -21,7 +21,7 @@ export declare const instrumentFastify: ((options?: unknown) => void) & {
21
21
  * })
22
22
  * ```
23
23
  */
24
- export declare const fastifyIntegration: () => import("@sentry/types").Integration;
24
+ export declare const fastifyIntegration: () => import("@sentry/core").Integration;
25
25
  /**
26
26
  * Add an Fastify error handler to capture errors to Sentry.
27
27
  *
@@ -15,5 +15,5 @@ export declare const instrumentGenericPool: ((options?: unknown) => void) & {
15
15
  * });
16
16
  * ```
17
17
  */
18
- export declare const genericPoolIntegration: () => import("@sentry/types").Integration;
18
+ export declare const genericPoolIntegration: () => import("@sentry/core").Integration;
19
19
  //# sourceMappingURL=genericPool.d.ts.map