@sentry/node 8.0.0-alpha.4 → 8.0.0-alpha.7
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 +124 -186
- package/cjs/index.js.map +1 -1
- package/esm/index.js +135 -198
- package/esm/index.js.map +1 -1
- package/esm/integrations/anr/worker-script.js +2 -2
- package/esm/package.json +1 -1
- package/package.json +7 -7
- package/types/index.d.ts +3 -3
- package/types/index.d.ts.map +1 -1
- package/types/integrations/anr/common.d.ts +1 -0
- package/types/integrations/anr/common.d.ts.map +1 -1
- package/types/integrations/anr/index.d.ts +8 -1
- package/types/integrations/anr/index.d.ts.map +1 -1
- package/types/integrations/console.d.ts +1 -1
- package/types/integrations/console.d.ts.map +1 -1
- package/types/integrations/context.d.ts +1 -1
- package/types/integrations/context.d.ts.map +1 -1
- package/types/integrations/contextlines.d.ts +1 -1
- package/types/integrations/contextlines.d.ts.map +1 -1
- package/types/integrations/http.d.ts +1 -1
- package/types/integrations/http.d.ts.map +1 -1
- package/types/integrations/local-variables/index.d.ts +1 -1
- package/types/integrations/local-variables/index.d.ts.map +1 -1
- package/types/integrations/local-variables/local-variables-sync.d.ts +1 -9
- package/types/integrations/local-variables/local-variables-sync.d.ts.map +1 -1
- package/types/integrations/modules.d.ts +1 -1
- package/types/integrations/modules.d.ts.map +1 -1
- package/types/integrations/node-fetch.d.ts +1 -1
- package/types/integrations/node-fetch.d.ts.map +1 -1
- package/types/integrations/onuncaughtexception.d.ts +1 -1
- package/types/integrations/onuncaughtexception.d.ts.map +1 -1
- package/types/integrations/onunhandledrejection.d.ts +1 -1
- package/types/integrations/onunhandledrejection.d.ts.map +1 -1
- package/types/integrations/spotlight.d.ts +1 -1
- package/types/integrations/spotlight.d.ts.map +1 -1
- package/types/integrations/tracing/express.d.ts +1 -1
- package/types/integrations/tracing/express.d.ts.map +1 -1
- package/types/integrations/tracing/fastify.d.ts +1 -1
- package/types/integrations/tracing/fastify.d.ts.map +1 -1
- package/types/integrations/tracing/graphql.d.ts +1 -1
- package/types/integrations/tracing/graphql.d.ts.map +1 -1
- package/types/integrations/tracing/hapi/index.d.ts +1 -1
- package/types/integrations/tracing/hapi/index.d.ts.map +1 -1
- package/types/integrations/tracing/index.d.ts.map +1 -1
- package/types/integrations/tracing/koa.d.ts +1 -1
- package/types/integrations/tracing/koa.d.ts.map +1 -1
- package/types/integrations/tracing/mongo.d.ts +1 -1
- package/types/integrations/tracing/mongo.d.ts.map +1 -1
- package/types/integrations/tracing/mongoose.d.ts +1 -1
- package/types/integrations/tracing/mongoose.d.ts.map +1 -1
- package/types/integrations/tracing/mysql.d.ts +1 -1
- package/types/integrations/tracing/mysql.d.ts.map +1 -1
- package/types/integrations/tracing/mysql2.d.ts +1 -1
- package/types/integrations/tracing/mysql2.d.ts.map +1 -1
- package/types/integrations/tracing/nest.d.ts +1 -1
- package/types/integrations/tracing/nest.d.ts.map +1 -1
- package/types/integrations/tracing/postgres.d.ts +1 -1
- package/types/integrations/tracing/postgres.d.ts.map +1 -1
- package/types/integrations/tracing/prisma.d.ts +1 -1
- package/types/integrations/tracing/prisma.d.ts.map +1 -1
- package/types/nodeVersion.d.ts +3 -2
- package/types/nodeVersion.d.ts.map +1 -1
- package/types/sdk/api.d.ts +1 -11
- package/types/sdk/api.d.ts.map +1 -1
- package/types/sdk/init.d.ts.map +1 -1
- package/types/sdk/initOtel.d.ts +1 -1
- package/types/sdk/initOtel.d.ts.map +1 -1
- package/types/transports/http.d.ts.map +1 -1
- package/types-ts3.8/index.d.ts +3 -3
- package/types-ts3.8/integrations/anr/common.d.ts +1 -0
- package/types-ts3.8/integrations/anr/index.d.ts +8 -1
- package/types-ts3.8/integrations/console.d.ts +1 -1
- package/types-ts3.8/integrations/context.d.ts +1 -1
- package/types-ts3.8/integrations/contextlines.d.ts +1 -1
- package/types-ts3.8/integrations/http.d.ts +1 -1
- package/types-ts3.8/integrations/local-variables/index.d.ts +1 -1
- package/types-ts3.8/integrations/local-variables/local-variables-sync.d.ts +1 -9
- package/types-ts3.8/integrations/modules.d.ts +1 -1
- package/types-ts3.8/integrations/node-fetch.d.ts +1 -1
- package/types-ts3.8/integrations/onuncaughtexception.d.ts +1 -1
- package/types-ts3.8/integrations/onunhandledrejection.d.ts +1 -1
- package/types-ts3.8/integrations/spotlight.d.ts +1 -1
- package/types-ts3.8/integrations/tracing/express.d.ts +1 -1
- package/types-ts3.8/integrations/tracing/fastify.d.ts +1 -1
- package/types-ts3.8/integrations/tracing/graphql.d.ts +1 -1
- package/types-ts3.8/integrations/tracing/hapi/index.d.ts +1 -1
- package/types-ts3.8/integrations/tracing/koa.d.ts +1 -1
- package/types-ts3.8/integrations/tracing/mongo.d.ts +1 -1
- package/types-ts3.8/integrations/tracing/mongoose.d.ts +1 -1
- package/types-ts3.8/integrations/tracing/mysql.d.ts +1 -1
- package/types-ts3.8/integrations/tracing/mysql2.d.ts +1 -1
- package/types-ts3.8/integrations/tracing/nest.d.ts +1 -1
- package/types-ts3.8/integrations/tracing/postgres.d.ts +1 -1
- package/types-ts3.8/integrations/tracing/prisma.d.ts +1 -1
- package/types-ts3.8/nodeVersion.d.ts +3 -2
- package/types-ts3.8/sdk/api.d.ts +1 -11
- package/types-ts3.8/sdk/initOtel.d.ts +1 -1
- package/types/sdk/globals.d.ts +0 -6
- package/types/sdk/globals.d.ts.map +0 -1
- package/types/sdk/hub.d.ts +0 -7
- package/types/sdk/hub.d.ts.map +0 -1
- package/types-ts3.8/sdk/globals.d.ts +0 -6
- package/types-ts3.8/sdk/hub.d.ts +0 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAcjD;;GAEG;AACH,wBAAgB,8BAA8B,IAAI,WAAW,EAAE,CAkB9D"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const koaIntegration: () => import("@sentry/types").
|
|
1
|
+
export declare const koaIntegration: () => import("@sentry/types").Integration;
|
|
2
2
|
//# sourceMappingURL=koa.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"koa.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/koa.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"koa.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/koa.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,cAAc,2CAAqC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mongo.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mongo.ts"],"names":[],"mappings":"AAwBA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"mongo.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mongo.ts"],"names":[],"mappings":"AAwBA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,2CAAuC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mongoose.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mongoose.ts"],"names":[],"mappings":"AAwBA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"mongoose.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mongoose.ts"],"names":[],"mappings":"AAwBA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,2CAA0C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mysql.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mysql.ts"],"names":[],"mappings":"AAgBA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"mysql.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mysql.ts"],"names":[],"mappings":"AAgBA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,2CAAuC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mysql2.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mysql2.ts"],"names":[],"mappings":"AAwBA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"mysql2.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mysql2.ts"],"names":[],"mappings":"AAwBA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,2CAAwC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nest.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/nest.ts"],"names":[],"mappings":"AAgBA;;;;GAIG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"nest.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/nest.ts"],"names":[],"mappings":"AAgBA;;;;GAIG;AACH,eAAO,MAAM,eAAe,2CAAsC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgres.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/postgres.ts"],"names":[],"mappings":"AAyBA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"postgres.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/postgres.ts"],"names":[],"mappings":"AAyBA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,2CAA0C,CAAC"}
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
* For the prisma client.
|
|
8
8
|
* See https://www.prisma.io/docs/concepts/components/prisma-client/opentelemetry-tracing for more details.
|
|
9
9
|
*/
|
|
10
|
-
export declare const prismaIntegration: () => import("@sentry/types").
|
|
10
|
+
export declare const prismaIntegration: () => import("@sentry/types").Integration;
|
|
11
11
|
//# sourceMappingURL=prisma.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prisma.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/prisma.ts"],"names":[],"mappings":"AAoBA;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"prisma.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/prisma.ts"],"names":[],"mappings":"AAoBA;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,2CAAwC,CAAC"}
|
package/types/nodeVersion.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodeVersion.d.ts","sourceRoot":"","sources":["../../src/nodeVersion.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;
|
|
1
|
+
{"version":3,"file":"nodeVersion.d.ts","sourceRoot":"","sources":["../../src/nodeVersion.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;WAAkD,MAAM;WAAS,MAAM;WAAS,MAAM;CAAE,CAAC;AAClH,eAAO,MAAM,UAAU,QAAqB,CAAC"}
|
package/types/sdk/api.d.ts
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Hub } from '@sentry/types';
|
|
3
|
-
/** Get the currently active client. */
|
|
4
|
-
export declare function getClient<C extends Client>(): C;
|
|
1
|
+
import type { StackParser } from '@sentry/types';
|
|
5
2
|
/**
|
|
6
3
|
* Returns a release dynamically from environment variables.
|
|
7
4
|
*/
|
|
8
5
|
export declare function getSentryRelease(fallback?: string): string | undefined;
|
|
9
6
|
/** Node.js stack parser */
|
|
10
7
|
export declare const defaultStackParser: StackParser;
|
|
11
|
-
/**
|
|
12
|
-
* This method is a noop and only here to ensure vite-plugin v0.6.0 (which is used by Sveltekit) still works,
|
|
13
|
-
* as that uses this.
|
|
14
|
-
*
|
|
15
|
-
* @deprecated This will be removed before v8 is finalized.
|
|
16
|
-
*/
|
|
17
|
-
export declare function makeMain(hub: Hub): Hub;
|
|
18
8
|
//# sourceMappingURL=api.d.ts.map
|
package/types/sdk/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/sdk/api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/sdk/api.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAIjD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CA6BtE;AAED,2BAA2B;AAC3B,eAAO,MAAM,kBAAkB,EAAE,WAAmF,CAAC"}
|
package/types/sdk/init.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/sdk/init.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAU,WAAW,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAsBlE,OAAO,KAAK,EAAqB,WAAW,EAAE,MAAM,UAAU,CAAC;AAS/D,kEAAkE;AAClE,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/sdk/init.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAU,WAAW,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAsBlE,OAAO,KAAK,EAAqB,WAAW,EAAE,MAAM,UAAU,CAAC;AAS/D,kEAAkE;AAClE,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,EAAE,CAqBtE;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,IAAI,CAuDhE"}
|
package/types/sdk/initOtel.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { NodeClient } from './client';
|
|
|
3
3
|
/**
|
|
4
4
|
* Initialize OpenTelemetry for Node.
|
|
5
5
|
*/
|
|
6
|
-
export declare function
|
|
6
|
+
export declare function initOpenTelemetry(client: NodeClient): void;
|
|
7
7
|
/** Just exported for tests. */
|
|
8
8
|
export declare function setupOtel(client: NodeClient): BasicTracerProvider;
|
|
9
9
|
//# sourceMappingURL=initOtel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initOtel.d.ts","sourceRoot":"","sources":["../../../src/sdk/initOtel.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"initOtel.d.ts","sourceRoot":"","sources":["../../../src/sdk/initOtel.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAOpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAgB1D;AAED,+BAA+B;AAC/B,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,GAAG,mBAAmB,CAoBjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/transports/http.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/transports/http.ts"],"names":[],"mappings":";AAOA,OAAO,KAAK,EACV,oBAAoB,EACpB,SAAS,EAIV,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACnD,6EAA6E;IAC7E,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAkBD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,oBAAoB,GAAG,SAAS,CAsC1E"}
|
package/types-ts3.8/index.d.ts
CHANGED
|
@@ -21,16 +21,16 @@ export { prismaIntegration } from './integrations/tracing/prisma';
|
|
|
21
21
|
export { hapiIntegration, setupHapiErrorHandler } from './integrations/tracing/hapi';
|
|
22
22
|
export { spotlightIntegration } from './integrations/spotlight';
|
|
23
23
|
export { init, getDefaultIntegrations } from './sdk/init';
|
|
24
|
+
export { initOpenTelemetry } from './sdk/initOtel';
|
|
24
25
|
export { getAutoPerformanceIntegrations } from './integrations/tracing';
|
|
25
|
-
export {
|
|
26
|
+
export { getSentryRelease, defaultStackParser } from './sdk/api';
|
|
26
27
|
export { createGetModuleFromFilename } from './utils/module';
|
|
27
28
|
export { makeNodeTransport } from './transports';
|
|
28
29
|
export { NodeClient } from './sdk/client';
|
|
29
|
-
export { getCurrentHub } from './sdk/hub';
|
|
30
30
|
export { cron } from './cron';
|
|
31
31
|
export { NodeOptions } from './types';
|
|
32
32
|
export { addRequestDataToEvent, DEFAULT_USER_INCLUDES, extractRequestData, } from '@sentry/utils';
|
|
33
33
|
export { continueTrace } from '@sentry/opentelemetry';
|
|
34
|
-
export { addBreadcrumb, isInitialized, getGlobalScope, close, createTransport, flush, Hub, 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, getCurrentScope, getIsolationScope, withScope, withIsolationScope, captureException, captureEvent, captureMessage, captureConsoleIntegration, debugIntegration, dedupeIntegration, extraErrorDataIntegration, rewriteFramesIntegration, sessionTimingIntegration, metricsDefault as metrics, startSession, captureSession, endSession, addIntegration, startSpan, startSpanManual, startInactiveSpan, getActiveSpan, withActiveSpan, getRootSpan, } from '@sentry/core';
|
|
34
|
+
export { addBreadcrumb, isInitialized, getGlobalScope, close, createTransport, flush, Hub, 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, captureConsoleIntegration, debugIntegration, dedupeIntegration, extraErrorDataIntegration, rewriteFramesIntegration, sessionTimingIntegration, metricsDefault as metrics, startSession, captureSession, endSession, addIntegration, startSpan, startSpanManual, startInactiveSpan, getActiveSpan, withActiveSpan, getRootSpan, spanToJSON, } from '@sentry/core';
|
|
35
35
|
export { Breadcrumb, BreadcrumbHint, PolymorphicRequest, Request, SdkInfo, Event, EventHint, Exception, Session, SeverityLevel, StackFrame, Stacktrace, Thread, Transaction, User, Span, } from '@sentry/types';
|
|
36
36
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { Integration } from '@sentry/types';
|
|
1
2
|
import { AnrIntegrationOptions } from './common';
|
|
2
|
-
|
|
3
|
+
type AnrInternal = {
|
|
4
|
+
startWorker: () => void;
|
|
5
|
+
stopWorker: () => void;
|
|
6
|
+
};
|
|
7
|
+
type AnrReturn = (options?: Partial<AnrIntegrationOptions>) => Integration & AnrInternal;
|
|
8
|
+
export declare const anrIntegration: AnrReturn;
|
|
9
|
+
export {};
|
|
3
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -17,7 +17,7 @@ interface ContextOptions {
|
|
|
17
17
|
/**
|
|
18
18
|
* Capture context about the environment and the device that the client is running on, to events.
|
|
19
19
|
*/
|
|
20
|
-
export declare const nodeContextIntegration: (options?: ContextOptions | undefined) => import("@sentry/types").
|
|
20
|
+
export declare const nodeContextIntegration: (options?: ContextOptions | undefined) => import("@sentry/types").Integration;
|
|
21
21
|
/**
|
|
22
22
|
* Gets device information from os
|
|
23
23
|
*/
|
|
@@ -21,6 +21,6 @@ export declare const _contextLinesIntegration: (options?: ContextLinesOptions) =
|
|
|
21
21
|
/**
|
|
22
22
|
* Capture the lines before and after the frame's context.
|
|
23
23
|
*/
|
|
24
|
-
export declare const contextLinesIntegration: (options?: ContextLinesOptions | undefined) => import("@sentry/types").
|
|
24
|
+
export declare const contextLinesIntegration: (options?: ContextLinesOptions | undefined) => import("@sentry/types").Integration;
|
|
25
25
|
export {};
|
|
26
26
|
//# sourceMappingURL=contextlines.d.ts.map
|
|
@@ -19,6 +19,6 @@ interface HttpOptions {
|
|
|
19
19
|
* The http integration instruments Node's internal http and https modules.
|
|
20
20
|
* It creates breadcrumbs and spans for outgoing HTTP requests which will be attached to the currently active span.
|
|
21
21
|
*/
|
|
22
|
-
export declare const httpIntegration: (options?: HttpOptions | undefined) => import("@sentry/types").
|
|
22
|
+
export declare const httpIntegration: (options?: HttpOptions | undefined) => import("@sentry/types").Integration;
|
|
23
23
|
export {};
|
|
24
24
|
//# sourceMappingURL=http.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const localVariablesIntegration: (options?: import("./common").LocalVariablesIntegrationOptions | undefined, session?: import("./local-variables-sync").DebugSession | undefined) => import("@sentry/types").
|
|
1
|
+
export declare const localVariablesIntegration: (options?: import("./common").LocalVariablesIntegrationOptions | undefined, session?: import("./local-variables-sync").DebugSession | undefined) => import("@sentry/types").Integration;
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { Event, Integration, IntegrationClass } from '@sentry/types';
|
|
3
2
|
import { Debugger, InspectorNotification } from 'inspector';
|
|
4
|
-
import { NodeClient } from '../../sdk/client';
|
|
5
3
|
import { LocalVariablesIntegrationOptions, Variables } from './common';
|
|
6
4
|
type OnPauseEvent = InspectorNotification<Debugger.PausedEventDataType>;
|
|
7
5
|
export interface DebugSession {
|
|
@@ -20,15 +18,9 @@ type CallbackWrapper<T> = {
|
|
|
20
18
|
};
|
|
21
19
|
/** Creates a container for callbacks to be called sequentially */
|
|
22
20
|
export declare function createCallbackList<T>(complete: Next<T>): CallbackWrapper<T>;
|
|
23
|
-
export declare const localVariablesSyncIntegration: (options?: LocalVariablesIntegrationOptions | undefined, session?: DebugSession | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
24
21
|
/**
|
|
25
22
|
* Adds local variables to exception frames.
|
|
26
|
-
* @deprecated Use `localVariablesSyncIntegration()` instead.
|
|
27
23
|
*/
|
|
28
|
-
export declare const
|
|
29
|
-
processEvent: (event: Event) => Event;
|
|
30
|
-
setup: (client: NodeClient) => void;
|
|
31
|
-
}> & (new (options?: LocalVariablesIntegrationOptions, session?: DebugSession) => Integration);
|
|
32
|
-
export type LocalVariablesSync = typeof LocalVariablesSync;
|
|
24
|
+
export declare const localVariablesSyncIntegration: (options?: LocalVariablesIntegrationOptions | undefined, session?: DebugSession | undefined) => import("@sentry/types").Integration;
|
|
33
25
|
export {};
|
|
34
26
|
//# sourceMappingURL=local-variables-sync.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Add node modules / packages to the event.
|
|
3
3
|
*/
|
|
4
|
-
export declare const modulesIntegration: () => import("@sentry/types").
|
|
4
|
+
export declare const modulesIntegration: () => import("@sentry/types").Integration;
|
|
5
5
|
//# sourceMappingURL=modules.d.ts.map
|
|
@@ -10,6 +10,6 @@ interface NodeFetchOptions {
|
|
|
10
10
|
*/
|
|
11
11
|
ignoreOutgoingRequests?: (url: string) => boolean;
|
|
12
12
|
}
|
|
13
|
-
export declare const nativeNodeFetchIntegration: (options?: NodeFetchOptions | undefined) => import("@sentry/types").
|
|
13
|
+
export declare const nativeNodeFetchIntegration: (options?: NodeFetchOptions | undefined) => import("@sentry/types").Integration;
|
|
14
14
|
export {};
|
|
15
15
|
//# sourceMappingURL=node-fetch.d.ts.map
|
|
@@ -21,7 +21,7 @@ interface OnUncaughtExceptionOptions {
|
|
|
21
21
|
/**
|
|
22
22
|
* Add a global exception handler.
|
|
23
23
|
*/
|
|
24
|
-
export declare const onUncaughtExceptionIntegration: (options?: Partial<OnUncaughtExceptionOptions> | undefined) => import("@sentry/types").
|
|
24
|
+
export declare const onUncaughtExceptionIntegration: (options?: Partial<OnUncaughtExceptionOptions> | undefined) => import("@sentry/types").Integration;
|
|
25
25
|
type ErrorHandler = {
|
|
26
26
|
_errorHandler: boolean;
|
|
27
27
|
} & ((error: Error) => void);
|
|
@@ -10,7 +10,7 @@ interface OnUnhandledRejectionOptions {
|
|
|
10
10
|
/**
|
|
11
11
|
* Add a global promise rejection handler.
|
|
12
12
|
*/
|
|
13
|
-
export declare const onUnhandledRejectionIntegration: (options?: Partial<OnUnhandledRejectionOptions> | undefined) => import("@sentry/types").
|
|
13
|
+
export declare const onUnhandledRejectionIntegration: (options?: Partial<OnUnhandledRejectionOptions> | undefined) => import("@sentry/types").Integration;
|
|
14
14
|
/**
|
|
15
15
|
* Send an exception with reason
|
|
16
16
|
* @param reason string
|
|
@@ -13,7 +13,7 @@ type SpotlightConnectionOptions = {
|
|
|
13
13
|
*
|
|
14
14
|
* Important: This integration only works with Node 18 or newer.
|
|
15
15
|
*/
|
|
16
|
-
export declare const spotlightIntegration: (options?: Partial<SpotlightConnectionOptions> | undefined) => import("@sentry/types").
|
|
16
|
+
export declare const spotlightIntegration: (options?: Partial<SpotlightConnectionOptions> | undefined) => import("@sentry/types").Integration;
|
|
17
17
|
type HttpRequestImpl = typeof http.request;
|
|
18
18
|
/**
|
|
19
19
|
* We want to get an unpatched http request implementation to avoid capturing our own calls.
|
|
@@ -6,7 +6,7 @@ import * as http from 'http';
|
|
|
6
6
|
* Capture tracing data for express.
|
|
7
7
|
* In order to capture exceptions, you have to call `setupExpressErrorHandler(app)` before any other middleware and after all controllers.
|
|
8
8
|
*/
|
|
9
|
-
export declare const expressIntegration: () => import("@sentry/types").
|
|
9
|
+
export declare const expressIntegration: () => import("@sentry/types").Integration;
|
|
10
10
|
interface MiddlewareError extends Error {
|
|
11
11
|
status?: number | string;
|
|
12
12
|
statusCode?: number | string;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Capture tracing data for fastify.
|
|
5
5
|
*/
|
|
6
|
-
export declare const fastifyIntegration: () => import("@sentry/types").
|
|
6
|
+
export declare const fastifyIntegration: () => import("@sentry/types").Integration;
|
|
7
7
|
interface Fastify {
|
|
8
8
|
register: (plugin: unknown) => void;
|
|
9
9
|
addHook: (hook: string, handler: (request: unknown, reply: unknown, error: Error) => void) => void;
|
|
@@ -5,7 +5,7 @@ import { Server } from './types';
|
|
|
5
5
|
* Capture tracing data for Hapi.
|
|
6
6
|
* If you also want to capture errors, you need to call `setupHapiErrorHandler(server)` after you set up your server.
|
|
7
7
|
*/
|
|
8
|
-
export declare const hapiIntegration: () => import("@sentry/types").
|
|
8
|
+
export declare const hapiIntegration: () => import("@sentry/types").Integration;
|
|
9
9
|
export declare const hapiErrorPlugin: {
|
|
10
10
|
name: string;
|
|
11
11
|
version: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const koaIntegration: () => import("@sentry/types").
|
|
1
|
+
export declare const koaIntegration: () => import("@sentry/types").Integration;
|
|
2
2
|
//# sourceMappingURL=koa.d.ts.map
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
* For the prisma client.
|
|
8
8
|
* See https://www.prisma.io/docs/concepts/components/prisma-client/opentelemetry-tracing for more details.
|
|
9
9
|
*/
|
|
10
|
-
export declare const prismaIntegration: () => import("@sentry/types").
|
|
10
|
+
export declare const prismaIntegration: () => import("@sentry/types").Integration;
|
|
11
11
|
//# sourceMappingURL=prisma.d.ts.map
|
package/types-ts3.8/sdk/api.d.ts
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Hub } from '@sentry/types';
|
|
3
|
-
/** Get the currently active client. */
|
|
4
|
-
export declare function getClient<C extends Client>(): C;
|
|
1
|
+
import { StackParser } from '@sentry/types';
|
|
5
2
|
/**
|
|
6
3
|
* Returns a release dynamically from environment variables.
|
|
7
4
|
*/
|
|
8
5
|
export declare function getSentryRelease(fallback?: string): string | undefined;
|
|
9
6
|
/** Node.js stack parser */
|
|
10
7
|
export declare const defaultStackParser: StackParser;
|
|
11
|
-
/**
|
|
12
|
-
* This method is a noop and only here to ensure vite-plugin v0.6.0 (which is used by Sveltekit) still works,
|
|
13
|
-
* as that uses this.
|
|
14
|
-
*
|
|
15
|
-
* @deprecated This will be removed before v8 is finalized.
|
|
16
|
-
*/
|
|
17
|
-
export declare function makeMain(hub: Hub): Hub;
|
|
18
8
|
//# sourceMappingURL=api.d.ts.map
|
|
@@ -3,7 +3,7 @@ import { NodeClient } from './client';
|
|
|
3
3
|
/**
|
|
4
4
|
* Initialize OpenTelemetry for Node.
|
|
5
5
|
*/
|
|
6
|
-
export declare function
|
|
6
|
+
export declare function initOpenTelemetry(client: NodeClient): void;
|
|
7
7
|
/** Just exported for tests. */
|
|
8
8
|
export declare function setupOtel(client: NodeClient): BasicTracerProvider;
|
|
9
9
|
//# sourceMappingURL=initOtel.d.ts.map
|
package/types/sdk/globals.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { Hub } from '@sentry/types';
|
|
2
|
-
/**
|
|
3
|
-
* Calls global extension method and binding current instance to the function call
|
|
4
|
-
*/
|
|
5
|
-
export declare function callExtensionMethod<T>(hub: Hub, method: string, ...args: any[]): T;
|
|
6
|
-
//# sourceMappingURL=globals.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../../../src/sdk/globals.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAIzC;;GAEG;AAGH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAQlF"}
|
package/types/sdk/hub.d.ts
DELETED
package/types/sdk/hub.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hub.d.ts","sourceRoot":"","sources":["../../../src/sdk/hub.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,GAAG,EAAuD,MAAM,eAAe,CAAC;AAmBjH;;;GAGG;AACH,wBAAgB,aAAa,IAAI,GAAG,CAkEnC"}
|
package/types-ts3.8/sdk/hub.d.ts
DELETED