@sentry/node 8.37.0 → 8.38.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 (163) hide show
  1. package/build/cjs/index.js +4 -0
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/integrations/anr/index.js +16 -2
  4. package/build/cjs/integrations/anr/index.js.map +1 -1
  5. package/build/cjs/integrations/local-variables/local-variables-async.js +1 -1
  6. package/build/cjs/integrations/tracing/amqplib.js +14 -0
  7. package/build/cjs/integrations/tracing/amqplib.js.map +1 -1
  8. package/build/cjs/integrations/tracing/connect.js +35 -0
  9. package/build/cjs/integrations/tracing/connect.js.map +1 -1
  10. package/build/cjs/integrations/tracing/dataloader.js +11 -2
  11. package/build/cjs/integrations/tracing/dataloader.js.map +1 -1
  12. package/build/cjs/integrations/tracing/express.js +34 -4
  13. package/build/cjs/integrations/tracing/express.js.map +1 -1
  14. package/build/cjs/integrations/tracing/fastify.js +30 -3
  15. package/build/cjs/integrations/tracing/fastify.js.map +1 -1
  16. package/build/cjs/integrations/tracing/genericPool.js +11 -2
  17. package/build/cjs/integrations/tracing/genericPool.js.map +1 -1
  18. package/build/cjs/integrations/tracing/graphql.js +12 -2
  19. package/build/cjs/integrations/tracing/graphql.js.map +1 -1
  20. package/build/cjs/integrations/tracing/hapi/index.js +30 -2
  21. package/build/cjs/integrations/tracing/hapi/index.js.map +1 -1
  22. package/build/cjs/integrations/tracing/index.js +3 -0
  23. package/build/cjs/integrations/tracing/index.js.map +1 -1
  24. package/build/cjs/integrations/tracing/kafka.js +10 -2
  25. package/build/cjs/integrations/tracing/kafka.js.map +1 -1
  26. package/build/cjs/integrations/tracing/knex.js +52 -0
  27. package/build/cjs/integrations/tracing/knex.js.map +1 -0
  28. package/build/cjs/integrations/tracing/koa.js +38 -0
  29. package/build/cjs/integrations/tracing/koa.js.map +1 -1
  30. package/build/cjs/integrations/tracing/lrumemoizer.js +10 -2
  31. package/build/cjs/integrations/tracing/lrumemoizer.js.map +1 -1
  32. package/build/cjs/integrations/tracing/mongo.js +11 -2
  33. package/build/cjs/integrations/tracing/mongo.js.map +1 -1
  34. package/build/cjs/integrations/tracing/mongoose.js +11 -2
  35. package/build/cjs/integrations/tracing/mongoose.js.map +1 -1
  36. package/build/cjs/integrations/tracing/mysql.js +11 -2
  37. package/build/cjs/integrations/tracing/mysql.js.map +1 -1
  38. package/build/cjs/integrations/tracing/mysql2.js +11 -2
  39. package/build/cjs/integrations/tracing/mysql2.js.map +1 -1
  40. package/build/cjs/integrations/tracing/postgres.js +11 -2
  41. package/build/cjs/integrations/tracing/postgres.js.map +1 -1
  42. package/build/cjs/integrations/tracing/prisma.js +24 -6
  43. package/build/cjs/integrations/tracing/prisma.js.map +1 -1
  44. package/build/cjs/integrations/tracing/redis.js +12 -2
  45. package/build/cjs/integrations/tracing/redis.js.map +1 -1
  46. package/build/cjs/integrations/tracing/tedious.js +66 -0
  47. package/build/cjs/integrations/tracing/tedious.js.map +1 -0
  48. package/build/esm/index.js +2 -0
  49. package/build/esm/index.js.map +1 -1
  50. package/build/esm/integrations/anr/index.js +17 -3
  51. package/build/esm/integrations/anr/index.js.map +1 -1
  52. package/build/esm/integrations/anr/worker-script.js +2 -2
  53. package/build/esm/integrations/local-variables/local-variables-async.js +1 -1
  54. package/build/esm/integrations/local-variables/worker-script.js +2 -2
  55. package/build/esm/integrations/tracing/amqplib.js +14 -0
  56. package/build/esm/integrations/tracing/amqplib.js.map +1 -1
  57. package/build/esm/integrations/tracing/connect.js +35 -0
  58. package/build/esm/integrations/tracing/connect.js.map +1 -1
  59. package/build/esm/integrations/tracing/dataloader.js +11 -2
  60. package/build/esm/integrations/tracing/dataloader.js.map +1 -1
  61. package/build/esm/integrations/tracing/express.js +34 -4
  62. package/build/esm/integrations/tracing/express.js.map +1 -1
  63. package/build/esm/integrations/tracing/fastify.js +30 -3
  64. package/build/esm/integrations/tracing/fastify.js.map +1 -1
  65. package/build/esm/integrations/tracing/genericPool.js +11 -2
  66. package/build/esm/integrations/tracing/genericPool.js.map +1 -1
  67. package/build/esm/integrations/tracing/graphql.js +12 -2
  68. package/build/esm/integrations/tracing/graphql.js.map +1 -1
  69. package/build/esm/integrations/tracing/hapi/index.js +30 -2
  70. package/build/esm/integrations/tracing/hapi/index.js.map +1 -1
  71. package/build/esm/integrations/tracing/index.js +3 -0
  72. package/build/esm/integrations/tracing/index.js.map +1 -1
  73. package/build/esm/integrations/tracing/kafka.js +10 -2
  74. package/build/esm/integrations/tracing/kafka.js.map +1 -1
  75. package/build/esm/integrations/tracing/knex.js +49 -0
  76. package/build/esm/integrations/tracing/knex.js.map +1 -0
  77. package/build/esm/integrations/tracing/koa.js +38 -0
  78. package/build/esm/integrations/tracing/koa.js.map +1 -1
  79. package/build/esm/integrations/tracing/lrumemoizer.js +10 -2
  80. package/build/esm/integrations/tracing/lrumemoizer.js.map +1 -1
  81. package/build/esm/integrations/tracing/mongo.js +11 -2
  82. package/build/esm/integrations/tracing/mongo.js.map +1 -1
  83. package/build/esm/integrations/tracing/mongoose.js +11 -2
  84. package/build/esm/integrations/tracing/mongoose.js.map +1 -1
  85. package/build/esm/integrations/tracing/mysql.js +11 -2
  86. package/build/esm/integrations/tracing/mysql.js.map +1 -1
  87. package/build/esm/integrations/tracing/mysql2.js +11 -2
  88. package/build/esm/integrations/tracing/mysql2.js.map +1 -1
  89. package/build/esm/integrations/tracing/postgres.js +11 -2
  90. package/build/esm/integrations/tracing/postgres.js.map +1 -1
  91. package/build/esm/integrations/tracing/prisma.js +24 -6
  92. package/build/esm/integrations/tracing/prisma.js.map +1 -1
  93. package/build/esm/integrations/tracing/redis.js +12 -2
  94. package/build/esm/integrations/tracing/redis.js.map +1 -1
  95. package/build/esm/integrations/tracing/tedious.js +60 -0
  96. package/build/esm/integrations/tracing/tedious.js.map +1 -0
  97. package/build/esm/package.json +1 -1
  98. package/build/types/index.d.ts +2 -0
  99. package/build/types/index.d.ts.map +1 -1
  100. package/build/types/integrations/anr/index.d.ts.map +1 -1
  101. package/build/types/integrations/tracing/amqplib.d.ts +14 -0
  102. package/build/types/integrations/tracing/amqplib.d.ts.map +1 -1
  103. package/build/types/integrations/tracing/connect.d.ts +35 -0
  104. package/build/types/integrations/tracing/connect.d.ts.map +1 -1
  105. package/build/types/integrations/tracing/dataloader.d.ts +11 -2
  106. package/build/types/integrations/tracing/dataloader.d.ts.map +1 -1
  107. package/build/types/integrations/tracing/express.d.ts +34 -4
  108. package/build/types/integrations/tracing/express.d.ts.map +1 -1
  109. package/build/types/integrations/tracing/fastify.d.ts +30 -3
  110. package/build/types/integrations/tracing/fastify.d.ts.map +1 -1
  111. package/build/types/integrations/tracing/genericPool.d.ts +11 -2
  112. package/build/types/integrations/tracing/genericPool.d.ts.map +1 -1
  113. package/build/types/integrations/tracing/graphql.d.ts +12 -2
  114. package/build/types/integrations/tracing/graphql.d.ts.map +1 -1
  115. package/build/types/integrations/tracing/hapi/index.d.ts +30 -2
  116. package/build/types/integrations/tracing/hapi/index.d.ts.map +1 -1
  117. package/build/types/integrations/tracing/index.d.ts.map +1 -1
  118. package/build/types/integrations/tracing/kafka.d.ts +10 -2
  119. package/build/types/integrations/tracing/kafka.d.ts.map +1 -1
  120. package/build/types/integrations/tracing/knex.d.ts +19 -0
  121. package/build/types/integrations/tracing/knex.d.ts.map +1 -0
  122. package/build/types/integrations/tracing/koa.d.ts +38 -0
  123. package/build/types/integrations/tracing/koa.d.ts.map +1 -1
  124. package/build/types/integrations/tracing/lrumemoizer.d.ts +10 -2
  125. package/build/types/integrations/tracing/lrumemoizer.d.ts.map +1 -1
  126. package/build/types/integrations/tracing/mongo.d.ts +11 -2
  127. package/build/types/integrations/tracing/mongo.d.ts.map +1 -1
  128. package/build/types/integrations/tracing/mongoose.d.ts +11 -2
  129. package/build/types/integrations/tracing/mongoose.d.ts.map +1 -1
  130. package/build/types/integrations/tracing/mysql.d.ts +22 -4
  131. package/build/types/integrations/tracing/mysql.d.ts.map +1 -1
  132. package/build/types/integrations/tracing/mysql2.d.ts +11 -2
  133. package/build/types/integrations/tracing/mysql2.d.ts.map +1 -1
  134. package/build/types/integrations/tracing/postgres.d.ts +11 -2
  135. package/build/types/integrations/tracing/postgres.d.ts.map +1 -1
  136. package/build/types/integrations/tracing/prisma.d.ts +24 -6
  137. package/build/types/integrations/tracing/prisma.d.ts.map +1 -1
  138. package/build/types/integrations/tracing/redis.d.ts +12 -2
  139. package/build/types/integrations/tracing/redis.d.ts.map +1 -1
  140. package/build/types/integrations/tracing/tedious.d.ts +19 -0
  141. package/build/types/integrations/tracing/tedious.d.ts.map +1 -0
  142. package/build/types-ts3.8/index.d.ts +2 -0
  143. package/build/types-ts3.8/integrations/tracing/amqplib.d.ts +14 -0
  144. package/build/types-ts3.8/integrations/tracing/connect.d.ts +35 -0
  145. package/build/types-ts3.8/integrations/tracing/dataloader.d.ts +11 -2
  146. package/build/types-ts3.8/integrations/tracing/express.d.ts +34 -4
  147. package/build/types-ts3.8/integrations/tracing/fastify.d.ts +30 -3
  148. package/build/types-ts3.8/integrations/tracing/genericPool.d.ts +11 -2
  149. package/build/types-ts3.8/integrations/tracing/graphql.d.ts +12 -2
  150. package/build/types-ts3.8/integrations/tracing/hapi/index.d.ts +30 -2
  151. package/build/types-ts3.8/integrations/tracing/kafka.d.ts +10 -2
  152. package/build/types-ts3.8/integrations/tracing/knex.d.ts +19 -0
  153. package/build/types-ts3.8/integrations/tracing/koa.d.ts +38 -0
  154. package/build/types-ts3.8/integrations/tracing/lrumemoizer.d.ts +10 -2
  155. package/build/types-ts3.8/integrations/tracing/mongo.d.ts +11 -2
  156. package/build/types-ts3.8/integrations/tracing/mongoose.d.ts +11 -2
  157. package/build/types-ts3.8/integrations/tracing/mysql.d.ts +22 -4
  158. package/build/types-ts3.8/integrations/tracing/mysql2.d.ts +11 -2
  159. package/build/types-ts3.8/integrations/tracing/postgres.d.ts +11 -2
  160. package/build/types-ts3.8/integrations/tracing/prisma.d.ts +24 -6
  161. package/build/types-ts3.8/integrations/tracing/redis.d.ts +12 -2
  162. package/build/types-ts3.8/integrations/tracing/tedious.d.ts +19 -0
  163. package/package.json +8 -6
