@sentry/node 8.54.0 → 9.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (282) hide show
  1. package/build/cjs/cron/common.js +1 -1
  2. package/build/cjs/cron/cron.js +1 -1
  3. package/build/cjs/cron/index.js +1 -1
  4. package/build/cjs/cron/node-cron.js +10 -11
  5. package/build/cjs/cron/node-cron.js.map +1 -1
  6. package/build/cjs/cron/node-schedule.js +2 -6
  7. package/build/cjs/cron/node-schedule.js.map +1 -1
  8. package/build/cjs/debug-build.js +1 -1
  9. package/build/cjs/index.js +3 -15
  10. package/build/cjs/index.js.map +1 -1
  11. package/build/cjs/integrations/anr/index.js +8 -13
  12. package/build/cjs/integrations/anr/index.js.map +1 -1
  13. package/build/cjs/integrations/childProcess.js +19 -24
  14. package/build/cjs/integrations/childProcess.js.map +1 -1
  15. package/build/cjs/integrations/console.js +1 -1
  16. package/build/cjs/integrations/context.js +16 -19
  17. package/build/cjs/integrations/context.js.map +1 -1
  18. package/build/cjs/integrations/contextlines.js +6 -10
  19. package/build/cjs/integrations/contextlines.js.map +1 -1
  20. package/build/cjs/integrations/fs.js +1 -1
  21. package/build/cjs/integrations/http/SentryHttpInstrumentation.js +99 -19
  22. package/build/cjs/integrations/http/SentryHttpInstrumentation.js.map +1 -1
  23. package/build/cjs/integrations/http/index.js +32 -46
  24. package/build/cjs/integrations/http/index.js.map +1 -1
  25. package/build/cjs/integrations/http/vendor/getRequestInfo.js +1 -1
  26. package/build/cjs/integrations/http/vendor/getRequestInfo.js.map +1 -1
  27. package/build/cjs/integrations/local-variables/common.js +1 -1
  28. package/build/cjs/integrations/local-variables/index.js +1 -1
  29. package/build/cjs/integrations/local-variables/local-variables-async.js +4 -8
  30. package/build/cjs/integrations/local-variables/local-variables-async.js.map +1 -1
  31. package/build/cjs/integrations/local-variables/local-variables-sync.js +18 -22
  32. package/build/cjs/integrations/local-variables/local-variables-sync.js.map +1 -1
  33. package/build/cjs/integrations/modules.js +2 -2
  34. package/build/cjs/integrations/modules.js.map +1 -1
  35. package/build/cjs/integrations/node-fetch.js +3 -7
  36. package/build/cjs/integrations/node-fetch.js.map +1 -1
  37. package/build/cjs/integrations/onuncaughtexception.js +1 -1
  38. package/build/cjs/integrations/onunhandledrejection.js +1 -1
  39. package/build/cjs/integrations/processSession.js +36 -0
  40. package/build/cjs/integrations/processSession.js.map +1 -0
  41. package/build/cjs/integrations/spotlight.js +2 -2
  42. package/build/cjs/integrations/spotlight.js.map +1 -1
  43. package/build/cjs/integrations/tracing/amqplib.js +1 -1
  44. package/build/cjs/integrations/tracing/connect.js +2 -2
  45. package/build/cjs/integrations/tracing/connect.js.map +1 -1
  46. package/build/cjs/integrations/tracing/dataloader.js +2 -6
  47. package/build/cjs/integrations/tracing/dataloader.js.map +1 -1
  48. package/build/cjs/integrations/tracing/express.js +4 -31
  49. package/build/cjs/integrations/tracing/express.js.map +1 -1
  50. package/build/cjs/integrations/tracing/fastify.js +3 -7
  51. package/build/cjs/integrations/tracing/fastify.js.map +1 -1
  52. package/build/cjs/integrations/tracing/genericPool.js +1 -1
  53. package/build/cjs/integrations/tracing/graphql.js +5 -5
  54. package/build/cjs/integrations/tracing/graphql.js.map +1 -1
  55. package/build/cjs/integrations/tracing/hapi/index.js +5 -9
  56. package/build/cjs/integrations/tracing/hapi/index.js.map +1 -1
  57. package/build/cjs/integrations/tracing/index.js +1 -6
  58. package/build/cjs/integrations/tracing/index.js.map +1 -1
  59. package/build/cjs/integrations/tracing/kafka.js +1 -1
  60. package/build/cjs/integrations/tracing/knex.js +2 -2
  61. package/build/cjs/integrations/tracing/knex.js.map +1 -1
  62. package/build/cjs/integrations/tracing/koa.js +4 -8
  63. package/build/cjs/integrations/tracing/koa.js.map +1 -1
  64. package/build/cjs/integrations/tracing/lrumemoizer.js +1 -1
  65. package/build/cjs/integrations/tracing/mongo.js +1 -1
  66. package/build/cjs/integrations/tracing/mongoose.js +1 -1
  67. package/build/cjs/integrations/tracing/mysql.js +1 -1
  68. package/build/cjs/integrations/tracing/mysql2.js +1 -1
  69. package/build/cjs/integrations/tracing/postgres.js +1 -1
  70. package/build/cjs/integrations/tracing/prisma.js +21 -67
  71. package/build/cjs/integrations/tracing/prisma.js.map +1 -1
  72. package/build/cjs/integrations/tracing/redis.js +4 -8
  73. package/build/cjs/integrations/tracing/redis.js.map +1 -1
  74. package/build/cjs/integrations/tracing/tedious.js +3 -7
  75. package/build/cjs/integrations/tracing/tedious.js.map +1 -1
  76. package/build/cjs/integrations/tracing/vercelai/index.js +14 -20
  77. package/build/cjs/integrations/tracing/vercelai/index.js.map +1 -1
  78. package/build/cjs/integrations/tracing/vercelai/instrumentation.js +1 -1
  79. package/build/cjs/nodeVersion.js +1 -1
  80. package/build/cjs/otel/contextManager.js +2 -2
  81. package/build/cjs/otel/contextManager.js.map +1 -1
  82. package/build/cjs/otel/instrument.js +1 -1
  83. package/build/cjs/proxy/base.js +30 -33
  84. package/build/cjs/proxy/base.js.map +1 -1
  85. package/build/cjs/proxy/index.js +3 -8
  86. package/build/cjs/proxy/index.js.map +1 -1
  87. package/build/cjs/proxy/parse-proxy-response.js +2 -2
  88. package/build/cjs/proxy/parse-proxy-response.js.map +1 -1
  89. package/build/cjs/sdk/api.js +2 -2
  90. package/build/cjs/sdk/api.js.map +1 -1
  91. package/build/cjs/sdk/client.js +3 -8
  92. package/build/cjs/sdk/client.js.map +1 -1
  93. package/build/cjs/sdk/index.js +5 -58
  94. package/build/cjs/sdk/index.js.map +1 -1
  95. package/build/cjs/sdk/initOtel.js +8 -22
  96. package/build/cjs/sdk/initOtel.js.map +1 -1
  97. package/build/cjs/transports/http.js +10 -16
  98. package/build/cjs/transports/http.js.map +1 -1
  99. package/build/cjs/utils/addOriginToSpan.js +1 -1
  100. package/build/cjs/utils/commonjs.js +1 -1
  101. package/build/cjs/utils/createMissingInstrumentationContext.js +1 -1
  102. package/build/cjs/utils/debug.js +1 -1
  103. package/build/cjs/utils/ensureIsWrapped.js +2 -6
  104. package/build/cjs/utils/ensureIsWrapped.js.map +1 -1
  105. package/build/cjs/utils/envToBool.js +2 -2
  106. package/build/cjs/utils/envToBool.js.map +1 -1
  107. package/build/cjs/utils/errorhandling.js +2 -3
  108. package/build/cjs/utils/errorhandling.js.map +1 -1
  109. package/build/cjs/utils/getRequestUrl.js +1 -1
  110. package/build/cjs/utils/module.js +1 -1
  111. package/build/cjs/utils/module.js.map +1 -1
  112. package/build/cjs/utils/redisCache.js +1 -4
  113. package/build/cjs/utils/redisCache.js.map +1 -1
  114. package/build/esm/cron/node-cron.js +9 -7
  115. package/build/esm/cron/node-cron.js.map +1 -1
  116. package/build/esm/cron/node-schedule.js +1 -2
  117. package/build/esm/cron/node-schedule.js.map +1 -1
  118. package/build/esm/index.js +3 -4
  119. package/build/esm/index.js.map +1 -1
  120. package/build/esm/integrations/anr/index.js +8 -9
  121. package/build/esm/integrations/anr/index.js.map +1 -1
  122. package/build/esm/integrations/anr/worker-script.js +2 -2
  123. package/build/esm/integrations/childProcess.js +20 -24
  124. package/build/esm/integrations/childProcess.js.map +1 -1
  125. package/build/esm/integrations/context.js +15 -15
  126. package/build/esm/integrations/context.js.map +1 -1
  127. package/build/esm/integrations/contextlines.js +5 -6
  128. package/build/esm/integrations/contextlines.js.map +1 -1
  129. package/build/esm/integrations/http/SentryHttpInstrumentation.js +99 -20
  130. package/build/esm/integrations/http/SentryHttpInstrumentation.js.map +1 -1
  131. package/build/esm/integrations/http/index.js +32 -43
  132. package/build/esm/integrations/http/index.js.map +1 -1
  133. package/build/esm/integrations/http/vendor/getRequestInfo.js.map +1 -1
  134. package/build/esm/integrations/local-variables/local-variables-async.js +3 -4
  135. package/build/esm/integrations/local-variables/local-variables-async.js.map +1 -1
  136. package/build/esm/integrations/local-variables/local-variables-sync.js +17 -18
  137. package/build/esm/integrations/local-variables/local-variables-sync.js.map +1 -1
  138. package/build/esm/integrations/local-variables/worker-script.js +2 -2
  139. package/build/esm/integrations/modules.js +1 -1
  140. package/build/esm/integrations/modules.js.map +1 -1
  141. package/build/esm/integrations/node-fetch.js +3 -4
  142. package/build/esm/integrations/node-fetch.js.map +1 -1
  143. package/build/esm/integrations/processSession.js +34 -0
  144. package/build/esm/integrations/processSession.js.map +1 -0
  145. package/build/esm/integrations/spotlight.js +1 -1
  146. package/build/esm/integrations/spotlight.js.map +1 -1
  147. package/build/esm/integrations/tracing/connect.js +1 -1
  148. package/build/esm/integrations/tracing/connect.js.map +1 -1
  149. package/build/esm/integrations/tracing/dataloader.js +1 -2
  150. package/build/esm/integrations/tracing/dataloader.js.map +1 -1
  151. package/build/esm/integrations/tracing/express.js +4 -28
  152. package/build/esm/integrations/tracing/express.js.map +1 -1
  153. package/build/esm/integrations/tracing/fastify.js +2 -3
  154. package/build/esm/integrations/tracing/fastify.js.map +1 -1
  155. package/build/esm/integrations/tracing/graphql.js +4 -4
  156. package/build/esm/integrations/tracing/graphql.js.map +1 -1
  157. package/build/esm/integrations/tracing/hapi/index.js +4 -5
  158. package/build/esm/integrations/tracing/hapi/index.js.map +1 -1
  159. package/build/esm/integrations/tracing/index.js +0 -5
  160. package/build/esm/integrations/tracing/index.js.map +1 -1
  161. package/build/esm/integrations/tracing/knex.js +1 -1
  162. package/build/esm/integrations/tracing/knex.js.map +1 -1
  163. package/build/esm/integrations/tracing/koa.js +3 -4
  164. package/build/esm/integrations/tracing/koa.js.map +1 -1
  165. package/build/esm/integrations/tracing/prisma.js +21 -64
  166. package/build/esm/integrations/tracing/prisma.js.map +1 -1
  167. package/build/esm/integrations/tracing/redis.js +4 -5
  168. package/build/esm/integrations/tracing/redis.js.map +1 -1
  169. package/build/esm/integrations/tracing/tedious.js +2 -3
  170. package/build/esm/integrations/tracing/tedious.js.map +1 -1
  171. package/build/esm/integrations/tracing/vercelai/index.js +13 -16
  172. package/build/esm/integrations/tracing/vercelai/index.js.map +1 -1
  173. package/build/esm/otel/contextManager.js +1 -1
  174. package/build/esm/otel/contextManager.js.map +1 -1
  175. package/build/esm/package.json +1 -1
  176. package/build/esm/proxy/base.js +29 -29
  177. package/build/esm/proxy/base.js.map +1 -1
  178. package/build/esm/proxy/index.js +2 -3
  179. package/build/esm/proxy/index.js.map +1 -1
  180. package/build/esm/proxy/parse-proxy-response.js +1 -1
  181. package/build/esm/proxy/parse-proxy-response.js.map +1 -1
  182. package/build/esm/sdk/api.js +1 -1
  183. package/build/esm/sdk/api.js.map +1 -1
  184. package/build/esm/sdk/client.js +2 -3
  185. package/build/esm/sdk/client.js.map +1 -1
  186. package/build/esm/sdk/index.js +5 -58
  187. package/build/esm/sdk/index.js.map +1 -1
  188. package/build/esm/sdk/initOtel.js +7 -18
  189. package/build/esm/sdk/initOtel.js.map +1 -1
  190. package/build/esm/transports/http.js +9 -12
  191. package/build/esm/transports/http.js.map +1 -1
  192. package/build/esm/utils/ensureIsWrapped.js +1 -2
  193. package/build/esm/utils/ensureIsWrapped.js.map +1 -1
  194. package/build/esm/utils/envToBool.js +1 -1
  195. package/build/esm/utils/envToBool.js.map +1 -1
  196. package/build/esm/utils/errorhandling.js +1 -2
  197. package/build/esm/utils/errorhandling.js.map +1 -1
  198. package/build/esm/utils/module.js.map +1 -1
  199. package/build/esm/utils/redisCache.js +0 -3
  200. package/build/esm/utils/redisCache.js.map +1 -1
  201. package/build/types/cron/node-cron.d.ts +1 -1
  202. package/build/types/cron/node-cron.d.ts.map +1 -1
  203. package/build/types/index.d.ts +4 -6
  204. package/build/types/index.d.ts.map +1 -1
  205. package/build/types/integrations/childProcess.d.ts +7 -7
  206. package/build/types/integrations/childProcess.d.ts.map +1 -1
  207. package/build/types/integrations/http/SentryHttpInstrumentation.d.ts +30 -0
  208. package/build/types/integrations/http/SentryHttpInstrumentation.d.ts.map +1 -1
  209. package/build/types/integrations/http/index.d.ts +11 -8
  210. package/build/types/integrations/http/index.d.ts.map +1 -1
  211. package/build/types/integrations/processSession.d.ts +5 -0
  212. package/build/types/integrations/processSession.d.ts.map +1 -0
  213. package/build/types/integrations/tracing/express.d.ts.map +1 -1
  214. package/build/types/integrations/tracing/hapi/types.d.ts +1 -0
  215. package/build/types/integrations/tracing/hapi/types.d.ts.map +1 -1
  216. package/build/types/integrations/tracing/index.d.ts.map +1 -1
  217. package/build/types/integrations/tracing/prisma.d.ts +11 -12
  218. package/build/types/integrations/tracing/prisma.d.ts.map +1 -1
  219. package/build/types/integrations/tracing/vercelai/index.d.ts.map +1 -1
  220. package/build/types/otel/contextManager.d.ts +1 -1
  221. package/build/types/proxy/helpers.d.ts +1 -0
  222. package/build/types/proxy/helpers.d.ts.map +1 -1
  223. package/build/types/proxy/parse-proxy-response.d.ts +1 -0
  224. package/build/types/proxy/parse-proxy-response.d.ts.map +1 -1
  225. package/build/types/sdk/index.d.ts.map +1 -1
  226. package/build/types/sdk/initOtel.d.ts +1 -3
  227. package/build/types/sdk/initOtel.d.ts.map +1 -1
  228. package/build/types/transports/http-module.d.ts +1 -0
  229. package/build/types/transports/http-module.d.ts.map +1 -1
  230. package/build/types/transports/http.d.ts +1 -0
  231. package/build/types/transports/http.d.ts.map +1 -1
  232. package/build/types/types.d.ts +2 -48
  233. package/build/types/types.d.ts.map +1 -1
  234. package/build/types/utils/errorhandling.d.ts.map +1 -1
  235. package/build/types-ts3.8/cron/node-cron.d.ts +1 -1
  236. package/build/types-ts3.8/index.d.ts +4 -6
  237. package/build/types-ts3.8/integrations/childProcess.d.ts +7 -7
  238. package/build/types-ts3.8/integrations/http/SentryHttpInstrumentation.d.ts +29 -0
  239. package/build/types-ts3.8/integrations/http/index.d.ts +11 -8
  240. package/build/types-ts3.8/integrations/processSession.d.ts +5 -0
  241. package/build/types-ts3.8/integrations/tracing/prisma.d.ts +11 -12
  242. package/build/types-ts3.8/otel/contextManager.d.ts +1 -1
  243. package/build/types-ts3.8/sdk/initOtel.d.ts +1 -3
  244. package/build/types-ts3.8/types.d.ts +2 -48
  245. package/package.json +8 -9
  246. package/build/cjs/integrations/tracing/nest/helpers.js +0 -100
  247. package/build/cjs/integrations/tracing/nest/helpers.js.map +0 -1
  248. package/build/cjs/integrations/tracing/nest/nest.js +0 -148
  249. package/build/cjs/integrations/tracing/nest/nest.js.map +0 -1
  250. package/build/cjs/integrations/tracing/nest/sentry-nest-event-instrumentation.js +0 -117
  251. package/build/cjs/integrations/tracing/nest/sentry-nest-event-instrumentation.js.map +0 -1
  252. package/build/cjs/integrations/tracing/nest/sentry-nest-instrumentation.js +0 -301
  253. package/build/cjs/integrations/tracing/nest/sentry-nest-instrumentation.js.map +0 -1
  254. package/build/esm/integrations/tracing/nest/helpers.js +0 -91
  255. package/build/esm/integrations/tracing/nest/helpers.js.map +0 -1
  256. package/build/esm/integrations/tracing/nest/nest.js +0 -141
  257. package/build/esm/integrations/tracing/nest/nest.js.map +0 -1
  258. package/build/esm/integrations/tracing/nest/sentry-nest-event-instrumentation.js +0 -115
  259. package/build/esm/integrations/tracing/nest/sentry-nest-event-instrumentation.js.map +0 -1
  260. package/build/esm/integrations/tracing/nest/sentry-nest-instrumentation.js +0 -295
  261. package/build/esm/integrations/tracing/nest/sentry-nest-instrumentation.js.map +0 -1
  262. package/build/types/integrations/tracing/nest/helpers.d.ts +0 -36
  263. package/build/types/integrations/tracing/nest/helpers.d.ts.map +0 -1
  264. package/build/types/integrations/tracing/nest/nest.d.ts +0 -19
  265. package/build/types/integrations/tracing/nest/nest.d.ts.map +0 -1
  266. package/build/types/integrations/tracing/nest/sentry-nest-event-instrumentation.d.ts +0 -27
  267. package/build/types/integrations/tracing/nest/sentry-nest-event-instrumentation.d.ts.map +0 -1
  268. package/build/types/integrations/tracing/nest/sentry-nest-instrumentation.d.ts +0 -37
  269. package/build/types/integrations/tracing/nest/sentry-nest-instrumentation.d.ts.map +0 -1
  270. package/build/types/integrations/tracing/nest/types.d.ts +0 -84
  271. package/build/types/integrations/tracing/nest/types.d.ts.map +0 -1
  272. package/build/types/integrations/tracing/prisma/vendor/v5-tracing-helper.d.ts +0 -38
  273. package/build/types/integrations/tracing/prisma/vendor/v5-tracing-helper.d.ts.map +0 -1
  274. package/build/types/integrations/tracing/prisma/vendor/v6-tracing-helper.d.ts +0 -31
  275. package/build/types/integrations/tracing/prisma/vendor/v6-tracing-helper.d.ts.map +0 -1
  276. package/build/types-ts3.8/integrations/tracing/nest/helpers.d.ts +0 -36
  277. package/build/types-ts3.8/integrations/tracing/nest/nest.d.ts +0 -19
  278. package/build/types-ts3.8/integrations/tracing/nest/sentry-nest-event-instrumentation.d.ts +0 -27
  279. package/build/types-ts3.8/integrations/tracing/nest/sentry-nest-instrumentation.d.ts +0 -37
  280. package/build/types-ts3.8/integrations/tracing/nest/types.d.ts +0 -84
  281. package/build/types-ts3.8/integrations/tracing/prisma/vendor/v5-tracing-helper.d.ts +0 -44
  282. package/build/types-ts3.8/integrations/tracing/prisma/vendor/v6-tracing-helper.d.ts +0 -34
