@sentry/node 8.37.1 → 8.39.0-dev.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.
- package/build/cjs/index.js +4 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/integrations/anr/index.js +16 -2
- package/build/cjs/integrations/anr/index.js.map +1 -1
- package/build/cjs/integrations/local-variables/local-variables-async.js +1 -1
- package/build/cjs/integrations/local-variables/local-variables-async.js.map +1 -1
- package/build/cjs/integrations/tracing/amqplib.js +14 -0
- package/build/cjs/integrations/tracing/amqplib.js.map +1 -1
- package/build/cjs/integrations/tracing/connect.js +35 -0
- package/build/cjs/integrations/tracing/connect.js.map +1 -1
- package/build/cjs/integrations/tracing/dataloader.js +11 -2
- package/build/cjs/integrations/tracing/dataloader.js.map +1 -1
- package/build/cjs/integrations/tracing/express.js +34 -4
- package/build/cjs/integrations/tracing/express.js.map +1 -1
- package/build/cjs/integrations/tracing/fastify.js +30 -3
- package/build/cjs/integrations/tracing/fastify.js.map +1 -1
- package/build/cjs/integrations/tracing/genericPool.js +11 -2
- package/build/cjs/integrations/tracing/genericPool.js.map +1 -1
- package/build/cjs/integrations/tracing/graphql.js +12 -2
- package/build/cjs/integrations/tracing/graphql.js.map +1 -1
- package/build/cjs/integrations/tracing/hapi/index.js +30 -2
- package/build/cjs/integrations/tracing/hapi/index.js.map +1 -1
- package/build/cjs/integrations/tracing/index.js +3 -0
- package/build/cjs/integrations/tracing/index.js.map +1 -1
- package/build/cjs/integrations/tracing/kafka.js +10 -2
- package/build/cjs/integrations/tracing/kafka.js.map +1 -1
- package/build/cjs/integrations/tracing/knex.js +52 -0
- package/build/cjs/integrations/tracing/knex.js.map +1 -0
- package/build/cjs/integrations/tracing/koa.js +38 -0
- package/build/cjs/integrations/tracing/koa.js.map +1 -1
- package/build/cjs/integrations/tracing/lrumemoizer.js +10 -2
- package/build/cjs/integrations/tracing/lrumemoizer.js.map +1 -1
- package/build/cjs/integrations/tracing/mongo.js +11 -2
- package/build/cjs/integrations/tracing/mongo.js.map +1 -1
- package/build/cjs/integrations/tracing/mongoose.js +11 -2
- package/build/cjs/integrations/tracing/mongoose.js.map +1 -1
- package/build/cjs/integrations/tracing/mysql.js +11 -2
- package/build/cjs/integrations/tracing/mysql.js.map +1 -1
- package/build/cjs/integrations/tracing/mysql2.js +11 -2
- package/build/cjs/integrations/tracing/mysql2.js.map +1 -1
- package/build/cjs/integrations/tracing/postgres.js +11 -2
- package/build/cjs/integrations/tracing/postgres.js.map +1 -1
- package/build/cjs/integrations/tracing/prisma.js +24 -6
- package/build/cjs/integrations/tracing/prisma.js.map +1 -1
- package/build/cjs/integrations/tracing/redis.js +12 -2
- package/build/cjs/integrations/tracing/redis.js.map +1 -1
- package/build/cjs/integrations/tracing/tedious.js +66 -0
- package/build/cjs/integrations/tracing/tedious.js.map +1 -0
- package/build/esm/index.js +2 -0
- package/build/esm/index.js.map +1 -1
- package/build/esm/integrations/anr/index.js +17 -3
- package/build/esm/integrations/anr/index.js.map +1 -1
- package/build/esm/integrations/anr/worker-script.js +2 -2
- package/build/esm/integrations/local-variables/local-variables-async.js +1 -1
- package/build/esm/integrations/local-variables/local-variables-async.js.map +1 -1
- package/build/esm/integrations/local-variables/worker-script.js +2 -2
- package/build/esm/integrations/tracing/amqplib.js +14 -0
- package/build/esm/integrations/tracing/amqplib.js.map +1 -1
- package/build/esm/integrations/tracing/connect.js +35 -0
- package/build/esm/integrations/tracing/connect.js.map +1 -1
- package/build/esm/integrations/tracing/dataloader.js +11 -2
- package/build/esm/integrations/tracing/dataloader.js.map +1 -1
- package/build/esm/integrations/tracing/express.js +34 -4
- package/build/esm/integrations/tracing/express.js.map +1 -1
- package/build/esm/integrations/tracing/fastify.js +30 -3
- package/build/esm/integrations/tracing/fastify.js.map +1 -1
- package/build/esm/integrations/tracing/genericPool.js +11 -2
- package/build/esm/integrations/tracing/genericPool.js.map +1 -1
- package/build/esm/integrations/tracing/graphql.js +12 -2
- package/build/esm/integrations/tracing/graphql.js.map +1 -1
- package/build/esm/integrations/tracing/hapi/index.js +30 -2
- package/build/esm/integrations/tracing/hapi/index.js.map +1 -1
- package/build/esm/integrations/tracing/index.js +3 -0
- package/build/esm/integrations/tracing/index.js.map +1 -1
- package/build/esm/integrations/tracing/kafka.js +10 -2
- package/build/esm/integrations/tracing/kafka.js.map +1 -1
- package/build/esm/integrations/tracing/knex.js +49 -0
- package/build/esm/integrations/tracing/knex.js.map +1 -0
- package/build/esm/integrations/tracing/koa.js +38 -0
- package/build/esm/integrations/tracing/koa.js.map +1 -1
- package/build/esm/integrations/tracing/lrumemoizer.js +10 -2
- package/build/esm/integrations/tracing/lrumemoizer.js.map +1 -1
- package/build/esm/integrations/tracing/mongo.js +11 -2
- package/build/esm/integrations/tracing/mongo.js.map +1 -1
- package/build/esm/integrations/tracing/mongoose.js +11 -2
- package/build/esm/integrations/tracing/mongoose.js.map +1 -1
- package/build/esm/integrations/tracing/mysql.js +11 -2
- package/build/esm/integrations/tracing/mysql.js.map +1 -1
- package/build/esm/integrations/tracing/mysql2.js +11 -2
- package/build/esm/integrations/tracing/mysql2.js.map +1 -1
- package/build/esm/integrations/tracing/postgres.js +11 -2
- package/build/esm/integrations/tracing/postgres.js.map +1 -1
- package/build/esm/integrations/tracing/prisma.js +24 -6
- package/build/esm/integrations/tracing/prisma.js.map +1 -1
- package/build/esm/integrations/tracing/redis.js +12 -2
- package/build/esm/integrations/tracing/redis.js.map +1 -1
- package/build/esm/integrations/tracing/tedious.js +60 -0
- package/build/esm/integrations/tracing/tedious.js.map +1 -0
- package/build/esm/package.json +1 -1
- package/build/types/index.d.ts +2 -0
- package/build/types/index.d.ts.map +1 -1
- package/build/types/integrations/anr/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/amqplib.d.ts +14 -0
- package/build/types/integrations/tracing/amqplib.d.ts.map +1 -1
- package/build/types/integrations/tracing/connect.d.ts +35 -0
- package/build/types/integrations/tracing/connect.d.ts.map +1 -1
- package/build/types/integrations/tracing/dataloader.d.ts +11 -2
- package/build/types/integrations/tracing/dataloader.d.ts.map +1 -1
- package/build/types/integrations/tracing/express.d.ts +34 -4
- package/build/types/integrations/tracing/express.d.ts.map +1 -1
- package/build/types/integrations/tracing/fastify.d.ts +30 -3
- package/build/types/integrations/tracing/fastify.d.ts.map +1 -1
- package/build/types/integrations/tracing/genericPool.d.ts +11 -2
- package/build/types/integrations/tracing/genericPool.d.ts.map +1 -1
- package/build/types/integrations/tracing/graphql.d.ts +12 -2
- package/build/types/integrations/tracing/graphql.d.ts.map +1 -1
- package/build/types/integrations/tracing/hapi/index.d.ts +30 -2
- package/build/types/integrations/tracing/hapi/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/kafka.d.ts +10 -2
- package/build/types/integrations/tracing/kafka.d.ts.map +1 -1
- package/build/types/integrations/tracing/knex.d.ts +19 -0
- package/build/types/integrations/tracing/knex.d.ts.map +1 -0
- package/build/types/integrations/tracing/koa.d.ts +38 -0
- package/build/types/integrations/tracing/koa.d.ts.map +1 -1
- package/build/types/integrations/tracing/lrumemoizer.d.ts +10 -2
- package/build/types/integrations/tracing/lrumemoizer.d.ts.map +1 -1
- package/build/types/integrations/tracing/mongo.d.ts +11 -2
- package/build/types/integrations/tracing/mongo.d.ts.map +1 -1
- package/build/types/integrations/tracing/mongoose.d.ts +11 -2
- package/build/types/integrations/tracing/mongoose.d.ts.map +1 -1
- package/build/types/integrations/tracing/mysql.d.ts +22 -4
- package/build/types/integrations/tracing/mysql.d.ts.map +1 -1
- package/build/types/integrations/tracing/mysql2.d.ts +11 -2
- package/build/types/integrations/tracing/mysql2.d.ts.map +1 -1
- package/build/types/integrations/tracing/postgres.d.ts +11 -2
- package/build/types/integrations/tracing/postgres.d.ts.map +1 -1
- package/build/types/integrations/tracing/prisma.d.ts +24 -6
- package/build/types/integrations/tracing/prisma.d.ts.map +1 -1
- package/build/types/integrations/tracing/redis.d.ts +12 -2
- package/build/types/integrations/tracing/redis.d.ts.map +1 -1
- package/build/types/integrations/tracing/tedious.d.ts +19 -0
- package/build/types/integrations/tracing/tedious.d.ts.map +1 -0
- package/build/types-ts3.8/index.d.ts +2 -0
- package/build/types-ts3.8/integrations/tracing/amqplib.d.ts +14 -0
- package/build/types-ts3.8/integrations/tracing/connect.d.ts +35 -0
- package/build/types-ts3.8/integrations/tracing/dataloader.d.ts +11 -2
- package/build/types-ts3.8/integrations/tracing/express.d.ts +34 -4
- package/build/types-ts3.8/integrations/tracing/fastify.d.ts +30 -3
- package/build/types-ts3.8/integrations/tracing/genericPool.d.ts +11 -2
- package/build/types-ts3.8/integrations/tracing/graphql.d.ts +12 -2
- package/build/types-ts3.8/integrations/tracing/hapi/index.d.ts +30 -2
- package/build/types-ts3.8/integrations/tracing/kafka.d.ts +10 -2
- package/build/types-ts3.8/integrations/tracing/knex.d.ts +19 -0
- package/build/types-ts3.8/integrations/tracing/koa.d.ts +38 -0
- package/build/types-ts3.8/integrations/tracing/lrumemoizer.d.ts +10 -2
- package/build/types-ts3.8/integrations/tracing/mongo.d.ts +11 -2
- package/build/types-ts3.8/integrations/tracing/mongoose.d.ts +11 -2
- package/build/types-ts3.8/integrations/tracing/mysql.d.ts +22 -4
- package/build/types-ts3.8/integrations/tracing/mysql2.d.ts +11 -2
- package/build/types-ts3.8/integrations/tracing/postgres.d.ts +11 -2
- package/build/types-ts3.8/integrations/tracing/prisma.d.ts +24 -6
- package/build/types-ts3.8/integrations/tracing/redis.d.ts +12 -2
- package/build/types-ts3.8/integrations/tracing/tedious.d.ts +19 -0
- package/package.json +8 -6
|
@@ -1,15 +1,33 @@
|
|
|
1
1
|
export declare const instrumentMysql: ((options?: unknown) => void) & {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Adds Sentry tracing instrumentation for the [mysql](https://www.npmjs.com/package/mysql) library.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
5
|
+
* Adds Sentry tracing instrumentation for the [mysql2](https://www.npmjs.com/package/mysql2) library.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
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
|
|
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
|
-
*
|
|
5
|
+
* Adds Sentry tracing instrumentation for the [pg](https://www.npmjs.com/package/pg) library.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
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
|
|
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
|
-
*
|
|
5
|
+
* Adds Sentry tracing instrumentation for the [prisma](https://www.npmjs.com/package/prisma) library.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
|
@@ -4,7 +4,42 @@ type ConnectApp = {
|
|
|
4
4
|
export declare const instrumentConnect: ((options?: unknown) => void) & {
|
|
5
5
|
id: string;
|
|
6
6
|
};
|
|
7
|
+
/**
|
|
8
|
+
* Adds Sentry tracing instrumentation for [Connect](https://github.com/senchalabs/connect/).
|
|
9
|
+
*
|
|
10
|
+
* If you also want to capture errors, you need to call `setupConnectErrorHandler(app)` after you initialize your connect app.
|
|
11
|
+
*
|
|
12
|
+
* For more information, see the [connect documentation](https://docs.sentry.io/platforms/javascript/guides/connect/).
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```javascript
|
|
16
|
+
* const Sentry = require('@sentry/node');
|
|
17
|
+
*
|
|
18
|
+
* Sentry.init({
|
|
19
|
+
* integrations: [Sentry.connectIntegration()],
|
|
20
|
+
* })
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
7
23
|
export declare const connectIntegration: () => import("@sentry/types").Integration;
|
|
24
|
+
/**
|
|
25
|
+
* Add a Connect middleware to capture errors to Sentry.
|
|
26
|
+
*
|
|
27
|
+
* @param app The Connect app to attach the error handler to
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```javascript
|
|
31
|
+
* const Sentry = require('@sentry/node');
|
|
32
|
+
* const connect = require("connect");
|
|
33
|
+
*
|
|
34
|
+
* const app = connect();
|
|
35
|
+
*
|
|
36
|
+
* Sentry.setupConnectErrorHandler(app);
|
|
37
|
+
*
|
|
38
|
+
* // Add you connect routes here
|
|
39
|
+
*
|
|
40
|
+
* app.listen(3000);
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
8
43
|
export declare const setupConnectErrorHandler: (app: ConnectApp) => void;
|
|
9
44
|
export {};
|
|
10
45
|
//# sourceMappingURL=connect.d.ts.map
|
|
@@ -2,9 +2,18 @@ export declare const instrumentDataloader: ((options?: unknown) => void) & {
|
|
|
2
2
|
id: string;
|
|
3
3
|
};
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Adds Sentry tracing instrumentation for the [dataloader](https://www.npmjs.com/package/dataloader) library.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* For more information, see the [`dataloaderIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/dataloader/).
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```javascript
|
|
11
|
+
* const Sentry = require('@sentry/node');
|
|
12
|
+
*
|
|
13
|
+
* Sentry.init({
|
|
14
|
+
* integrations: [Sentry.dataloaderIntegration()],
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
8
17
|
*/
|
|
9
18
|
export declare const dataloaderIntegration: () => import("@sentry/types").Integration;
|
|
10
19
|
//# sourceMappingURL=dataloader.d.ts.map
|
|
@@ -4,10 +4,20 @@ export declare const instrumentExpress: ((options?: unknown) => void) & {
|
|
|
4
4
|
id: string;
|
|
5
5
|
};
|
|
6
6
|
/**
|
|
7
|
-
* Express
|
|
7
|
+
* Adds Sentry tracing instrumentation for [Express](https://expressjs.com/).
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
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
|
-
*
|
|
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;
|
|
@@ -6,13 +6,40 @@ export declare const instrumentFastify: ((options?: unknown) => void) & {
|
|
|
6
6
|
id: string;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Adds Sentry tracing instrumentation for [Fastify](https://fastify.dev/).
|
|
10
10
|
*
|
|
11
|
-
*
|
|
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
|
-
*
|
|
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 {};
|
|
@@ -2,9 +2,18 @@ export declare const instrumentGenericPool: ((options?: unknown) => void) & {
|
|
|
2
2
|
id: string;
|
|
3
3
|
};
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Adds Sentry tracing instrumentation for the [generic-pool](https://www.npmjs.com/package/generic-pool) library.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
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
|
|
@@ -28,9 +28,19 @@ export declare const instrumentGraphql: ((options?: GraphqlOptions | undefined)
|
|
|
28
28
|
id: string;
|
|
29
29
|
};
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Adds Sentry tracing instrumentation for the [graphql](https://www.npmjs.com/package/graphql) library.
|
|
32
32
|
*
|
|
33
|
-
*
|
|
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 {};
|
|
@@ -3,10 +3,20 @@ export declare const instrumentHapi: ((options?: unknown) => void) & {
|
|
|
3
3
|
id: string;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
-
* Hapi
|
|
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
|
|
@@ -2,9 +2,17 @@ export declare const instrumentKafka: ((options?: unknown) => void) & {
|
|
|
2
2
|
id: string;
|
|
3
3
|
};
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Adds Sentry tracing instrumentation for the [kafkajs](https://www.npmjs.com/package/kafkajs) library.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
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
|
|
@@ -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
|
|
@@ -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;
|
|
@@ -2,9 +2,17 @@ export declare const instrumentLruMemoizer: ((options?: unknown) => void) & {
|
|
|
2
2
|
id: string;
|
|
3
3
|
};
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Adds Sentry tracing instrumentation for the [lru-memoizer](https://www.npmjs.com/package/lru-memoizer) library.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
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
|
|
@@ -2,9 +2,18 @@ export declare const instrumentMongo: ((options?: unknown) => void) & {
|
|
|
2
2
|
id: string;
|
|
3
3
|
};
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Adds Sentry tracing instrumentation for the [mongodb](https://www.npmjs.com/package/mongodb) library.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
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
|
|
@@ -2,9 +2,18 @@ export declare const instrumentMongoose: ((options?: unknown) => void) & {
|
|
|
2
2
|
id: string;
|
|
3
3
|
};
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Adds Sentry tracing instrumentation for the [mongoose](https://www.npmjs.com/package/mongoose) library.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
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
|