@@ -4,10 +4,20 @@ export declare const instrumentExpress: ((options?: unknown) => void) & {
4
4
  id: string;
5
5
  };
6
6
  /**
7
- * Express integration
7
+ * Adds Sentry tracing instrumentation for [Express](https://expressjs.com/).
8
8
  *
9
- * Capture tracing data for express.
10
- * In order to capture exceptions, you have to call `setupExpressErrorHandler(app)` before any other middleware and after all controllers.
9
+ * If you also want to capture errors, you need to call `setupExpressErrorHandler(app)` after you set up your Express server.
10
+ *
11
+ * For more information, see the [express documentation](https://docs.sentry.io/platforms/javascript/guides/express/).
12
+ *
13
+ * @example
14
+ * ```javascript
15
+ * const Sentry = require('@sentry/node');
16
+ *
17
+ * Sentry.init({
18
+ * integrations: [Sentry.expressIntegration()],
19
+ * })
20
+ * ```
11
21
  */
12
22
  export declare const expressIntegration: () => import("@sentry/types").Integration;
13
23
  interface MiddlewareError extends Error {
@@ -31,8 +41,28 @@ interface ExpressHandlerOptions {
31
41
  */
32
42
  export declare function expressErrorHandler(options?: ExpressHandlerOptions): ExpressMiddleware;
33
43
  /**
34
- * Setup an error handler for Express.
44
+ * Add an Express error handler to capture errors to Sentry.
45
+ *
35
46
  * The error handler must be before any other middleware and after all controllers.
47
+ *
48
+ * @param app The Express instances
49
+ * @param options {ExpressHandlerOptions} Configuration options for the handler
50
+ *
51
+ * @example
52
+ * ```javascript
53
+ * const Sentry = require('@sentry/node');
54
+ * const express = require("express");
55
+ *
56
+ * const app = express();
57
+ *
58
+ * // Add your routes, etc.
59
+ *
60
+ * // Add this after all routes,
61
+ * // but before any and other error-handling middlewares are defined
62
+ * Sentry.setupExpressErrorHandler(app);
63
+ *
64
+ * app.listen(3000);
65
+ * ```
36
66
  */
37
67
  export declare function setupExpressErrorHandler(app: {
38
68
  use: (middleware: ExpressMiddleware) => unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"express.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/express.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,IAAI,MAAM,WAAW,CAAC;AAcvC,eAAO,MAAM,iBAAiB;;CAoC7B,CAAC;AAWF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,2CAAyC,CAAC;AAEzE,UAAU,eAAgB,SAAQ,KAAK;IACrC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,MAAM,CAAC,EAAE;QACP,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KAC9B,CAAC;CACH;AAED,KAAK,iBAAiB,GAAG,CACvB,KAAK,EAAE,eAAe,EACtB,GAAG,EAAE,IAAI,CAAC,eAAe,EACzB,GAAG,EAAE,IAAI,CAAC,cAAc,EACxB,IAAI,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,KACnC,IAAI,CAAC;AAEV,UAAU,qBAAqB;IAC7B;;;OAGG;IACH,iBAAiB,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC;CACjE;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,iBAAiB,CAqCtF;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE;IAAE,GAAG,EAAE,CAAC,UAAU,EAAE,iBAAiB,KAAK,OAAO,CAAA;CAAE,EACxD,OAAO,CAAC,EAAE,qBAAqB,GAC9B,IAAI,CAGN"}
1
+ {"version":3,"file":"express.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/express.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,IAAI,MAAM,WAAW,CAAC;AAcvC,eAAO,MAAM,iBAAiB;;CAoC7B,CAAC;AAWF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,kBAAkB,2CAAyC,CAAC;AAEzE,UAAU,eAAgB,SAAQ,KAAK;IACrC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,MAAM,CAAC,EAAE;QACP,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KAC9B,CAAC;CACH;AAED,KAAK,iBAAiB,GAAG,CACvB,KAAK,EAAE,eAAe,EACtB,GAAG,EAAE,IAAI,CAAC,eAAe,EACzB,GAAG,EAAE,IAAI,CAAC,cAAc,EACxB,IAAI,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,KACnC,IAAI,CAAC;AAEV,UAAU,qBAAqB;IAC7B;;;OAGG;IACH,iBAAiB,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC;CACjE;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,iBAAiB,CAqCtF;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE;IAAE,GAAG,EAAE,CAAC,UAAU,EAAE,iBAAiB,KAAK,OAAO,CAAA;CAAE,EACxD,OAAO,CAAC,EAAE,qBAAqB,GAC9B,IAAI,CAGN"}
@@ -6,13 +6,40 @@ export declare const instrumentFastify: ((options?: unknown) => void) & {
6
6
  id: string;
7
7
  };
8
8
  /**
9
- * Express integration
9
+ * Adds Sentry tracing instrumentation for [Fastify](https://fastify.dev/).
10
10
  *
11
- * Capture tracing data for fastify.
11
+ * If you also want to capture errors, you need to call `setupFastifyErrorHandler(app)` after you set up your Fastify server.
12
+ *
13
+ * For more information, see the [fastify documentation](https://docs.sentry.io/platforms/javascript/guides/fastify/).
14
+ *
15
+ * @example
16
+ * ```javascript
17
+ * const Sentry = require('@sentry/node');
18
+ *
19
+ * Sentry.init({
20
+ * integrations: [Sentry.fastifyIntegration()],
21
+ * })
22
+ * ```
12
23
  */
13
24
  export declare const fastifyIntegration: () => import("@sentry/types").Integration;
14
25
  /**
15
- * Setup an error handler for Fastify.
26
+ * Add an Fastify error handler to capture errors to Sentry.
27
+ *
28
+ * @param fastify The Fastify instance to which to add the error handler
29
+ *
30
+ * @example
31
+ * ```javascript
32
+ * const Sentry = require('@sentry/node');
33
+ * const Fastify = require("fastify");
34
+ *
35
+ * const app = Fastify();
36
+ *
37
+ * Sentry.setupFastifyErrorHandler(app);
38
+ *
39
+ * // Add your routes, etc.
40
+ *
41
+ * app.listen({ port: 3000 });
42
+ * ```
16
43
  */
17
44
  export declare function setupFastifyErrorHandler(fastify: Fastify): void;
18
45
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"fastify.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/fastify.ts"],"names":[],"mappings":"AAeA,UAAU,OAAO;IAEf,QAAQ,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IAEhC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,KAAK,IAAI,CAAC;CAC5F;AAiBD,eAAO,MAAM,iBAAiB;;CAQ7B,CAAC;AAWF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,2CAAyC,CAAC;AAEzE;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA0C/D"}
1
+ {"version":3,"file":"fastify.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/fastify.ts"],"names":[],"mappings":"AAeA,UAAU,OAAO;IAEf,QAAQ,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IAEhC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,KAAK,IAAI,CAAC;CAC5F;AAiBD,eAAO,MAAM,iBAAiB;;CAQ7B,CAAC;AAWF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,kBAAkB,2CAAyC,CAAC;AAEzE;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA0C/D"}
@@ -2,9 +2,18 @@ export declare const instrumentGenericPool: ((options?: unknown) => void) & {
2
2
  id: string;
3
3
  };