@@ -1,38 +0,0 @@
1
- import type { Context, Span, SpanOptions } from '@opentelemetry/api';
2
- type V5SpanCallback<R> = (span?: Span, context?: Context) => R;
3
- type V5ExtendedSpanOptions = SpanOptions & {
4
- name: string;
5
- internal?: boolean;
6
- middleware?: boolean;
7
- active?: boolean;
8
- context?: Context;
9
- };
10
- type EngineSpanEvent = {
11
- span: boolean;
12
- spans: V5EngineSpan[];
13
- };
14
- type V5EngineSpanKind = 'client' | 'internal';
15
- type V5EngineSpan = {
16
- span: boolean;
17
- name: string;
18
- trace_id: string;
19
- span_id: string;
20
- parent_span_id: string;
21
- start_time: [number, number];
22
- end_time: [number, number];
23
- attributes?: Record<string, string>;
24
- links?: {
25
- trace_id: string;
26
- span_id: string;
27
- }[];
28
- kind: V5EngineSpanKind;
29
- };
30
- export interface PrismaV5TracingHelper {
31
- isEnabled(): boolean;
32
- getTraceParent(context?: Context): string;
33
- createEngineSpan(engineSpanEvent: EngineSpanEvent): void;
34
- getActiveContext(): Context | undefined;
35
- runInChildSpan<R>(nameOrOptions: string | V5ExtendedSpanOptions, callback: V5SpanCallback<R>): R;
36
- }
37
- export {};
38
- //# sourceMappingURL=v5-tracing-helper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v5-tracing-helper.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/prisma/vendor/v5-tracing-helper.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAErE,KAAK,cAAc,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,CAAC,CAAC;AAE/D,KAAK,qBAAqB,GAAG,WAAW,GAAG;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB,CAAC;AAEF,KAAK,gBAAgB,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE9C,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,KAAK,CAAC,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAChD,IAAI,EAAE,gBAAgB,CAAC;CACxB,CAAC;AAEF,MAAM,WAAW,qBAAqB;IACpC,SAAS,IAAI,OAAO,CAAC;IACrB,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC1C,gBAAgB,CAAC,eAAe,EAAE,eAAe,GAAG,IAAI,CAAC;IACzD,gBAAgB,IAAI,OAAO,GAAG,SAAS,CAAC;IACxC,cAAc,CAAC,CAAC,EAAE,aAAa,EAAE,MAAM,GAAG,qBAAqB,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CAClG"}
@@ -1,31 +0,0 @@
1
- import type { Context, Span, SpanOptions } from '@opentelemetry/api';
2
- type V6SpanCallback<R> = (span?: Span, context?: Context) => R;
3
- type V6ExtendedSpanOptions = SpanOptions & {
4
- name: string;
5
- internal?: boolean;
6
- middleware?: boolean;
7
- active?: boolean;
8
- context?: Context;
9
- };
10
- type V6EngineSpanId = string;
11
- type V6HrTime = [number, number];
12
- type EngineSpanKind = 'client' | 'internal';
13
- type PrismaV6EngineSpan = {
14
- id: V6EngineSpanId;
15
- parentId: string | null;
16
- name: string;
17
- startTime: V6HrTime;
18
- endTime: V6HrTime;
19
- kind: EngineSpanKind;
20
- attributes?: Record<string, unknown>;
21
- links?: V6EngineSpanId[];
22
- };
23
- export interface PrismaV6TracingHelper {
24
- isEnabled(): boolean;
25
- getTraceParent(context?: Context): string;
26
- dispatchEngineSpans(spans: PrismaV6EngineSpan[]): void;
27
- getActiveContext(): Context | undefined;
28
- runInChildSpan<R>(nameOrOptions: string | V6ExtendedSpanOptions, callback: V6SpanCallback<R>): R;
29
- }
30
- export {};
31
- //# sourceMappingURL=v6-tracing-helper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v6-tracing-helper.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/prisma/vendor/v6-tracing-helper.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAErE,KAAK,cAAc,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,CAAC,CAAC;AAE/D,KAAK,qBAAqB,GAAG,WAAW,GAAG;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,KAAK,cAAc,GAAG,MAAM,CAAC;AAE7B,KAAK,QAAQ,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEjC,KAAK,cAAc,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE5C,KAAK,kBAAkB,GAAG;IACxB,EAAE,EAAE,cAAc,CAAC;IACnB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,QAAQ,CAAC;IACpB,OAAO,EAAE,QAAQ,CAAC;IAClB,IAAI,EAAE,cAAc,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;CAC1B,CAAC;AAEF,MAAM,WAAW,qBAAqB;IACpC,SAAS,IAAI,OAAO,CAAC;IACrB,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC1C,mBAAmB,CAAC,KAAK,EAAE,kBAAkB,EAAE,GAAG,IAAI,CAAC;IACvD,gBAAgB,IAAI,OAAO,GAAG,SAAS,CAAC;IACxC,cAAc,CAAC,CAAC,EAAE,aAAa,EAAE,MAAM,GAAG,qBAAqB,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CAClG"}
@@ -1,36 +0,0 @@
1
- import { Span } from '@sentry/core';
2
- import { CatchTarget, InjectableTarget, NextFunction, Observable } from './types';
3
- /**
4
- * Helper checking if a concrete target class is already patched.
5
- *
6
- * We already guard duplicate patching with isWrapped. However, isWrapped checks whether a file has been patched, whereas we use this check for concrete target classes.
7
- * This check might not be necessary, but better to play it safe.
8
- */
9
- export declare function isPatched(target: InjectableTarget | CatchTarget): boolean;
10
- /**
11
- * Returns span options for nest middleware spans.
12
- */
13
- export declare function getMiddlewareSpanOptions(target: InjectableTarget | CatchTarget, name?: string | undefined): {
14
- name: string;
15
- attributes: {
16
- "sentry.op": string;
17
- "sentry.origin": string;
18
- };
19
- };
20
- /**
21
- * Returns span options for nest event spans.
22
- */
23
- export declare function getEventSpanOptions(event: string): {
24
- name: string;
25
- attributes: Record<string, string>;
26
- forceTransaction: boolean;
27
- };
28
- /**
29
- * Adds instrumentation to a js observable and attaches the span to an active parent span.
30
- */
31
- export declare function instrumentObservable(observable: Observable<unknown>, activeSpan: Span | undefined): void;
32
- /**
33
- * Proxies the next() call in a nestjs middleware to end the span when it is called.
34
- */
35
- export declare function getNextProxy(next: NextFunction, span: Span, prevSpan: undefined | Span): NextFunction;
36
- //# sourceMappingURL=helpers.d.ts.map
@@ -1,19 +0,0 @@
1
- import { MinimalNestJsApp, NestJsErrorFilter } from './types';
2
- export declare const instrumentNest: (() => void) & {
3
- id: string;
4
- };
5
- /**
6
- * Integration capturing tracing data for NestJS.
7
- *
8
- * @deprecated The `nestIntegration` is deprecated. Instead, use the NestJS SDK directly (`@sentry/nestjs`), or use the `nestIntegration` export from `@sentry/nestjs`.
9
- */
10
- export declare const nestIntegration: () => import("@sentry/core").Integration;
11
- /**
12
- * Setup an error handler for Nest.
13
- *
14
- * @deprecated `setupNestErrorHandler` is deprecated.
15
- * Instead use the `@sentry/nestjs` package, which has more functional APIs for capturing errors.
16
- * See the [`@sentry/nestjs` Setup Guide](https://docs.sentry.io/platforms/javascript/guides/nestjs/) for how to set up the Sentry NestJS SDK.
17
- */
18
- export declare function setupNestErrorHandler(app: MinimalNestJsApp, baseFilter: NestJsErrorFilter): void;
19
- //# sourceMappingURL=nest.d.ts.map
@@ -1,27 +0,0 @@
1
- import { InstrumentationConfig } from '@opentelemetry/instrumentation';
2
- import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
3
- /**
4
- * Custom instrumentation for nestjs event-emitter
5
- *
6
- * This hooks into the `OnEvent` decorator, which is applied on event handlers.
7
- */
8
- export declare class SentryNestEventInstrumentation extends InstrumentationBase {
9
- static readonly COMPONENT = "@nestjs/event-emitter";
10
- static readonly COMMON_ATTRIBUTES: {
11
- component: string;
12
- };
13
- constructor(config?: InstrumentationConfig);
14
- /**
15
- * Initializes the instrumentation by defining the modules to be patched.
16
- */
17
- init(): InstrumentationNodeModuleDefinition;
18
- /**
19
- * Wraps the @OnEvent decorator.
20
- */
21
- private _getOnEventFileInstrumentation;
22
- /**
23
- * Creates a wrapper function for the @OnEvent decorator.
24
- */
25
- private _createWrapOnEvent;
26
- }
27
- //# sourceMappingURL=sentry-nest-event-instrumentation.d.ts.map
@@ -1,37 +0,0 @@
1
- import { InstrumentationConfig } from '@opentelemetry/instrumentation';
2
- import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
3
- /**
4
- * Custom instrumentation for nestjs.
5
- *
6
- * This hooks into
7
- * 1. @Injectable decorator, which is applied on class middleware, interceptors and guards.
8
- * 2. @Catch decorator, which is applied on exception filters.
9
- */
10
- export declare class SentryNestInstrumentation extends InstrumentationBase {
11
- static readonly COMPONENT = "@nestjs/common";
12
- static readonly COMMON_ATTRIBUTES: {
13
- component: string;
14
- };
15
- constructor(config?: InstrumentationConfig);
16
- /**
17
- * Initializes the instrumentation by defining the modules to be patched.
18
- */
19
- init(): InstrumentationNodeModuleDefinition;
20
- /**
21
- * Wraps the @Injectable decorator.
22
- */
23
- private _getInjectableFileInstrumentation;
24
- /**
25
- * Wraps the @Catch decorator.
26
- */
27
- private _getCatchFileInstrumentation;
28
- /**
29
- * Creates a wrapper function for the @Injectable decorator.
30
- */
31
- private _createWrapInjectable;
32
- /**
33
- * Creates a wrapper function for the @Catch decorator. Used to instrument exception filters.
34
- */
35
- private _createWrapCatch;
36
- }
37
- //# sourceMappingURL=sentry-nest-instrumentation.d.ts.map
@@ -1,84 +0,0 @@
1
- interface FastifyRequest {
2
- routeOptions?: {
3
- url?: string;
4
- };
5
- method?: string;
6
- }
7
- interface ExpressRequest {
8
- route?: {
9
- path?: string;
10
- };
11
- method?: string;
12
- }
13
- export interface MinimalNestJsExecutionContext {
14
- getType: () => string;
15
- switchToHttp: () => {
16
- getRequest: () => FastifyRequest | ExpressRequest;
17
- };
18
- _sentryInterceptorInstrumented?: boolean;
19
- }
20
- export interface NestJsErrorFilter {
21
- catch(exception: any, host: any): void;
22
- }
23
- export interface MinimalNestJsApp {
24
- useGlobalFilters: (arg0: NestJsErrorFilter) => void;
25
- useGlobalInterceptors: (interceptor: {
26
- intercept: (context: MinimalNestJsExecutionContext, next: {
27
- handle: () => any;
28
- }) => any;
29
- }) => void;
30
- }
31
- export interface Subscription {
32
- add(...args: any[]): void;
33
- }
34
- /**
35
- * A minimal interface for an Observable.
36
- */
37
- export interface Observable<T> {
38
- subscribe(next?: (value: T) => void, error?: (err: any) => void, complete?: () => void): Subscription;
39
- }
40
- /**
41
- * A NestJS call handler. Used in interceptors to start the route execution.
42
- */
43
- export interface CallHandler {
44
- handle(...args: any[]): Observable<any>;
45
- }
46
- /**
47
- * Represents an injectable target class in NestJS.
48
- */
49
- export interface InjectableTarget {
50
- name: string;
51
- sentryPatched?: boolean;
52
- __SENTRY_INTERNAL__?: boolean;
53
- prototype: {
54
- use?: (req: unknown, res: unknown, next: () => void, ...args: any[]) => void;
55
- canActivate?: (...args: any[]) => boolean | Promise<boolean> | Observable<boolean>;
56
- transform?: (...args: any[]) => any;
57
- intercept?: (context: unknown, next: CallHandler, ...args: any[]) => Observable<any>;
58
- };
59
- }
60
- /**
61
- * Represents a target class in NestJS annotated with @Catch.
62
- */
63
- export interface CatchTarget {
64
- name: string;
65
- sentryPatched?: boolean;
66
- __SENTRY_INTERNAL__?: boolean;
67
- prototype: {
68
- catch?: (...args: any[]) => any;
69
- };
70
- }
71
- /**
72
- * Represents a target method in NestJS annotated with @OnEvent.
73
- */
74
- export interface OnEventTarget {
75
- name: string;
76
- sentryPatched?: boolean;
77
- __SENTRY_INTERNAL__?: boolean;
78
- }
79
- /**
80
- * Represents an express NextFunction.
81
- */
82
- export type NextFunction = (err?: any) => void;
83
- export {};
84
- //# sourceMappingURL=types.d.ts.map
@@ -1,44 +0,0 @@
1
- import { Context, Span, SpanOptions } from '@opentelemetry/api';
2
- type V5SpanCallback<R> = (span?: Span, context?: Context) => R;
3
- type V5ExtendedSpanOptions = SpanOptions & {
4
- name: string;
5
- internal?: boolean;
6
- middleware?: boolean;
7
- active?: boolean;
8
- context?: Context;
9
- };
10
- type EngineSpanEvent = {
11
- span: boolean;
12
- spans: V5EngineSpan[];
13
- };
14
- type V5EngineSpanKind = 'client' | 'internal';
15
- type V5EngineSpan = {
16
- span: boolean;
17
- name: string;
18
- trace_id: string;
19
- span_id: string;
20
- parent_span_id: string;
21
- start_time: [
22
- number,
23
- number
24
- ];
25
- end_time: [
26
- number,
27
- number
28
- ];
29
- attributes?: Record<string, string>;
30
- links?: {
31
- trace_id: string;
32
- span_id: string;
33
- }[];
34
- kind: V5EngineSpanKind;
35
- };
36
- export interface PrismaV5TracingHelper {
37
- isEnabled(): boolean;
38
- getTraceParent(context?: Context): string;
39
- createEngineSpan(engineSpanEvent: EngineSpanEvent): void;
40
- getActiveContext(): Context | undefined;
41
- runInChildSpan<R>(nameOrOptions: string | V5ExtendedSpanOptions, callback: V5SpanCallback<R>): R;
42
- }
43
- export {};
44
- //# sourceMappingURL=v5-tracing-helper.d.ts.map
@@ -1,34 +0,0 @@
1
- import { Context, Span, SpanOptions } from '@opentelemetry/api';
2
- type V6SpanCallback<R> = (span?: Span, context?: Context) => R;
3
- type V6ExtendedSpanOptions = SpanOptions & {
4
- name: string;
5
- internal?: boolean;
6
- middleware?: boolean;
7
- active?: boolean;
8
- context?: Context;
9
- };
10
- type V6EngineSpanId = string;
11
- type V6HrTime = [
12
- number,
13
- number
14
- ];
15
- type EngineSpanKind = 'client' | 'internal';
16
- type PrismaV6EngineSpan = {
17
- id: V6EngineSpanId;
18
- parentId: string | null;
19
- name: string;
20
- startTime: V6HrTime;
21
- endTime: V6HrTime;
22
- kind: EngineSpanKind;
23
- attributes?: Record<string, unknown>;
24
- links?: V6EngineSpanId[];
25
- };
26
- export interface PrismaV6TracingHelper {
27
- isEnabled(): boolean;
28
- getTraceParent(context?: Context): string;
29
- dispatchEngineSpans(spans: PrismaV6EngineSpan[]): void;
30
- getActiveContext(): Context | undefined;
31
- runInChildSpan<R>(nameOrOptions: string | V6ExtendedSpanOptions, callback: V6SpanCallback<R>): R;
32
- }
33
- export {};
34
- //# sourceMappingURL=v6-tracing-helper.d.ts.map