@sentry/node 8.29.0 → 8.31.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 +1 -1
- package/build/cjs/integrations/anr/index.js.map +1 -1
- package/build/cjs/integrations/http.js +27 -1
- package/build/cjs/integrations/http.js.map +1 -1
- package/build/cjs/integrations/local-variables/common.js +6 -24
- package/build/cjs/integrations/local-variables/common.js.map +1 -1
- package/build/cjs/integrations/local-variables/local-variables-async.js +24 -35
- package/build/cjs/integrations/local-variables/local-variables-async.js.map +1 -1
- package/build/cjs/integrations/local-variables/local-variables-sync.js +26 -2
- package/build/cjs/integrations/local-variables/local-variables-sync.js.map +1 -1
- package/build/cjs/integrations/node-fetch.js +20 -95
- package/build/cjs/integrations/node-fetch.js.map +1 -1
- package/build/cjs/integrations/tracing/dataloader.js +61 -0
- package/build/cjs/integrations/tracing/dataloader.js.map +1 -0
- package/build/cjs/integrations/tracing/index.js +6 -0
- package/build/cjs/integrations/tracing/index.js.map +1 -1
- package/build/cjs/integrations/tracing/kafka.js +41 -0
- package/build/cjs/integrations/tracing/kafka.js.map +1 -0
- package/build/cjs/integrations/tracing/koa.js +1 -1
- package/build/cjs/integrations/tracing/koa.js.map +1 -1
- package/build/cjs/sdk/initOtel.js +3 -2
- package/build/cjs/sdk/initOtel.js.map +1 -1
- package/build/cjs/utils/ensureIsWrapped.js +15 -5
- package/build/cjs/utils/ensureIsWrapped.js.map +1 -1
- package/build/esm/index.js +2 -0
- package/build/esm/index.js.map +1 -1
- package/build/esm/integrations/anr/index.js +1 -1
- package/build/esm/integrations/anr/index.js.map +1 -1
- package/build/esm/integrations/anr/worker-script.js +2 -2
- package/build/esm/integrations/http.js +27 -1
- package/build/esm/integrations/http.js.map +1 -1
- package/build/esm/integrations/local-variables/common.js +6 -23
- package/build/esm/integrations/local-variables/common.js.map +1 -1
- package/build/esm/integrations/local-variables/local-variables-async.js +26 -37
- package/build/esm/integrations/local-variables/local-variables-async.js.map +1 -1
- package/build/esm/integrations/local-variables/local-variables-sync.js +24 -2
- package/build/esm/integrations/local-variables/local-variables-sync.js.map +1 -1
- package/build/esm/integrations/local-variables/worker-script.js +2 -2
- package/build/esm/integrations/node-fetch.js +23 -95
- package/build/esm/integrations/node-fetch.js.map +1 -1
- package/build/esm/integrations/tracing/dataloader.js +55 -0
- package/build/esm/integrations/tracing/dataloader.js.map +1 -0
- package/build/esm/integrations/tracing/index.js +6 -0
- package/build/esm/integrations/tracing/index.js.map +1 -1
- package/build/esm/integrations/tracing/kafka.js +38 -0
- package/build/esm/integrations/tracing/kafka.js.map +1 -0
- package/build/esm/integrations/tracing/koa.js +2 -2
- package/build/esm/integrations/tracing/koa.js.map +1 -1
- package/build/esm/sdk/initOtel.js +4 -3
- package/build/esm/sdk/initOtel.js.map +1 -1
- package/build/esm/utils/ensureIsWrapped.js +10 -3
- package/build/esm/utils/ensureIsWrapped.js.map +1 -1
- package/build/types/index.d.ts +2 -0
- package/build/types/index.d.ts.map +1 -1
- package/build/types/integrations/http.d.ts.map +1 -1
- package/build/types/integrations/local-variables/common.d.ts +5 -8
- package/build/types/integrations/local-variables/common.d.ts.map +1 -1
- package/build/types/integrations/local-variables/local-variables-async.d.ts.map +1 -1
- package/build/types/integrations/local-variables/local-variables-sync.d.ts +8 -0
- package/build/types/integrations/local-variables/local-variables-sync.d.ts.map +1 -1
- package/build/types/integrations/node-fetch.d.ts.map +1 -1
- package/build/types/integrations/tracing/dataloader.d.ts +10 -0
- package/build/types/integrations/tracing/dataloader.d.ts.map +1 -0
- package/build/types/integrations/tracing/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/kafka.d.ts +10 -0
- package/build/types/integrations/tracing/kafka.d.ts.map +1 -0
- package/build/types/sdk/initOtel.d.ts.map +1 -1
- package/build/types/types.d.ts +5 -0
- package/build/types/types.d.ts.map +1 -1
- package/build/types/utils/ensureIsWrapped.d.ts +1 -1
- package/build/types/utils/ensureIsWrapped.d.ts.map +1 -1
- package/build/types-ts3.8/index.d.ts +2 -0
- package/build/types-ts3.8/integrations/local-variables/common.d.ts +5 -8
- package/build/types-ts3.8/integrations/local-variables/local-variables-sync.d.ts +8 -0
- package/build/types-ts3.8/integrations/tracing/dataloader.d.ts +10 -0
- package/build/types-ts3.8/integrations/tracing/kafka.d.ts +10 -0
- package/build/types-ts3.8/types.d.ts +5 -0
- package/build/types-ts3.8/utils/ensureIsWrapped.d.ts +1 -1
- package/package.json +11 -11
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const instrumentDataloader: ((options?: unknown) => void) & {
|
|
2
|
+
id: string;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* Dataloader integration
|
|
6
|
+
*
|
|
7
|
+
* Capture tracing data for Dataloader.
|
|
8
|
+
*/
|
|
9
|
+
export declare const dataloaderIntegration: () => import("@sentry/types").Integration;
|
|
10
|
+
//# sourceMappingURL=dataloader.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const instrumentKafka: ((options?: unknown) => void) & {
|
|
2
|
+
id: string;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* KafkaJs integration
|
|
6
|
+
*
|
|
7
|
+
* Capture tracing data for KafkaJs.
|
|
8
|
+
*/
|
|
9
|
+
export declare const kafkaIntegration: () => import("@sentry/types").Integration;
|
|
10
|
+
//# sourceMappingURL=kafka.d.ts.map
|
|
@@ -112,6 +112,11 @@ export interface BaseNodeOptions {
|
|
|
112
112
|
* Configures in which interval client reports will be flushed. Defaults to `60_000` (milliseconds).
|
|
113
113
|
*/
|
|
114
114
|
clientReportFlushInterval?: number;
|
|
115
|
+
/**
|
|
116
|
+
* By default, the SDK will try to identify problems with your instrumentation setup and warn you about it.
|
|
117
|
+
* If you want to disable these warnings, set this to `true`.
|
|
118
|
+
*/
|
|
119
|
+
disableInstrumentationWarnings?: boolean;
|
|
115
120
|
/** Callback that is executed when a fatal global error occurs. */
|
|
116
121
|
onFatalError?(this: void, error: Error): void;
|
|
117
122
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Checks and warns if a framework isn't wrapped by opentelemetry.
|
|
3
3
|
*/
|
|
4
|
-
export declare function ensureIsWrapped(
|
|
4
|
+
export declare function ensureIsWrapped(maybeWrappedFunction: unknown, name: 'express' | 'connect' | 'fastify' | 'hapi' | 'koa'): void;
|
|
5
5
|
//# sourceMappingURL=ensureIsWrapped.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/node",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.31.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",
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"@opentelemetry/core": "^1.25.1",
|
|
71
71
|
"@opentelemetry/instrumentation": "^0.53.0",
|
|
72
72
|
"@opentelemetry/instrumentation-connect": "0.39.0",
|
|
73
|
+
"@opentelemetry/instrumentation-dataloader": "0.12.0",
|
|
73
74
|
"@opentelemetry/instrumentation-express": "0.42.0",
|
|
74
75
|
"@opentelemetry/instrumentation-fastify": "0.39.0",
|
|
75
76
|
"@opentelemetry/instrumentation-fs": "0.15.0",
|
|
@@ -78,6 +79,7 @@
|
|
|
78
79
|
"@opentelemetry/instrumentation-hapi": "0.41.0",
|
|
79
80
|
"@opentelemetry/instrumentation-http": "0.53.0",
|
|
80
81
|
"@opentelemetry/instrumentation-ioredis": "0.43.0",
|
|
82
|
+
"@opentelemetry/instrumentation-kafkajs": "0.3.0",
|
|
81
83
|
"@opentelemetry/instrumentation-koa": "0.43.0",
|
|
82
84
|
"@opentelemetry/instrumentation-mongodb": "0.47.0",
|
|
83
85
|
"@opentelemetry/instrumentation-mongoose": "0.42.0",
|
|
@@ -86,22 +88,20 @@
|
|
|
86
88
|
"@opentelemetry/instrumentation-nestjs-core": "0.40.0",
|
|
87
89
|
"@opentelemetry/instrumentation-pg": "0.44.0",
|
|
88
90
|
"@opentelemetry/instrumentation-redis-4": "0.42.0",
|
|
89
|
-
"@opentelemetry/
|
|
90
|
-
"@opentelemetry/
|
|
91
|
-
"@opentelemetry/
|
|
91
|
+
"@opentelemetry/instrumentation-undici": "0.6.0",
|
|
92
|
+
"@opentelemetry/resources": "^1.26.0",
|
|
93
|
+
"@opentelemetry/sdk-trace-base": "^1.26.0",
|
|
94
|
+
"@opentelemetry/semantic-conventions": "^1.27.0",
|
|
92
95
|
"@prisma/instrumentation": "5.19.1",
|
|
93
|
-
"@sentry/core": "8.
|
|
94
|
-
"@sentry/opentelemetry": "8.
|
|
95
|
-
"@sentry/types": "8.
|
|
96
|
-
"@sentry/utils": "8.
|
|
96
|
+
"@sentry/core": "8.31.0",
|
|
97
|
+
"@sentry/opentelemetry": "8.31.0",
|
|
98
|
+
"@sentry/types": "8.31.0",
|
|
99
|
+
"@sentry/utils": "8.31.0",
|
|
97
100
|
"import-in-the-middle": "^1.11.0"
|
|
98
101
|
},
|
|
99
102
|
"devDependencies": {
|
|
100
103
|
"@types/node": "^14.18.0"
|
|
101
104
|
},
|
|
102
|
-
"optionalDependencies": {
|
|
103
|
-
"opentelemetry-instrumentation-fetch-node": "1.2.3"
|
|
104
|
-
},
|
|
105
105
|
"scripts": {
|
|
106
106
|
"build": "run-p build:transpile build:types",
|
|
107
107
|
"build:dev": "yarn build",
|