4
4
  /**
5
- * GenericPool integration
5
+ * Adds Sentry tracing instrumentation for the [generic-pool](https://www.npmjs.com/package/generic-pool) library.
6
6
  *
7
- * Capture tracing data for GenericPool.
7
+ * For more information, see the [`genericPoolIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/genericpool/).
8
+ *
9
+ * @example
10
+ * ```javascript
11
+ * const Sentry = require('@sentry/node');
12
+ *
13
+ * Sentry.init({
14
+ * integrations: [Sentry.genericPoolIntegration()],
15
+ * });
16
+ * ```
8
17
  */
9
18
  export declare const genericPoolIntegration: () => import("@sentry/types").Integration;
10
19
  //# sourceMappingURL=genericPool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"genericPool.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/genericPool.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,qBAAqB;;CAAqF,CAAC;AA2BxH;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,2CAA6C,CAAC"}
1
+ {"version":3,"file":"genericPool.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/genericPool.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,qBAAqB;;CAAqF,CAAC;AA2BxH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB,2CAA6C,CAAC"}
@@ -28,9 +28,19 @@ export declare const instrumentGraphql: ((options?: GraphqlOptions | undefined)
28
28
  id: string;
29
29
  };
30
30
  /**
31
- * GraphQL integration
31
+ * Adds Sentry tracing instrumentation for the [graphql](https://www.npmjs.com/package/graphql) library.
32
32
  *
33
- * Capture tracing data for GraphQL.
33
+ * For more information, see the [`graphqlIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/graphql/).
34
+ *
35
+ * @param {GraphqlOptions} options Configuration options for the GraphQL integration.
36
+ *
37
+ * @example
38
+ * ```javascript
39
+ * const Sentry = require('@sentry/node');
40
+ *
41
+ * Sentry.init({
42
+ * integrations: [Sentry.graphqlIntegration()],
43
+ * });
34
44
  */
