@sentry/node 8.4.0 → 8.5.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/cjs/index.js +14 -9
- package/cjs/index.js.map +1 -1
- package/cjs/init.js +2 -2
- package/cjs/init.js.map +1 -1
- package/cjs/integrations/anr/index.js +2 -2
- package/cjs/integrations/anr/index.js.map +1 -1
- package/cjs/integrations/http.js +121 -97
- package/cjs/integrations/http.js.map +1 -1
- package/cjs/integrations/local-variables/local-variables-async.js +2 -2
- package/cjs/integrations/local-variables/local-variables-async.js.map +1 -1
- package/cjs/integrations/local-variables/local-variables-sync.js +114 -109
- package/cjs/integrations/local-variables/local-variables-sync.js.map +1 -1
- package/cjs/integrations/tracing/connect.js +8 -3
- package/cjs/integrations/tracing/connect.js.map +1 -1
- package/cjs/integrations/tracing/express.js +44 -37
- package/cjs/integrations/tracing/express.js.map +1 -1
- package/cjs/integrations/tracing/fastify.js +16 -9
- package/cjs/integrations/tracing/fastify.js.map +1 -1
- package/cjs/integrations/tracing/graphql.js +24 -16
- package/cjs/integrations/tracing/graphql.js.map +1 -1
- package/cjs/integrations/tracing/hapi/index.js +8 -3
- package/cjs/integrations/tracing/hapi/index.js.map +1 -1
- package/cjs/integrations/tracing/index.js +25 -0
- package/cjs/integrations/tracing/index.js.map +1 -1
- package/cjs/integrations/tracing/koa.js +45 -39
- package/cjs/integrations/tracing/koa.js.map +1 -1
- package/cjs/integrations/tracing/mongo.js +16 -9
- package/cjs/integrations/tracing/mongo.js.map +1 -1
- package/cjs/integrations/tracing/mongoose.js +16 -9
- package/cjs/integrations/tracing/mongoose.js.map +1 -1
- package/cjs/integrations/tracing/mysql.js +8 -3
- package/cjs/integrations/tracing/mysql.js.map +1 -1
- package/cjs/integrations/tracing/mysql2.js +16 -9
- package/cjs/integrations/tracing/mysql2.js.map +1 -1
- package/cjs/integrations/tracing/nest.js +8 -3
- package/cjs/integrations/tracing/nest.js.map +1 -1
- package/cjs/integrations/tracing/postgres.js +17 -10
- package/cjs/integrations/tracing/postgres.js.map +1 -1
- package/cjs/integrations/tracing/prisma.js +16 -7
- package/cjs/integrations/tracing/prisma.js.map +1 -1
- package/cjs/integrations/tracing/redis.js +58 -47
- package/cjs/integrations/tracing/redis.js.map +1 -1
- package/cjs/otel/instrument.js +35 -0
- package/cjs/otel/instrument.js.map +1 -0
- package/cjs/preload.js +20 -0
- package/cjs/preload.js.map +1 -0
- package/cjs/sdk/{init.js → index.js} +8 -29
- package/cjs/sdk/index.js.map +1 -0
- package/cjs/sdk/initOtel.js +88 -9
- package/cjs/sdk/initOtel.js.map +1 -1
- package/esm/index.js +4 -3
- package/esm/index.js.map +1 -1
- package/esm/init.js +1 -1
- package/esm/init.js.map +1 -1
- package/esm/integrations/anr/index.js +2 -2
- package/esm/integrations/anr/index.js.map +1 -1
- package/esm/integrations/anr/worker-script.js +2 -2
- package/esm/integrations/http.js +123 -100
- package/esm/integrations/http.js.map +1 -1
- package/esm/integrations/local-variables/local-variables-async.js +2 -2
- package/esm/integrations/local-variables/local-variables-async.js.map +1 -1
- package/esm/integrations/local-variables/local-variables-sync.js +114 -109
- package/esm/integrations/local-variables/local-variables-sync.js.map +1 -1
- package/esm/integrations/local-variables/worker-script.js +1 -1
- package/esm/integrations/tracing/connect.js +8 -4
- package/esm/integrations/tracing/connect.js.map +1 -1
- package/esm/integrations/tracing/express.js +44 -38
- package/esm/integrations/tracing/express.js.map +1 -1
- package/esm/integrations/tracing/fastify.js +16 -10
- package/esm/integrations/tracing/fastify.js.map +1 -1
- package/esm/integrations/tracing/graphql.js +24 -17
- package/esm/integrations/tracing/graphql.js.map +1 -1
- package/esm/integrations/tracing/hapi/index.js +8 -4
- package/esm/integrations/tracing/hapi/index.js.map +1 -1
- package/esm/integrations/tracing/index.js +37 -13
- package/esm/integrations/tracing/index.js.map +1 -1
- package/esm/integrations/tracing/koa.js +45 -40
- package/esm/integrations/tracing/koa.js.map +1 -1
- package/esm/integrations/tracing/mongo.js +16 -10
- package/esm/integrations/tracing/mongo.js.map +1 -1
- package/esm/integrations/tracing/mongoose.js +16 -10
- package/esm/integrations/tracing/mongoose.js.map +1 -1
- package/esm/integrations/tracing/mysql.js +8 -4
- package/esm/integrations/tracing/mysql.js.map +1 -1
- package/esm/integrations/tracing/mysql2.js +16 -10
- package/esm/integrations/tracing/mysql2.js.map +1 -1
- package/esm/integrations/tracing/nest.js +8 -4
- package/esm/integrations/tracing/nest.js.map +1 -1
- package/esm/integrations/tracing/postgres.js +17 -11
- package/esm/integrations/tracing/postgres.js.map +1 -1
- package/esm/integrations/tracing/prisma.js +16 -8
- package/esm/integrations/tracing/prisma.js.map +1 -1
- package/esm/integrations/tracing/redis.js +57 -47
- package/esm/integrations/tracing/redis.js.map +1 -1
- package/esm/otel/instrument.js +33 -0
- package/esm/otel/instrument.js.map +1 -0
- package/esm/preload.js +20 -0
- package/esm/preload.js.map +1 -0
- package/esm/sdk/{init.js → index.js} +11 -32
- package/esm/sdk/index.js.map +1 -0
- package/esm/sdk/initOtel.js +88 -12
- package/esm/sdk/initOtel.js.map +1 -1
- package/package.json +13 -5
- package/types/index.d.ts +4 -3
- package/types/index.d.ts.map +1 -1
- package/types/integrations/anr/index.d.ts.map +1 -1
- package/types/integrations/http.d.ts +7 -0
- package/types/integrations/http.d.ts.map +1 -1
- package/types/integrations/local-variables/local-variables-sync.d.ts +1 -1
- package/types/integrations/local-variables/local-variables-sync.d.ts.map +1 -1
- package/types/integrations/tracing/connect.d.ts +3 -0
- package/types/integrations/tracing/connect.d.ts.map +1 -1
- package/types/integrations/tracing/express.d.ts +3 -0
- package/types/integrations/tracing/express.d.ts.map +1 -1
- package/types/integrations/tracing/fastify.d.ts +3 -0
- package/types/integrations/tracing/fastify.d.ts.map +1 -1
- package/types/integrations/tracing/graphql.d.ts +4 -1
- package/types/integrations/tracing/graphql.d.ts.map +1 -1
- package/types/integrations/tracing/hapi/index.d.ts +3 -0
- package/types/integrations/tracing/hapi/index.d.ts.map +1 -1
- package/types/integrations/tracing/index.d.ts +6 -0
- package/types/integrations/tracing/index.d.ts.map +1 -1
- package/types/integrations/tracing/koa.d.ts +3 -0
- package/types/integrations/tracing/koa.d.ts.map +1 -1
- package/types/integrations/tracing/mongo.d.ts +3 -0
- package/types/integrations/tracing/mongo.d.ts.map +1 -1
- package/types/integrations/tracing/mongoose.d.ts +3 -0
- package/types/integrations/tracing/mongoose.d.ts.map +1 -1
- package/types/integrations/tracing/mysql.d.ts +3 -0
- package/types/integrations/tracing/mysql.d.ts.map +1 -1
- package/types/integrations/tracing/mysql2.d.ts +3 -0
- package/types/integrations/tracing/mysql2.d.ts.map +1 -1
- package/types/integrations/tracing/nest.d.ts +3 -0
- package/types/integrations/tracing/nest.d.ts.map +1 -1
- package/types/integrations/tracing/postgres.d.ts +3 -0
- package/types/integrations/tracing/postgres.d.ts.map +1 -1
- package/types/integrations/tracing/prisma.d.ts +3 -0
- package/types/integrations/tracing/prisma.d.ts.map +1 -1
- package/types/integrations/tracing/redis.d.ts +3 -0
- package/types/integrations/tracing/redis.d.ts.map +1 -1
- package/types/otel/instrument.d.ts +9 -0
- package/types/otel/instrument.d.ts.map +1 -0
- package/types/preload.d.ts +2 -0
- package/types/preload.d.ts.map +1 -0
- package/types/sdk/{init.d.ts → index.d.ts} +5 -1
- package/types/sdk/index.d.ts.map +1 -0
- package/types/sdk/initOtel.d.ts +13 -0
- package/types/sdk/initOtel.d.ts.map +1 -1
- package/types-ts3.8/index.d.ts +4 -3
- package/types-ts3.8/integrations/http.d.ts +7 -0
- package/types-ts3.8/integrations/local-variables/local-variables-sync.d.ts +1 -1
- package/types-ts3.8/integrations/tracing/connect.d.ts +3 -0
- package/types-ts3.8/integrations/tracing/express.d.ts +3 -0
- package/types-ts3.8/integrations/tracing/fastify.d.ts +3 -0
- package/types-ts3.8/integrations/tracing/graphql.d.ts +4 -1
- package/types-ts3.8/integrations/tracing/hapi/index.d.ts +3 -0
- package/types-ts3.8/integrations/tracing/index.d.ts +6 -0
- package/types-ts3.8/integrations/tracing/koa.d.ts +3 -0
- package/types-ts3.8/integrations/tracing/mongo.d.ts +3 -0
- package/types-ts3.8/integrations/tracing/mongoose.d.ts +3 -0
- package/types-ts3.8/integrations/tracing/mysql.d.ts +3 -0
- package/types-ts3.8/integrations/tracing/mysql2.d.ts +3 -0
- package/types-ts3.8/integrations/tracing/nest.d.ts +3 -0
- package/types-ts3.8/integrations/tracing/postgres.d.ts +3 -0
- package/types-ts3.8/integrations/tracing/prisma.d.ts +3 -0
- package/types-ts3.8/integrations/tracing/redis.d.ts +3 -0
- package/types-ts3.8/otel/instrument.d.ts +9 -0
- package/types-ts3.8/preload.d.ts +2 -0
- package/types-ts3.8/sdk/{init.d.ts → index.d.ts} +5 -1
- package/types-ts3.8/sdk/initOtel.d.ts +13 -0
- package/cjs/sdk/init.js.map +0 -1
- package/esm/sdk/init.js.map +0 -1
- package/types/sdk/init.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgres.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/postgres.ts"],"names":[],"mappings":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prisma.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/prisma.ts"],"names":[],"mappings":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redis.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/redis.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"redis.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/redis.ts"],"names":[],"mappings":"AAuCA,UAAU,YAAY;IACpB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B;AAMD,eAAO,MAAM,eAAe;;CA0C1B,CAAC;AAgBH;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,6EAAuC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Instrumentation } from '@opentelemetry/instrumentation';
|
|
2
|
+
/**
|
|
3
|
+
* Instrument an OpenTelemetry instrumentation once.
|
|
4
|
+
* This will skip running instrumentation again if it was already instrumented.
|
|
5
|
+
*/
|
|
6
|
+
export declare function generateInstrumentOnce<Options = unknown>(name: string, creator: (options?: Options) => Instrumentation): ((options?: Options) => void) & {
|
|
7
|
+
id: string;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=instrument.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instrument.d.ts","sourceRoot":"","sources":["../../../src/otel/instrument.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAKtE;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,GAAG,OAAO,EACtD,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,eAAe,GAC9C,CAAC,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAkBhD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preload.d.ts","sourceRoot":"","sources":["../../src/preload.ts"],"names":[],"mappings":""}
|
|
@@ -14,4 +14,8 @@ export declare function init(options?: NodeOptions | undefined): void;
|
|
|
14
14
|
* Initialize Sentry for Node, without any integrations added by default.
|
|
15
15
|
*/
|
|
16
16
|
export declare function initWithoutDefaultIntegrations(options?: NodeOptions | undefined): void;
|
|
17
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Validate that your OpenTelemetry setup is correct.
|
|
19
|
+
*/
|
|
20
|
+
export declare function validateOpenTelemetrySetup(): void;
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/index.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAU,WAAW,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAsBlE,OAAO,KAAK,EAAqB,WAAW,EAAE,MAAM,UAAU,CAAC;AAU/D;;GAEG;AACH,wBAAgB,wCAAwC,IAAI,WAAW,EAAE,CAoBxE;AAED,qDAAqD;AACrD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,EAAE,CAStE;AAWD;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,IAAI,CAEhE;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,IAAI,CAE1F;AAwED;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CAqBjD"}
|
package/types/sdk/initOtel.d.ts
CHANGED
|
@@ -4,6 +4,19 @@ import type { NodeClient } from './client';
|
|
|
4
4
|
* Initialize OpenTelemetry for Node.
|
|
5
5
|
*/
|
|
6
6
|
export declare function initOpenTelemetry(client: NodeClient): void;
|
|
7
|
+
/** Initialize the ESM loader. */
|
|
8
|
+
export declare function maybeInitializeEsmLoader(): void;
|
|
9
|
+
interface NodePreloadOptions {
|
|
10
|
+
debug?: boolean;
|
|
11
|
+
integrations?: string[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Preload OpenTelemetry for Node.
|
|
15
|
+
* This can be used to preload instrumentation early, but set up Sentry later.
|
|
16
|
+
* By preloading the OTEL instrumentation wrapping still happens early enough that everything works.
|
|
17
|
+
*/
|
|
18
|
+
export declare function preloadOpenTelemetry(options?: NodePreloadOptions): void;
|
|
7
19
|
/** Just exported for tests. */
|
|
8
20
|
export declare function setupOtel(client: NodeClient): BasicTracerProvider;
|
|
21
|
+
export {};
|
|
9
22
|
//# sourceMappingURL=initOtel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initOtel.d.ts","sourceRoot":"","sources":["../../../src/sdk/initOtel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"initOtel.d.ts","sourceRoot":"","sources":["../../../src/sdk/initOtel.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAapE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3C;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAO1D;AAED,iCAAiC;AACjC,wBAAgB,wBAAwB,IAAI,IAAI,CA0B/C;AAED,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,GAAE,kBAAuB,GAAG,IAAI,CAoB3E;AAYD,+BAA+B;AAC/B,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,GAAG,mBAAmB,CAoBjE"}
|
package/types-ts3.8/index.d.ts
CHANGED
|
@@ -23,8 +23,9 @@ export { hapiIntegration, setupHapiErrorHandler } from './integrations/tracing/h
|
|
|
23
23
|
export { koaIntegration, setupKoaErrorHandler } from './integrations/tracing/koa';
|
|
24
24
|
export { connectIntegration, setupConnectErrorHandler } from './integrations/tracing/connect';
|
|
25
25
|
export { spotlightIntegration } from './integrations/spotlight';
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
26
|
+
export { SentryContextManager } from './otel/contextManager';
|
|
27
|
+
export { init, getDefaultIntegrations, getDefaultIntegrationsWithoutPerformance, initWithoutDefaultIntegrations, validateOpenTelemetrySetup, } from './sdk';
|
|
28
|
+
export { initOpenTelemetry, preloadOpenTelemetry } from './sdk/initOtel';
|
|
28
29
|
export { getAutoPerformanceIntegrations } from './integrations/tracing';
|
|
29
30
|
export { getSentryRelease, defaultStackParser } from './sdk/api';
|
|
30
31
|
export { createGetModuleFromFilename } from './utils/module';
|
|
@@ -34,6 +35,6 @@ export { cron } from './cron';
|
|
|
34
35
|
export { NodeOptions } from './types';
|
|
35
36
|
export { addRequestDataToEvent, DEFAULT_USER_INCLUDES, extractRequestData } from '@sentry/utils';
|
|
36
37
|
export { addOpenTelemetryInstrumentation, continueTrace, setOpenTelemetryContextAsyncContextStrategy as setNodeAsyncContextStrategy, } from '@sentry/opentelemetry';
|
|
37
|
-
export { addBreadcrumb, isInitialized, getGlobalScope, lastEventId, close, createTransport, flush, SDK_VERSION, getSpanStatusFromHttpCode, setHttpStatus, captureCheckIn, withMonitor, requestDataIntegration, functionToStringIntegration, inboundFiltersIntegration, linkedErrorsIntegration, addEventProcessor, setContext, setExtra, setExtras, setTag, setTags, setUser, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, setCurrentClient, Scope, setMeasurement, getSpanDescendants, parameterize, getClient, getCurrentHub, getCurrentScope, getIsolationScope, withScope, withIsolationScope, captureException, captureEvent, captureMessage, captureFeedback, captureConsoleIntegration, debugIntegration, dedupeIntegration, extraErrorDataIntegration, rewriteFramesIntegration, sessionTimingIntegration, metricsDefault as metrics, startSession, captureSession, endSession, addIntegration, startSpan, startSpanManual, startInactiveSpan, getActiveSpan, withActiveSpan, getRootSpan, spanToJSON, spanToTraceHeader, spanToBaggageHeader, trpcMiddleware, zodErrorsIntegration, } from '@sentry/core';
|
|
38
|
+
export { addBreadcrumb, isInitialized, getGlobalScope, lastEventId, close, createTransport, flush, SDK_VERSION, getSpanStatusFromHttpCode, setHttpStatus, captureCheckIn, withMonitor, requestDataIntegration, functionToStringIntegration, inboundFiltersIntegration, linkedErrorsIntegration, addEventProcessor, setContext, setExtra, setExtras, setTag, setTags, setUser, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, setCurrentClient, Scope, setMeasurement, getSpanDescendants, parameterize, getClient, getCurrentHub, getCurrentScope, getIsolationScope, withScope, withIsolationScope, captureException, captureEvent, captureMessage, captureFeedback, captureConsoleIntegration, debugIntegration, dedupeIntegration, extraErrorDataIntegration, rewriteFramesIntegration, sessionTimingIntegration, metricsDefault as metrics, startSession, captureSession, endSession, addIntegration, startSpan, startSpanManual, startInactiveSpan, startNewTrace, getActiveSpan, withActiveSpan, getRootSpan, spanToJSON, spanToTraceHeader, spanToBaggageHeader, trpcMiddleware, zodErrorsIntegration, } from '@sentry/core';
|
|
38
39
|
export { Breadcrumb, BreadcrumbHint, PolymorphicRequest, Request, SdkInfo, Event, EventHint, ErrorEvent, Exception, Session, SeverityLevel, StackFrame, Stacktrace, Thread, User, Span, } from '@sentry/types';
|
|
39
40
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -18,6 +18,13 @@ interface HttpOptions {
|
|
|
18
18
|
/** Allows to pass a custom version of HttpInstrumentation. We use this for Next.js. */
|
|
19
19
|
_instrumentation?: typeof HttpInstrumentation;
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Instrument the HTTP module.
|
|
23
|
+
* This can only be instrumented once! If this called again later, we just update the options.
|
|
24
|
+
*/
|
|
25
|
+
export declare const instrumentHttp: (() => void) & {
|
|
26
|
+
id: string;
|
|
27
|
+
};
|
|
21
28
|
/**
|
|
22
29
|
* The http integration instruments Node's internal http and https modules.
|
|
23
30
|
* It creates breadcrumbs and spans for outgoing HTTP requests which will be attached to the currently active span.
|
|
@@ -21,6 +21,6 @@ export declare function createCallbackList<T>(complete: Next<T>): CallbackWrappe
|
|
|
21
21
|
/**
|
|
22
22
|
* Adds local variables to exception frames.
|
|
23
23
|
*/
|
|
24
|
-
export declare const localVariablesSyncIntegration: (options?: LocalVariablesIntegrationOptions | undefined,
|
|
24
|
+
export declare const localVariablesSyncIntegration: (options?: LocalVariablesIntegrationOptions | undefined, sessionOverride?: DebugSession | undefined) => import("@sentry/types").Integration;
|
|
25
25
|
export {};
|
|
26
26
|
//# sourceMappingURL=local-variables-sync.d.ts.map
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
type ConnectApp = {
|
|
2
2
|
use: (middleware: any) => void;
|
|
3
3
|
};
|
|
4
|
+
export declare const instrumentConnect: ((options?: unknown) => void) & {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
4
7
|
export declare const connectIntegration: () => import("@sentry/types").Integration;
|
|
5
8
|
export declare const setupConnectErrorHandler: (app: ConnectApp) => void;
|
|
6
9
|
export {};
|
|
@@ -2,6 +2,9 @@ interface Fastify {
|
|
|
2
2
|
register: (plugin: any) => void;
|
|
3
3
|
addHook: (hook: string, handler: (request: any, reply: any, error: Error) => void) => void;
|
|
4
4
|
}
|
|
5
|
+
export declare const instrumentFastify: ((options?: unknown) => void) & {
|
|
6
|
+
id: string;
|
|
7
|
+
};
|
|
5
8
|
/**
|
|
6
9
|
* Express integration
|
|
7
10
|
*
|
|
@@ -11,11 +11,14 @@ interface GraphqlOptions {
|
|
|
11
11
|
*/
|
|
12
12
|
ignoreTrivalResolveSpans?: boolean;
|
|
13
13
|
}
|
|
14
|
+
export declare const instrumentGraphql: ((options?: GraphqlOptions | undefined) => void) & {
|
|
15
|
+
id: string;
|
|
16
|
+
};
|
|
14
17
|
/**
|
|
15
18
|
* GraphQL integration
|
|
16
19
|
*
|
|
17
20
|
* Capture tracing data for GraphQL.
|
|
18
21
|
*/
|
|
19
|
-
export declare const graphqlIntegration: (
|
|
22
|
+
export declare const graphqlIntegration: (options?: GraphqlOptions | undefined) => import("@sentry/types").Integration;
|
|
20
23
|
export {};
|
|
21
24
|
//# sourceMappingURL=graphql.d.ts.map
|
|
@@ -3,4 +3,10 @@ import { Integration } from '@sentry/types';
|
|
|
3
3
|
* With OTEL, all performance integrations will be added, as OTEL only initializes them when the patched package is actually required.
|
|
4
4
|
*/
|
|
5
5
|
export declare function getAutoPerformanceIntegrations(): Integration[];
|
|
6
|
+
/**
|
|
7
|
+
* Get a list of methods to instrument OTEL, when preload instrumentation.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getOpenTelemetryInstrumentationToPreload(): (((options?: any) => void) & {
|
|
10
|
+
id: string;
|
|
11
|
+
})[];
|
|
6
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export declare const instrumentKoa: ((options?: unknown) => void) & {
|
|
2
|
+
id: string;
|
|
3
|
+
};
|
|
1
4
|
export declare const koaIntegration: () => import("@sentry/types").Integration;
|
|
2
5
|
export declare const setupKoaErrorHandler: (app: {
|
|
3
6
|
use: (arg0: (ctx: any, next: any) => Promise<void>) => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Instrumentation } from '@opentelemetry/instrumentation';
|
|
2
|
+
/**
|
|
3
|
+
* Instrument an OpenTelemetry instrumentation once.
|
|
4
|
+
* This will skip running instrumentation again if it was already instrumented.
|
|
5
|
+
*/
|
|
6
|
+
export declare function generateInstrumentOnce<Options = unknown>(name: string, creator: (options?: Options) => Instrumentation): ((options?: Options) => void) & {
|
|
7
|
+
id: string;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=instrument.d.ts.map
|
|
@@ -14,4 +14,8 @@ export declare function init(options?: NodeOptions | undefined): void;
|
|
|
14
14
|
* Initialize Sentry for Node, without any integrations added by default.
|
|
15
15
|
*/
|
|
16
16
|
export declare function initWithoutDefaultIntegrations(options?: NodeOptions | undefined): void;
|
|
17
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Validate that your OpenTelemetry setup is correct.
|
|
19
|
+
*/
|
|
20
|
+
export declare function validateOpenTelemetrySetup(): void;
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -4,6 +4,19 @@ import { NodeClient } from './client';
|
|
|
4
4
|
* Initialize OpenTelemetry for Node.
|
|
5
5
|
*/
|
|
6
6
|
export declare function initOpenTelemetry(client: NodeClient): void;
|
|
7
|
+
/** Initialize the ESM loader. */
|
|
8
|
+
export declare function maybeInitializeEsmLoader(): void;
|
|
9
|
+
interface NodePreloadOptions {
|
|
10
|
+
debug?: boolean;
|
|
11
|
+
integrations?: string[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Preload OpenTelemetry for Node.
|
|
15
|
+
* This can be used to preload instrumentation early, but set up Sentry later.
|
|
16
|
+
* By preloading the OTEL instrumentation wrapping still happens early enough that everything works.
|
|
17
|
+
*/
|
|
18
|
+
export declare function preloadOpenTelemetry(options?: NodePreloadOptions): void;
|
|
7
19
|
/** Just exported for tests. */
|
|
8
20
|
export declare function setupOtel(client: NodeClient): BasicTracerProvider;
|
|
21
|
+
export {};
|
|
9
22
|
//# sourceMappingURL=initOtel.d.ts.map
|
package/cjs/sdk/init.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sources":["../../../src/sdk/init.ts"],"sourcesContent":["import {\n endSession,\n functionToStringIntegration,\n getClient,\n getCurrentScope,\n getIntegrationsToSetup,\n getIsolationScope,\n hasTracingEnabled,\n inboundFiltersIntegration,\n linkedErrorsIntegration,\n requestDataIntegration,\n startSession,\n} from '@sentry/core';\nimport { openTelemetrySetupCheck, setOpenTelemetryContextAsyncContextStrategy } from '@sentry/opentelemetry';\nimport type { Client, Integration, Options } from '@sentry/types';\nimport {\n GLOBAL_OBJ,\n consoleSandbox,\n dropUndefinedKeys,\n logger,\n propagationContextFromHeaders,\n stackParserFromStackParserOptions,\n} from '@sentry/utils';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { consoleIntegration } from '../integrations/console';\nimport { nodeContextIntegration } from '../integrations/context';\nimport { contextLinesIntegration } from '../integrations/contextlines';\n\nimport moduleModule from 'module';\nimport { httpIntegration } from '../integrations/http';\nimport { localVariablesIntegration } from '../integrations/local-variables';\nimport { modulesIntegration } from '../integrations/modules';\nimport { nativeNodeFetchIntegration } from '../integrations/node-fetch';\nimport { onUncaughtExceptionIntegration } from '../integrations/onuncaughtexception';\nimport { onUnhandledRejectionIntegration } from '../integrations/onunhandledrejection';\nimport { spotlightIntegration } from '../integrations/spotlight';\nimport { getAutoPerformanceIntegrations } from '../integrations/tracing';\nimport { makeNodeTransport } from '../transports';\nimport type { NodeClientOptions, NodeOptions } from '../types';\nimport { isCjs } from '../utils/commonjs';\nimport { defaultStackParser, getSentryRelease } from './api';\nimport { NodeClient } from './client';\nimport { initOpenTelemetry } from './initOtel';\n\nfunction getCjsOnlyIntegrations(): Integration[] {\n return isCjs() ? [modulesIntegration()] : [];\n}\n\n/**\n * Get default integrations, excluding performance.\n */\nexport function getDefaultIntegrationsWithoutPerformance(): Integration[] {\n return [\n // Common\n inboundFiltersIntegration(),\n functionToStringIntegration(),\n linkedErrorsIntegration(),\n requestDataIntegration(),\n // Native Wrappers\n consoleIntegration(),\n httpIntegration(),\n nativeNodeFetchIntegration(),\n // Global Handlers\n onUncaughtExceptionIntegration(),\n onUnhandledRejectionIntegration(),\n // Event Info\n contextLinesIntegration(),\n localVariablesIntegration(),\n nodeContextIntegration(),\n ...getCjsOnlyIntegrations(),\n ];\n}\n\n/** Get the default integrations for the Node SDK. */\nexport function getDefaultIntegrations(options: Options): Integration[] {\n return [\n ...getDefaultIntegrationsWithoutPerformance(),\n // We only add performance integrations if tracing is enabled\n // Note that this means that without tracing enabled, e.g. `expressIntegration()` will not be added\n // This means that generally request isolation will work (because that is done by httpIntegration)\n // But `transactionName` will not be set automatically\n ...(shouldAddPerformanceIntegrations(options) ? getAutoPerformanceIntegrations() : []),\n ];\n}\n\nfunction shouldAddPerformanceIntegrations(options: Options): boolean {\n if (!hasTracingEnabled(options)) {\n return false;\n }\n\n // We want to ensure `tracesSampleRate` is not just undefined/null here\n return options.enableTracing || options.tracesSampleRate != null || 'tracesSampler' in options;\n}\n\ndeclare const __IMPORT_META_URL_REPLACEMENT__: string;\n\n/**\n * Initialize Sentry for Node.\n */\nexport function init(options: NodeOptions | undefined = {}): void {\n return _init(options, getDefaultIntegrations);\n}\n\n/**\n * Initialize Sentry for Node, without any integrations added by default.\n */\nexport function initWithoutDefaultIntegrations(options: NodeOptions | undefined = {}): void {\n return _init(options, () => []);\n}\n\n/**\n * Initialize Sentry for Node, without performance instrumentation.\n */\nfunction _init(\n options: NodeOptions | undefined = {},\n getDefaultIntegrationsImpl: (options: Options) => Integration[],\n): void {\n const clientOptions = getClientOptions(options, getDefaultIntegrationsImpl);\n\n if (clientOptions.debug === true) {\n if (DEBUG_BUILD) {\n logger.enable();\n } else {\n // use `console.warn` rather than `logger.warn` since by non-debug bundles have all `logger.x` statements stripped\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.warn('[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.');\n });\n }\n }\n\n if (!isCjs()) {\n const [nodeMajor, nodeMinor] = process.versions.node.split('.').map(Number);\n\n // Register hook was added in v20.6.0 and v18.19.0\n if (nodeMajor >= 22 || (nodeMajor === 20 && nodeMinor >= 6) || (nodeMajor === 18 && nodeMinor >= 19)) {\n // We need to work around using import.meta.url directly because jest complains about it.\n const importMetaUrl =\n typeof __IMPORT_META_URL_REPLACEMENT__ !== 'undefined' ? __IMPORT_META_URL_REPLACEMENT__ : undefined;\n\n if (!GLOBAL_OBJ._sentryEsmLoaderHookRegistered && importMetaUrl) {\n try {\n // @ts-expect-error register is available in these versions\n moduleModule.register('@opentelemetry/instrumentation/hook.mjs', importMetaUrl);\n GLOBAL_OBJ._sentryEsmLoaderHookRegistered = true;\n } catch (error) {\n logger.warn('Failed to register ESM hook', error);\n }\n }\n } else {\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.warn(\n '[Sentry] You are using Node.js in ESM mode (\"import syntax\"). The Sentry Node.js SDK is not compatible with ESM in Node.js versions before 18.19.0 or before 20.6.0. Please either build your application with CommonJS (\"require() syntax\"), or use version 7.x of the Sentry Node.js SDK.',\n );\n });\n }\n }\n\n setOpenTelemetryContextAsyncContextStrategy();\n\n const scope = getCurrentScope();\n scope.update(options.initialScope);\n\n const client = new NodeClient(clientOptions);\n // The client is on the current scope, from where it generally is inherited\n getCurrentScope().setClient(client);\n\n if (isEnabled(client)) {\n client.init();\n }\n\n logger.log(`Running in ${isCjs() ? 'CommonJS' : 'ESM'} mode.`);\n\n if (options.autoSessionTracking) {\n startSessionTracking();\n }\n\n updateScopeFromEnvVariables();\n\n if (options.spotlight) {\n // force integrations to be setup even if no DSN was set\n // If they have already been added before, they will be ignored anyhow\n const integrations = client.getOptions().integrations;\n for (const integration of integrations) {\n client.addIntegration(integration);\n }\n client.addIntegration(\n spotlightIntegration({\n sidecarUrl: typeof options.spotlight === 'string' ? options.spotlight : undefined,\n }),\n );\n }\n\n // If users opt-out of this, they _have_ to set up OpenTelemetry themselves\n // There is no way to use this SDK without OpenTelemetry!\n if (!options.skipOpenTelemetrySetup) {\n initOpenTelemetry(client);\n }\n\n validateOpenTelemetrySetup();\n}\n\nfunction validateOpenTelemetrySetup(): void {\n if (!DEBUG_BUILD) {\n return;\n }\n\n const setup = openTelemetrySetupCheck();\n\n const required = ['SentrySpanProcessor', 'SentryContextManager', 'SentryPropagator'] as const;\n for (const k of required) {\n if (!setup.includes(k)) {\n logger.error(\n `You have to set up the ${k}. Without this, the OpenTelemetry & Sentry integration will not work properly.`,\n );\n }\n }\n\n if (!setup.includes('SentrySampler')) {\n logger.warn(\n 'You have to set up the SentrySampler. Without this, the OpenTelemetry & Sentry integration may still work, but sample rates set for the Sentry SDK will not be respected.',\n );\n }\n}\n\nfunction getClientOptions(\n options: NodeOptions,\n getDefaultIntegrationsImpl: (options: Options) => Integration[],\n): NodeClientOptions {\n const release = getRelease(options.release);\n\n const autoSessionTracking =\n typeof release !== 'string'\n ? false\n : options.autoSessionTracking === undefined\n ? true\n : options.autoSessionTracking;\n\n const tracesSampleRate = getTracesSampleRate(options.tracesSampleRate);\n\n const baseOptions = dropUndefinedKeys({\n transport: makeNodeTransport,\n dsn: process.env.SENTRY_DSN,\n environment: process.env.SENTRY_ENVIRONMENT,\n });\n\n const overwriteOptions = dropUndefinedKeys({\n release,\n autoSessionTracking,\n tracesSampleRate,\n });\n\n const mergedOptions = {\n ...baseOptions,\n ...options,\n ...overwriteOptions,\n };\n\n if (options.defaultIntegrations === undefined) {\n options.defaultIntegrations = getDefaultIntegrationsImpl(mergedOptions);\n }\n\n const clientOptions: NodeClientOptions = {\n ...mergedOptions,\n stackParser: stackParserFromStackParserOptions(options.stackParser || defaultStackParser),\n integrations: getIntegrationsToSetup({\n defaultIntegrations: options.defaultIntegrations,\n integrations: options.integrations,\n }),\n };\n\n return clientOptions;\n}\n\nfunction getRelease(release: NodeOptions['release']): string | undefined {\n if (release !== undefined) {\n return release;\n }\n\n const detectedRelease = getSentryRelease();\n if (detectedRelease !== undefined) {\n return detectedRelease;\n }\n\n return undefined;\n}\n\nfunction getTracesSampleRate(tracesSampleRate: NodeOptions['tracesSampleRate']): number | undefined {\n if (tracesSampleRate !== undefined) {\n return tracesSampleRate;\n }\n\n const sampleRateFromEnv = process.env.SENTRY_TRACES_SAMPLE_RATE;\n if (!sampleRateFromEnv) {\n return undefined;\n }\n\n const parsed = parseFloat(sampleRateFromEnv);\n return isFinite(parsed) ? parsed : undefined;\n}\n\n/**\n * Update scope and propagation context based on environmental variables.\n *\n * See https://github.com/getsentry/rfcs/blob/main/text/0071-continue-trace-over-process-boundaries.md\n * for more details.\n */\nfunction updateScopeFromEnvVariables(): void {\n const sentryUseEnvironment = (process.env.SENTRY_USE_ENVIRONMENT || '').toLowerCase();\n if (!['false', 'n', 'no', 'off', '0'].includes(sentryUseEnvironment)) {\n const sentryTraceEnv = process.env.SENTRY_TRACE;\n const baggageEnv = process.env.SENTRY_BAGGAGE;\n const propagationContext = propagationContextFromHeaders(sentryTraceEnv, baggageEnv);\n getCurrentScope().setPropagationContext(propagationContext);\n }\n}\n\n/**\n * Enable automatic Session Tracking for the node process.\n */\nfunction startSessionTracking(): void {\n const client = getClient<NodeClient>();\n if (client && client.getOptions().autoSessionTracking) {\n client.initSessionFlusher();\n }\n\n startSession();\n\n // Emitted in the case of healthy sessions, error of `mechanism.handled: true` and unhandledrejections because\n // The 'beforeExit' event is not emitted for conditions causing explicit termination,\n // such as calling process.exit() or uncaught exceptions.\n // Ref: https://nodejs.org/api/process.html#process_event_beforeexit\n process.on('beforeExit', () => {\n const session = getIsolationScope().getSession();\n\n // Only call endSession, if the Session exists on Scope and SessionStatus is not a\n // Terminal Status i.e. Exited or Crashed because\n // \"When a session is moved away from ok it must not be updated anymore.\"\n // Ref: https://develop.sentry.dev/sdk/sessions/\n if (session && session.status !== 'ok') {\n endSession();\n }\n });\n}\n\nfunction isEnabled(client: Client): boolean {\n return client.getOptions().enabled !== false && client.getTransport() !== undefined;\n}\n"],"names":["isCjs","modulesIntegration","inboundFiltersIntegration","functionToStringIntegration","linkedErrorsIntegration","requestDataIntegration","consoleIntegration","httpIntegration","nativeNodeFetchIntegration","onUncaughtExceptionIntegration","onUnhandledRejectionIntegration","contextLinesIntegration","localVariablesIntegration","nodeContextIntegration","getAutoPerformanceIntegrations","hasTracingEnabled","DEBUG_BUILD","logger","consoleSandbox","GLOBAL_OBJ","moduleModule","setOpenTelemetryContextAsyncContextStrategy","getCurrentScope","client","NodeClient","spotlightIntegration","initOpenTelemetry","openTelemetrySetupCheck","dropUndefinedKeys","makeNodeTransport","stackParserFromStackParserOptions","defaultStackParser","getIntegrationsToSetup","getSentryRelease","propagationContextFromHeaders","getClient","startSession","getIsolationScope","endSession"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA4CA,SAAS,sBAAsB,GAAkB;AACjD,EAAE,OAAOA,cAAK,EAAC,GAAI,CAACC,0BAAkB,EAAE,CAAA,GAAI,EAAE,CAAA;AAC9C,CAAA;AACA;AACA;AACA;AACA;AACO,SAAS,wCAAwC,GAAkB;AAC1E,EAAE,OAAO;AACT;AACA,IAAIC,8BAAyB,EAAE;AAC/B,IAAIC,gCAA2B,EAAE;AACjC,IAAIC,4BAAuB,EAAE;AAC7B,IAAIC,2BAAsB,EAAE;AAC5B;AACA,IAAIC,4BAAkB,EAAE;AACxB,IAAIC,oBAAe,EAAE;AACrB,IAAIC,oCAA0B,EAAE;AAChC;AACA,IAAIC,kDAA8B,EAAE;AACpC,IAAIC,oDAA+B,EAAE;AACrC;AACA,IAAIC,oCAAuB,EAAE;AAC7B,IAAIC,+BAAyB,EAAE;AAC/B,IAAIC,8BAAsB,EAAE;AAC5B,IAAI,GAAG,sBAAsB,EAAE;AAC/B,GAAG,CAAA;AACH,CAAA;AACA;AACA;AACO,SAAS,sBAAsB,CAAC,OAAO,EAA0B;AACxE,EAAE,OAAO;AACT,IAAI,GAAG,wCAAwC,EAAE;AACjD;AACA;AACA;AACA;AACA,IAAI,IAAI,gCAAgC,CAAC,OAAO,CAAA,GAAIC,sCAA8B,EAAC,GAAI,EAAE;AACzF,GAAG,CAAA;AACH,CAAA;AACA;AACA,SAAS,gCAAgC,CAAC,OAAO,EAAoB;AACrE,EAAE,IAAI,CAACC,sBAAiB,CAAC,OAAO,CAAC,EAAE;AACnC,IAAI,OAAO,KAAK,CAAA;AAChB,GAAE;AACF;AACA;AACA,EAAE,OAAO,OAAO,CAAC,aAAA,IAAiB,OAAO,CAAC,gBAAA,IAAoB,IAAA,IAAQ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,cAAe,GAAE,OAAO,CAAC,GAAG,CAAC,YAAY,CAAA;AACnD,IAAI,MAAM,UAAW,GAAE,OAAO,CAAC,GAAG,CAAC,cAAc,CAAA;AACjD,IAAI,MAAM,qBAAqBC,mCAA6B,CAAC,cAAc,EAAE,UAAU,CAAC,CAAA;AACxF,IAAIZ,oBAAe,EAAE,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,CAAA;AAC/D,GAAE;AACF,CAAA;AACA;AACA;AACA;AACA;AACA,SAAS,oBAAoB,GAAS;AACtC,EAAE,MAAM,MAAA,GAASa,cAAS,EAAc,CAAA;AACxC,EAAE,IAAI,MAAA,IAAU,MAAM,CAAC,UAAU,EAAE,CAAC,mBAAmB,EAAE;AACzD,IAAI,MAAM,CAAC,kBAAkB,EAAE,CAAA;AAC/B,GAAE;AACF;AACA,EAAEC,iBAAY,EAAE,CAAA;AAChB;AACA;AACA;AACA;AACA;AACA,EAAE,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM;AACjC,IAAI,MAAM,UAAUC,sBAAiB,EAAE,CAAC,UAAU,EAAE,CAAA;AACpD;AACA;AACA;AACA;AACA;AACA,IAAI,IAAI,OAAQ,IAAG,OAAO,CAAC,MAAA,KAAW,IAAI,EAAE;AAC5C,MAAMC,eAAU,EAAE,CAAA;AAClB,KAAI;AACJ,GAAG,CAAC,CAAA;AACJ,CAAA;AACA;AACA,SAAS,SAAS,CAAC,MAAM,EAAmB;AAC5C,EAAE,OAAO,MAAM,CAAC,UAAU,EAAE,CAAC,OAAA,KAAY,KAAA,IAAS,MAAM,CAAC,YAAY,EAAC,KAAM,SAAS,CAAA;AACrF;;;;;;;"}
|
package/esm/sdk/init.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sources":["../../../src/sdk/init.ts"],"sourcesContent":["import {\n endSession,\n functionToStringIntegration,\n getClient,\n getCurrentScope,\n getIntegrationsToSetup,\n getIsolationScope,\n hasTracingEnabled,\n inboundFiltersIntegration,\n linkedErrorsIntegration,\n requestDataIntegration,\n startSession,\n} from '@sentry/core';\nimport { openTelemetrySetupCheck, setOpenTelemetryContextAsyncContextStrategy } from '@sentry/opentelemetry';\nimport type { Client, Integration, Options } from '@sentry/types';\nimport {\n GLOBAL_OBJ,\n consoleSandbox,\n dropUndefinedKeys,\n logger,\n propagationContextFromHeaders,\n stackParserFromStackParserOptions,\n} from '@sentry/utils';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { consoleIntegration } from '../integrations/console';\nimport { nodeContextIntegration } from '../integrations/context';\nimport { contextLinesIntegration } from '../integrations/contextlines';\n\nimport moduleModule from 'module';\nimport { httpIntegration } from '../integrations/http';\nimport { localVariablesIntegration } from '../integrations/local-variables';\nimport { modulesIntegration } from '../integrations/modules';\nimport { nativeNodeFetchIntegration } from '../integrations/node-fetch';\nimport { onUncaughtExceptionIntegration } from '../integrations/onuncaughtexception';\nimport { onUnhandledRejectionIntegration } from '../integrations/onunhandledrejection';\nimport { spotlightIntegration } from '../integrations/spotlight';\nimport { getAutoPerformanceIntegrations } from '../integrations/tracing';\nimport { makeNodeTransport } from '../transports';\nimport type { NodeClientOptions, NodeOptions } from '../types';\nimport { isCjs } from '../utils/commonjs';\nimport { defaultStackParser, getSentryRelease } from './api';\nimport { NodeClient } from './client';\nimport { initOpenTelemetry } from './initOtel';\n\nfunction getCjsOnlyIntegrations(): Integration[] {\n return isCjs() ? [modulesIntegration()] : [];\n}\n\n/**\n * Get default integrations, excluding performance.\n */\nexport function getDefaultIntegrationsWithoutPerformance(): Integration[] {\n return [\n // Common\n inboundFiltersIntegration(),\n functionToStringIntegration(),\n linkedErrorsIntegration(),\n requestDataIntegration(),\n // Native Wrappers\n consoleIntegration(),\n httpIntegration(),\n nativeNodeFetchIntegration(),\n // Global Handlers\n onUncaughtExceptionIntegration(),\n onUnhandledRejectionIntegration(),\n // Event Info\n contextLinesIntegration(),\n localVariablesIntegration(),\n nodeContextIntegration(),\n ...getCjsOnlyIntegrations(),\n ];\n}\n\n/** Get the default integrations for the Node SDK. */\nexport function getDefaultIntegrations(options: Options): Integration[] {\n return [\n ...getDefaultIntegrationsWithoutPerformance(),\n // We only add performance integrations if tracing is enabled\n // Note that this means that without tracing enabled, e.g. `expressIntegration()` will not be added\n // This means that generally request isolation will work (because that is done by httpIntegration)\n // But `transactionName` will not be set automatically\n ...(shouldAddPerformanceIntegrations(options) ? getAutoPerformanceIntegrations() : []),\n ];\n}\n\nfunction shouldAddPerformanceIntegrations(options: Options): boolean {\n if (!hasTracingEnabled(options)) {\n return false;\n }\n\n // We want to ensure `tracesSampleRate` is not just undefined/null here\n return options.enableTracing || options.tracesSampleRate != null || 'tracesSampler' in options;\n}\n\ndeclare const __IMPORT_META_URL_REPLACEMENT__: string;\n\n/**\n * Initialize Sentry for Node.\n */\nexport function init(options: NodeOptions | undefined = {}): void {\n return _init(options, getDefaultIntegrations);\n}\n\n/**\n * Initialize Sentry for Node, without any integrations added by default.\n */\nexport function initWithoutDefaultIntegrations(options: NodeOptions | undefined = {}): void {\n return _init(options, () => []);\n}\n\n/**\n * Initialize Sentry for Node, without performance instrumentation.\n */\nfunction _init(\n options: NodeOptions | undefined = {},\n getDefaultIntegrationsImpl: (options: Options) => Integration[],\n): void {\n const clientOptions = getClientOptions(options, getDefaultIntegrationsImpl);\n\n if (clientOptions.debug === true) {\n if (DEBUG_BUILD) {\n logger.enable();\n } else {\n // use `console.warn` rather than `logger.warn` since by non-debug bundles have all `logger.x` statements stripped\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.warn('[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.');\n });\n }\n }\n\n if (!isCjs()) {\n const [nodeMajor, nodeMinor] = process.versions.node.split('.').map(Number);\n\n // Register hook was added in v20.6.0 and v18.19.0\n if (nodeMajor >= 22 || (nodeMajor === 20 && nodeMinor >= 6) || (nodeMajor === 18 && nodeMinor >= 19)) {\n // We need to work around using import.meta.url directly because jest complains about it.\n const importMetaUrl =\n typeof __IMPORT_META_URL_REPLACEMENT__ !== 'undefined' ? __IMPORT_META_URL_REPLACEMENT__ : undefined;\n\n if (!GLOBAL_OBJ._sentryEsmLoaderHookRegistered && importMetaUrl) {\n try {\n // @ts-expect-error register is available in these versions\n moduleModule.register('@opentelemetry/instrumentation/hook.mjs', importMetaUrl);\n GLOBAL_OBJ._sentryEsmLoaderHookRegistered = true;\n } catch (error) {\n logger.warn('Failed to register ESM hook', error);\n }\n }\n } else {\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.warn(\n '[Sentry] You are using Node.js in ESM mode (\"import syntax\"). The Sentry Node.js SDK is not compatible with ESM in Node.js versions before 18.19.0 or before 20.6.0. Please either build your application with CommonJS (\"require() syntax\"), or use version 7.x of the Sentry Node.js SDK.',\n );\n });\n }\n }\n\n setOpenTelemetryContextAsyncContextStrategy();\n\n const scope = getCurrentScope();\n scope.update(options.initialScope);\n\n const client = new NodeClient(clientOptions);\n // The client is on the current scope, from where it generally is inherited\n getCurrentScope().setClient(client);\n\n if (isEnabled(client)) {\n client.init();\n }\n\n logger.log(`Running in ${isCjs() ? 'CommonJS' : 'ESM'} mode.`);\n\n if (options.autoSessionTracking) {\n startSessionTracking();\n }\n\n updateScopeFromEnvVariables();\n\n if (options.spotlight) {\n // force integrations to be setup even if no DSN was set\n // If they have already been added before, they will be ignored anyhow\n const integrations = client.getOptions().integrations;\n for (const integration of integrations) {\n client.addIntegration(integration);\n }\n client.addIntegration(\n spotlightIntegration({\n sidecarUrl: typeof options.spotlight === 'string' ? options.spotlight : undefined,\n }),\n );\n }\n\n // If users opt-out of this, they _have_ to set up OpenTelemetry themselves\n // There is no way to use this SDK without OpenTelemetry!\n if (!options.skipOpenTelemetrySetup) {\n initOpenTelemetry(client);\n }\n\n validateOpenTelemetrySetup();\n}\n\nfunction validateOpenTelemetrySetup(): void {\n if (!DEBUG_BUILD) {\n return;\n }\n\n const setup = openTelemetrySetupCheck();\n\n const required = ['SentrySpanProcessor', 'SentryContextManager', 'SentryPropagator'] as const;\n for (const k of required) {\n if (!setup.includes(k)) {\n logger.error(\n `You have to set up the ${k}. Without this, the OpenTelemetry & Sentry integration will not work properly.`,\n );\n }\n }\n\n if (!setup.includes('SentrySampler')) {\n logger.warn(\n 'You have to set up the SentrySampler. Without this, the OpenTelemetry & Sentry integration may still work, but sample rates set for the Sentry SDK will not be respected.',\n );\n }\n}\n\nfunction getClientOptions(\n options: NodeOptions,\n getDefaultIntegrationsImpl: (options: Options) => Integration[],\n): NodeClientOptions {\n const release = getRelease(options.release);\n\n const autoSessionTracking =\n typeof release !== 'string'\n ? false\n : options.autoSessionTracking === undefined\n ? true\n : options.autoSessionTracking;\n\n const tracesSampleRate = getTracesSampleRate(options.tracesSampleRate);\n\n const baseOptions = dropUndefinedKeys({\n transport: makeNodeTransport,\n dsn: process.env.SENTRY_DSN,\n environment: process.env.SENTRY_ENVIRONMENT,\n });\n\n const overwriteOptions = dropUndefinedKeys({\n release,\n autoSessionTracking,\n tracesSampleRate,\n });\n\n const mergedOptions = {\n ...baseOptions,\n ...options,\n ...overwriteOptions,\n };\n\n if (options.defaultIntegrations === undefined) {\n options.defaultIntegrations = getDefaultIntegrationsImpl(mergedOptions);\n }\n\n const clientOptions: NodeClientOptions = {\n ...mergedOptions,\n stackParser: stackParserFromStackParserOptions(options.stackParser || defaultStackParser),\n integrations: getIntegrationsToSetup({\n defaultIntegrations: options.defaultIntegrations,\n integrations: options.integrations,\n }),\n };\n\n return clientOptions;\n}\n\nfunction getRelease(release: NodeOptions['release']): string | undefined {\n if (release !== undefined) {\n return release;\n }\n\n const detectedRelease = getSentryRelease();\n if (detectedRelease !== undefined) {\n return detectedRelease;\n }\n\n return undefined;\n}\n\nfunction getTracesSampleRate(tracesSampleRate: NodeOptions['tracesSampleRate']): number | undefined {\n if (tracesSampleRate !== undefined) {\n return tracesSampleRate;\n }\n\n const sampleRateFromEnv = process.env.SENTRY_TRACES_SAMPLE_RATE;\n if (!sampleRateFromEnv) {\n return undefined;\n }\n\n const parsed = parseFloat(sampleRateFromEnv);\n return isFinite(parsed) ? parsed : undefined;\n}\n\n/**\n * Update scope and propagation context based on environmental variables.\n *\n * See https://github.com/getsentry/rfcs/blob/main/text/0071-continue-trace-over-process-boundaries.md\n * for more details.\n */\nfunction updateScopeFromEnvVariables(): void {\n const sentryUseEnvironment = (process.env.SENTRY_USE_ENVIRONMENT || '').toLowerCase();\n if (!['false', 'n', 'no', 'off', '0'].includes(sentryUseEnvironment)) {\n const sentryTraceEnv = process.env.SENTRY_TRACE;\n const baggageEnv = process.env.SENTRY_BAGGAGE;\n const propagationContext = propagationContextFromHeaders(sentryTraceEnv, baggageEnv);\n getCurrentScope().setPropagationContext(propagationContext);\n }\n}\n\n/**\n * Enable automatic Session Tracking for the node process.\n */\nfunction startSessionTracking(): void {\n const client = getClient<NodeClient>();\n if (client && client.getOptions().autoSessionTracking) {\n client.initSessionFlusher();\n }\n\n startSession();\n\n // Emitted in the case of healthy sessions, error of `mechanism.handled: true` and unhandledrejections because\n // The 'beforeExit' event is not emitted for conditions causing explicit termination,\n // such as calling process.exit() or uncaught exceptions.\n // Ref: https://nodejs.org/api/process.html#process_event_beforeexit\n process.on('beforeExit', () => {\n const session = getIsolationScope().getSession();\n\n // Only call endSession, if the Session exists on Scope and SessionStatus is not a\n // Terminal Status i.e. Exited or Crashed because\n // \"When a session is moved away from ok it must not be updated anymore.\"\n // Ref: https://develop.sentry.dev/sdk/sessions/\n if (session && session.status !== 'ok') {\n endSession();\n }\n });\n}\n\nfunction isEnabled(client: Client): boolean {\n return client.getOptions().enabled !== false && client.getTransport() !== undefined;\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA4CA,SAAS,sBAAsB,GAAkB;AACjD,EAAE,OAAO,KAAK,EAAC,GAAI,CAAC,kBAAkB,EAAE,CAAA,GAAI,EAAE,CAAA;AAC9C,CAAA;AACA;AACA;AACA;AACA;AACO,SAAS,wCAAwC,GAAkB;AAC1E,EAAE,OA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