@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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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 {};
|
|
@@ -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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/node",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.39.0-dev.0",
|
|
4
4
|
"description": "Sentry Node SDK using OpenTelemetry for performance instrumentation",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/node",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@opentelemetry/context-async-hooks": "^1.25.1",
|
|
70
70
|
"@opentelemetry/core": "^1.25.1",
|
|
71
71
|
"@opentelemetry/instrumentation": "^0.54.0",
|
|
72
|
-
"@opentelemetry/instrumentation-amqplib": "^0.
|
|
72
|
+
"@opentelemetry/instrumentation-amqplib": "^0.43.0",
|
|
73
73
|
"@opentelemetry/instrumentation-connect": "0.40.0",
|
|
74
74
|
"@opentelemetry/instrumentation-dataloader": "0.12.0",
|
|
75
75
|
"@opentelemetry/instrumentation-express": "0.44.0",
|
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
"@opentelemetry/instrumentation-http": "0.53.0",
|
|
82
82
|
"@opentelemetry/instrumentation-ioredis": "0.43.0",
|
|
83
83
|
"@opentelemetry/instrumentation-kafkajs": "0.4.0",
|
|
84
|
+
"@opentelemetry/instrumentation-knex": "0.41.0",
|
|
84
85
|
"@opentelemetry/instrumentation-koa": "0.43.0",
|
|
85
86
|
"@opentelemetry/instrumentation-lru-memoizer": "0.40.0",
|
|
86
87
|
"@opentelemetry/instrumentation-mongodb": "0.48.0",
|
|
@@ -90,15 +91,16 @@
|
|
|
90
91
|
"@opentelemetry/instrumentation-nestjs-core": "0.40.0",
|
|
91
92
|
"@opentelemetry/instrumentation-pg": "0.44.0",
|
|
92
93
|
"@opentelemetry/instrumentation-redis-4": "0.42.0",
|
|
94
|
+
"@opentelemetry/instrumentation-tedious": "0.15.0",
|
|
93
95
|
"@opentelemetry/instrumentation-undici": "0.6.0",
|
|
94
96
|
"@opentelemetry/resources": "^1.26.0",
|
|
95
97
|
"@opentelemetry/sdk-trace-base": "^1.26.0",
|
|
96
98
|
"@opentelemetry/semantic-conventions": "^1.27.0",
|
|
97
99
|
"@prisma/instrumentation": "5.19.1",
|
|
98
|
-
"@sentry/core": "8.
|
|
99
|
-
"@sentry/opentelemetry": "8.
|
|
100
|
-
"@sentry/types": "8.
|
|
101
|
-
"@sentry/utils": "8.
|
|
100
|
+
"@sentry/core": "8.39.0-dev.0",
|
|
101
|
+
"@sentry/opentelemetry": "8.39.0-dev.0",
|
|
102
|
+
"@sentry/types": "8.39.0-dev.0",
|
|
103
|
+
"@sentry/utils": "8.39.0-dev.0",
|
|
102
104
|
"import-in-the-middle": "^1.11.2"
|
|
103
105
|
},
|
|
104
106
|
"devDependencies": {
|