35
45
  export declare const graphqlIntegration: (options?: GraphqlOptions | undefined) => import("@sentry/types").Integration;
36
46
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/graphql.ts"],"names":[],"mappings":"AAQA,UAAU,cAAc;IACtB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;;;;;;OASG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAEpC;;;;;OAKG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;AAID,eAAO,MAAM,iBAAiB;;CAyC7B,CAAC;AAcF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,+EAAyC,CAAC"}
1
+ {"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/graphql.ts"],"names":[],"mappings":"AAQA,UAAU,cAAc;IACtB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;;;;;;OASG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAEpC;;;;;OAKG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;AAID,eAAO,MAAM,iBAAiB;;CAyC7B,CAAC;AAcF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB,+EAAyC,CAAC"}
@@ -3,10 +3,20 @@ export declare const instrumentHapi: ((options?: unknown) => void) & {
3
3
  id: string;
4
4
  };
5
5
  /**
6
- * Hapi integration
6
+ * Adds Sentry tracing instrumentation for [Hapi](https://hapi.dev/).
7
7
  *
8
- * Capture tracing data for Hapi.
9
8
  * If you also want to capture errors, you need to call `setupHapiErrorHandler(server)` after you set up your server.
9
+ *
10
+ * For more information, see the [hapi documentation](https://docs.sentry.io/platforms/javascript/guides/hapi/).
11
+ *
12
+ * @example
13
+ * ```javascript
14
+ * const Sentry = require('@sentry/node');
15
+ *
16
+ * Sentry.init({
17
+ * integrations: [Sentry.hapiIntegration()],
18
+ * })
19
+ * ```
10
20
  */
11
21
  export declare const hapiIntegration: () => import("@sentry/types").Integration;
12
22
  export declare const hapiErrorPlugin: {
@@ -16,6 +26,24 @@ export declare const hapiErrorPlugin: {
16
26
  };
17
27
  /**
18
28
  * Add a Hapi plugin to capture errors to Sentry.
29
+ *
30
+ * @param server The Hapi server to attach the error handler to
31
+ *
32
+ * @example
33
+ * ```javascript
34
+ * const Sentry = require('@sentry/node');
35
+ * const Hapi = require('@hapi/hapi');
36
+ *
37
+ * const init = async () => {
38
+ * const server = Hapi.server();
39
+ *
40
+ * // all your routes here
41
+ *
42
+ * await Sentry.setupHapiErrorHandler(server);
43
+ *
44
+ * await server.start();
45
+ * };
46
+ * ```
19
47
  */
20
48
  export declare function setupHapiErrorHandler(server: Server): Promise<void>;
21
49
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/hapi/index.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAyB,MAAM,EAAE,MAAM,SAAS,CAAC;AAI7D,eAAO,MAAM,cAAc;;CAA4E,CAAC;AAWxG;;;;;GAKG;AACH,eAAO,MAAM,eAAe,2CAAsC,CAAC;AAkBnE,eAAO,MAAM,eAAe;;;0BAIW,OAAO,GAAG,EAAE,GAAG,CAAC;CAmBtD,CAAC;AAEF;;GAEG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAezE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/hapi/index.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAyB,MAAM,EAAE,MAAM,SAAS,CAAC;AAI7D,eAAO,MAAM,cAAc;;CAA4E,CAAC;AAWxG;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,eAAe,2CAAsC,CAAC;AAkBnE,eAAO,MAAM,eAAe;;;0BAIW,OAAO,GAAG,EAAE,GAAG,CAAC;CAmBtD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAezE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAqBjD;;GAEG;AACH,wBAAgB,8BAA8B,IAAI,WAAW,EAAE,CAwB9D;AAED;;GAEG;AAEH,wBAAgB,wCAAwC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,EAAE,CAsBzG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAsBjD;;GAEG;AACH,wBAAgB,8BAA8B,IAAI,WAAW,EAAE,CAyB9D;AAED;;GAEG;AAEH,wBAAgB,wCAAwC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,EAAE,CAuBzG"}
@@ -2,9 +2,17 @@ export declare const instrumentKafka: ((options?: unknown) => void) & {
2
2
  id: string;
3
3
  };
4
4
  /**
5
- * KafkaJs integration
5
+ * Adds Sentry tracing instrumentation for the [kafkajs](https://www.npmjs.com/package/kafkajs) library.
6
6
  *
7
- * Capture tracing data for KafkaJs.
7
+ * For more information, see the [`kafkaIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/kafka/).
8
+ *
9
+ * @example
10
+ * ```javascript
11
+ * const Sentry = require('@sentry/node');
12
+ *
13
+ * Sentry.init({
14
+ * integrations: [Sentry.kafkaIntegration()],
15
+ * });
8
16
  */
9
17
  export declare const kafkaIntegration: () => import("@sentry/types").Integration;
10
18
  //# sourceMappingURL=kafka.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"kafka.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/kafka.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,eAAe;;CAW3B,CAAC;AAWF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,2CAAuC,CAAC"}
1
+ {"version":3,"file":"kafka.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/kafka.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,eAAe;;CAW3B,CAAC;AAWF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,2CAAuC,CAAC"}
@@ -0,0 +1,19 @@
1
+ export declare const instrumentKnex: ((options?: unknown) => void) & {
2
+ id: string;
3
+ };
4
+ /**
5
+ * Knex integration
6
+ *
7
+ * Capture tracing data for [Knex](https://knexjs.org/).
8
+ *
9
+ * @example
10
+ * ```javascript
11
+ * import * as Sentry from '@sentry/node';
12
+ *
13
+ * Sentry.init({
14
+ * integrations: [Sentry.knexIntegration()],
15
+ * });
16
+ * ```
17
+ */
18
+ export declare const knexIntegration: () => import("@sentry/types").Integration;
19
+ //# sourceMappingURL=knex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"knex.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/knex.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,cAAc;;CAG1B,CAAC;AAsBF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe,2CAAsC,CAAC"}
@@ -1,7 +1,45 @@
1
1
  export declare const instrumentKoa: ((options?: unknown) => void) & {
2
2
  id: string;
3
3
  };
4
+ /**
5
+ * Adds Sentry tracing instrumentation for [Koa](https://koajs.com/).
6
+ *
7
+ * If you also want to capture errors, you need to call `setupKoaErrorHandler(app)` after you set up your Koa server.
8
+ *
9
+ * For more information, see the [koa documentation](https://docs.sentry.io/platforms/javascript/guides/koa/).
10
+ *
11
+ * @example
12
+ * ```javascript
13
+ * const Sentry = require('@sentry/node');
14
+ *
15
+ * Sentry.init({
16
+ * integrations: [Sentry.koaIntegration()],
17
+ * })
18
+ * ```
19
+ */
4
20
  export declare const koaIntegration: () => import("@sentry/types").Integration;
21
+ /**
22
+ * Add an Koa error handler to capture errors to Sentry.
23
+ *
24
+ * The error handler must be before any other middleware and after all controllers.
25
+ *
26
+ * @param app The Express instances
27
+ * @param options {ExpressHandlerOptions} Configuration options for the handler
28
+ *
29
+ * @example
30
+ * ```javascript
31
+ * const Sentry = require('@sentry/node');
32
+ * const Koa = require("koa");
33
+ *
34
+ * const app = new Koa();
35
+ *
36
+ * Sentry.setupKoaErrorHandler(app);
37
+ *
38
+ * // Add your routes, etc.
39
+ *
40
+ * app.listen(3000);
41
+ * ```
42
+ */
5
43
  export declare const setupKoaErrorHandler: (app: {
6
44
  use: (arg0: (ctx: any, next: any) => Promise<void>) => void;
7
45
  }) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"koa.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/koa.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,aAAa;;CAoBzB,CAAC;AAWF,eAAO,MAAM,cAAc,2CAAqC,CAAC;AAGjE,eAAO,MAAM,oBAAoB;sBAA6B,GAAG,QAAQ,GAAG,KAAK,QAAQ,IAAI,CAAC,KAAK,IAAI;MAAK,IAW3G,CAAC"}
1
+ {"version":3,"file":"koa.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/koa.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,aAAa;;CAoBzB,CAAC;AAWF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,cAAc,2CAAqC,CAAC;AAEjE;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,eAAO,MAAM,oBAAoB;sBAA6B,GAAG,QAAQ,GAAG,KAAK,QAAQ,IAAI,CAAC,KAAK,IAAI;MAAK,IAW3G,CAAC"}
@@ -2,9 +2,17 @@ export declare const instrumentLruMemoizer: ((options?: unknown) => void) & {
2
2
  id: string;
3
3
  };
4
4
  /**
5
- * LruMemoizer integration
5
+ * Adds Sentry tracing instrumentation for the [lru-memoizer](https://www.npmjs.com/package/lru-memoizer) library.
6
6
  *
7
- * Propagate traces through LruMemoizer.
7
+ * For more information, see the [`lruMemoizerIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/lrumemoizer/).
8
+ *
9
+ * @example
10
+ * ```javascript
11
+ * const Sentry = require('@sentry/node');
12
+ *
13
+ * Sentry.init({
14
+ * integrations: [Sentry.lruMemoizerIntegration()],
15
+ * });
8
16
  */
9
17
  export declare const lruMemoizerIntegration: () => import("@sentry/types").Integration;
10
18
  //# sourceMappingURL=lrumemoizer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lrumemoizer.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/lrumemoizer.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,qBAAqB;;CAAmF,CAAC;AAWtH;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,2CAA6C,CAAC"}
1
+ {"version":3,"file":"lrumemoizer.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/lrumemoizer.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,qBAAqB;;CAAmF,CAAC;AAWtH;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB,2CAA6C,CAAC"}
@@ -2,9 +2,18 @@ export declare const instrumentMongo: ((options?: unknown) => void) & {
2
2
  id: string;
3
3
  };
4
4
  /**
5
- * MongoDB integration
5
+ * Adds Sentry tracing instrumentation for the [mongodb](https://www.npmjs.com/package/mongodb) library.
6
6
  *
7
- * Capture tracing data for MongoDB.
7
+ * For more information, see the [`mongoIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/mongo/).
8
+ *
9
+ * @example
10
+ * ```javascript
11
+ * const Sentry = require('@sentry/node');
12
+ *
13
+ * Sentry.init({
14
+ * integrations: [Sentry.mongoIntegration()],
15
+ * });
16
+ * ```
8
17
  */
9
18
  export declare const mongoIntegration: () => import("@sentry/types").Integration;
10
19
  //# sourceMappingURL=mongo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mongo.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mongo.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,eAAe;;CAQ3B,CAAC;AAWF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,2CAAuC,CAAC"}
1
+ {"version":3,"file":"mongo.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mongo.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,eAAe;;CAQ3B,CAAC;AAWF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,2CAAuC,CAAC"}
@@ -2,9 +2,18 @@ export declare const instrumentMongoose: ((options?: unknown) => void) & {
2
2
  id: string;
3
3
  };
4
4
  /**
5
- * Mongoose integration
5
+ * Adds Sentry tracing instrumentation for the [mongoose](https://www.npmjs.com/package/mongoose) library.
6
6
  *
7
- * Capture tracing data for Mongoose.
7
+ * For more information, see the [`mongooseIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/mongoose/).
8
+ *
9
+ * @example
10
+ * ```javascript
11
+ * const Sentry = require('@sentry/node');
12
+ *
13
+ * Sentry.init({
14
+ * integrations: [Sentry.mongooseIntegration()],
15
+ * });
16
+ * ```
8
17
  */
9
18
  export declare const mongooseIntegration: () => import("@sentry/types").Integration;
10
19
  //# sourceMappingURL=mongoose.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mongoose.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mongoose.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,kBAAkB;;CAQ9B,CAAC;AAWF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,2CAA0C,CAAC"}
1
+ {"version":3,"file":"mongoose.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mongoose.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,kBAAkB;;CAQ9B,CAAC;AAWF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB,2CAA0C,CAAC"}
@@ -1,15 +1,33 @@
1
1
  export declare const instrumentMysql: ((options?: unknown) => void) & {
2
2
  /**
3
- * MySQL integration
3
+ * Adds Sentry tracing instrumentation for the [mysql](https://www.npmjs.com/package/mysql) library.
4
4
  *
5
- * Capture tracing data for mysql.
5
+ * For more information, see the [`mysqlIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/mysql/).
6
+ *
7
+ * @example
8
+ * ```javascript
9
+ * const Sentry = require('@sentry/node');
10
+ *
11
+ * Sentry.init({
12
+ * integrations: [Sentry.mysqlIntegration()],
13
+ * });
14
+ * ```
6
15
  */
7
16
  id: string;
8
17
  };
9
18
  /**
10
- * MySQL integration
19
+ * Adds Sentry tracing instrumentation for the [mysql](https://www.npmjs.com/package/mysql) library.
20
+ *
21
+ * For more information, see the [`mysqlIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/mysql/).
22
+ *
23
+ * @example
24
+ * ```javascript
25
+ * const Sentry = require('@sentry/node');
11
26
  *
12
- * Capture tracing data for mysql.
27
+ * Sentry.init({
28
+ * integrations: [Sentry.mysqlIntegration()],
29
+ * });
30
+ * ```
13
31
  */
14
32
  export declare const mysqlIntegration: () => import("@sentry/types").Integration;
15
33
  //# sourceMappingURL=mysql.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mysql.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mysql.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,eAAe;IAW5B;;;;OAIG;;CAfwG,CAAC;AAW5G;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,2CAAuC,CAAC"}
1
+ {"version":3,"file":"mysql.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mysql.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,eAAe;IAW5B;;;;;;;;;;;;;OAaG;;CAxBwG,CAAC;AAW5G;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,2CAAuC,CAAC"}
@@ -2,9 +2,18 @@ export declare const instrumentMysql2: ((options?: unknown) => void) & {
2
2
  id: string;
3
3
  };
4
4
  /**
5
- * MySQL2 integration
5
+ * Adds Sentry tracing instrumentation for the [mysql2](https://www.npmjs.com/package/mysql2) library.
6
6
  *
7
- * Capture tracing data for mysql2
7
+ * For more information, see the [`mysql2Integration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/mysql2/).
8
+ *
9
+ * @example
10
+ * ```javascript
11
+ * const Sentry = require('@sentry/node');
12
+ *
13
+ * Sentry.init({
14
+ * integrations: [Sentry.mysqlIntegration()],
15
+ * });
16
+ * ```
8
17
  */
9
18
  export declare const mysql2Integration: () => import("@sentry/types").Integration;
10
19
  //# sourceMappingURL=mysql2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mysql2.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mysql2.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,gBAAgB;;CAQ5B,CAAC;AAWF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,2CAAwC,CAAC"}
1
+ {"version":3,"file":"mysql2.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mysql2.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,gBAAgB;;CAQ5B,CAAC;AAWF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB,2CAAwC,CAAC"}
@@ -2,9 +2,18 @@ export declare const instrumentPostgres: ((options?: unknown) => void) & {
2
2
  id: string;
3
3
  };
4
4
  /**
5
- * Postgres integration
5
+ * Adds Sentry tracing instrumentation for the [pg](https://www.npmjs.com/package/pg) library.
6
6
  *
7
- * Capture tracing data for pg.
7
+ * For more information, see the [`postgresIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/postgres/).
8
+ *
9
+ * @example
10
+ * ```javascript
11
+ * const Sentry = require('@sentry/node');
12
+ *
13
+ * Sentry.init({
14
+ * integrations: [Sentry.postgresIntegration()],
15
+ * });
16
+ * ```
8
17
  */
9
18
  export declare const postgresIntegration: () => import("@sentry/types").Integration;
10
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;;;;GAIG;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,2CAA0C,CAAC"}
@@ -2,13 +2,31 @@ export declare const instrumentPrisma: ((options?: unknown) => void) & {
2
2
  id: string;
3
3
  };
4
4
  /**
5
- * Prisma integration
5
+ * Adds Sentry tracing instrumentation for the [prisma](https://www.npmjs.com/package/prisma) library.
6
6
  *
7
- * Capture tracing data for prisma.
8
- * Note: This requires to set:
9
- * previewFeatures = ["tracing"]
10
- * For the prisma client.
11
- * See https://www.prisma.io/docs/concepts/components/prisma-client/opentelemetry-tracing for more details.
7
+ * For more information, see the [`prismaIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/prisma/).
8
+ *
9
+ * @example
10
+ *
11
+ * Make sure `previewFeatures = ["tracing"]` is set in the prisma client generator block. See the
12
+ * [prisma docs](https://www.prisma.io/docs/concepts/components/prisma-client/opentelemetry-tracing) for more details.
13
+ *
14
+ * ```prisma
15
+ * generator client {
16
+ * provider = "prisma-client-js"
17
+ * previewFeatures = ["tracing"]
18
+ * }
19
+ * ```
20
+ *
21
+ * Then you can use the integration like this:
22
+ *
23
+ * ```javascript
24
+ * const Sentry = require('@sentry/node');
25
+ *
26
+ * Sentry.init({
27
+ * integrations: [Sentry.prismaIntegration()],
28
+ * });
29
+ * ```
12
30
  */
13
31
  export declare const prismaIntegration: () => import("@sentry/types").Integration;
14
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;;;;;;;;GAQG;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,2CAAwC,CAAC"}
@@ -6,9 +6,19 @@ export declare const instrumentRedis: (() => void) & {
6
6
  id: string;
7
7
  };
8
8
  /**
9
- * Redis integration for "ioredis"
9
+ * Adds Sentry tracing instrumentation for the [redis](https://www.npmjs.com/package/redis) and
10
+ * [ioredis](https://www.npmjs.com/package/ioredis) libraries.
10
11
  *
11
- * Capture tracing data for redis and ioredis.
12
+ * For more information, see the [`redisIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/redis/).
13
+ *
14
+ * @example
15
+ * ```javascript
16
+ * const Sentry = require('@sentry/node');
17
+ *
18
+ * Sentry.init({
19
+ * integrations: [Sentry.redisIntegration()],
20
+ * });
21
+ * ```
12
22
  */
13
23
  export declare const redisIntegration: (options?: RedisOptions | undefined) => import("@sentry/types").Integration;
14
24
  export {};
@@ -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;;;;GAIG;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,6EAAuC,CAAC"}
@@ -0,0 +1,19 @@
1
+ export declare const instrumentTedious: ((options?: unknown) => void) & {
2
+ id: string;
3
+ };
4
+ /**
5
+ * Adds Sentry tracing instrumentation for the [tedious](https://www.npmjs.com/package/tedious) library.
6
+ *
7
+ * For more information, see the [`tediousIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/tedious/).
8
+ *
9
+ * @example
10
+ * ```javascript
11
+ * const Sentry = require('@sentry/node');
12
+ *
13
+ * Sentry.init({
14
+ * integrations: [Sentry.tediousIntegration()],
15
+ * });
16
+ * ```
17
+ */
18
+ export declare const tediousIntegration: () => import("@sentry/types").Integration;
19
+ //# sourceMappingURL=tedious.d.ts.map
@@ -0,0 +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"}
@@ -26,6 +26,8 @@ export { hapiIntegration, setupHapiErrorHandler } from './integrations/tracing/h
26
26
  export { koaIntegration, setupKoaErrorHandler } from './integrations/tracing/koa';
27
27
  export { connectIntegration, setupConnectErrorHandler } from './integrations/tracing/connect';
28
28
  export { spotlightIntegration } from './integrations/spotlight';
29
+ export { knexIntegration } from './integrations/tracing/knex';
30
+ export { tediousIntegration } from './integrations/tracing/tedious';
29
31
  export { genericPoolIntegration } from './integrations/tracing/genericPool';
30
32
  export { dataloaderIntegration } from './integrations/tracing/dataloader';
31
33
  export { amqplibIntegration } from './integrations/tracing/amqplib';
@@ -1,5 +1,19 @@
1
1
  export declare const instrumentAmqplib: ((options?: unknown) => void) & {
2
2
  id: string;
3
3
  };
4
+ /**
5
+ * Adds Sentry tracing instrumentation for the [amqplib](https://www.npmjs.com/package/amqplib) library.
6
+ *
7
+ * For more information, see the [`amqplibIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/amqplib/).
8
+ *
9
+ * @example
10
+ * ```javascript
11
+ * const Sentry = require('@sentry/node');
12
+ *
13
+ * Sentry.init({
14
+ * integrations: [Sentry.amqplibIntegration()],
15
+ * });
16
+ * ```
17
+ */
4
18
  export declare const amqplibIntegration: () => import("@sentry/types").Integration;
5
19
  //# sourceMappingURL=amqplib.d.ts.map