@sentry/node 7.99.0 → 7.100.1
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 +31 -8
- package/cjs/index.js.map +1 -1
- package/cjs/integrations/anr/index.js +8 -1
- package/cjs/integrations/anr/index.js.map +1 -1
- package/cjs/integrations/anr/legacy.js +1 -0
- package/cjs/integrations/anr/legacy.js.map +1 -1
- package/cjs/integrations/anr/worker-script.js +1 -1
- package/cjs/integrations/console.js +10 -2
- package/cjs/integrations/console.js.map +1 -1
- package/cjs/integrations/context.js +10 -2
- package/cjs/integrations/context.js.map +1 -1
- package/cjs/integrations/contextlines.js +10 -2
- package/cjs/integrations/contextlines.js.map +1 -1
- package/cjs/integrations/hapi/index.js +8 -2
- package/cjs/integrations/hapi/index.js.map +1 -1
- package/cjs/integrations/http.js +71 -9
- package/cjs/integrations/http.js.map +1 -1
- package/cjs/integrations/index.js +1 -1
- package/cjs/integrations/index.js.map +1 -1
- package/cjs/integrations/local-variables/index.js +8 -1
- package/cjs/integrations/local-variables/index.js.map +1 -1
- package/cjs/integrations/local-variables/local-variables-sync.js +8 -2
- package/cjs/integrations/local-variables/local-variables-sync.js.map +1 -1
- package/cjs/integrations/modules.js +10 -2
- package/cjs/integrations/modules.js.map +1 -1
- package/cjs/integrations/onuncaughtexception.js +10 -2
- package/cjs/integrations/onuncaughtexception.js.map +1 -1
- package/cjs/integrations/onunhandledrejection.js +10 -2
- package/cjs/integrations/onunhandledrejection.js.map +1 -1
- package/cjs/integrations/spotlight.js +9 -2
- package/cjs/integrations/spotlight.js.map +1 -1
- package/cjs/integrations/undici/index.js +17 -1
- package/cjs/integrations/undici/index.js.map +1 -1
- package/cjs/sdk.js +20 -26
- package/cjs/sdk.js.map +1 -1
- package/esm/index.js +18 -8
- package/esm/index.js.map +1 -1
- package/esm/integrations/anr/index.js +9 -3
- package/esm/integrations/anr/index.js.map +1 -1
- package/esm/integrations/anr/legacy.js +1 -0
- package/esm/integrations/anr/legacy.js.map +1 -1
- package/esm/integrations/anr/worker-script.js +1 -1
- package/esm/integrations/console.js +11 -4
- package/esm/integrations/console.js.map +1 -1
- package/esm/integrations/context.js +11 -4
- package/esm/integrations/context.js.map +1 -1
- package/esm/integrations/contextlines.js +11 -4
- package/esm/integrations/contextlines.js.map +1 -1
- package/esm/integrations/hapi/index.js +9 -4
- package/esm/integrations/hapi/index.js.map +1 -1
- package/esm/integrations/http.js +71 -12
- package/esm/integrations/http.js.map +1 -1
- package/esm/integrations/index.js +2 -0
- package/esm/integrations/index.js.map +1 -1
- package/esm/integrations/local-variables/index.js +9 -3
- package/esm/integrations/local-variables/index.js.map +1 -1
- package/esm/integrations/local-variables/local-variables-sync.js +9 -4
- package/esm/integrations/local-variables/local-variables-sync.js.map +1 -1
- package/esm/integrations/modules.js +11 -4
- package/esm/integrations/modules.js.map +1 -1
- package/esm/integrations/onuncaughtexception.js +11 -4
- package/esm/integrations/onuncaughtexception.js.map +1 -1
- package/esm/integrations/onunhandledrejection.js +11 -4
- package/esm/integrations/onunhandledrejection.js.map +1 -1
- package/esm/integrations/spotlight.js +10 -4
- package/esm/integrations/spotlight.js.map +1 -1
- package/esm/integrations/undici/index.js +19 -4
- package/esm/integrations/undici/index.js.map +1 -1
- package/esm/sdk.js +27 -33
- package/esm/sdk.js.map +1 -1
- package/package.json +5 -5
- package/types/index.d.ts +15 -5
- package/types/index.d.ts.map +1 -1
- package/types/integrations/anr/index.d.ts +4 -0
- package/types/integrations/anr/index.d.ts.map +1 -1
- package/types/integrations/anr/legacy.d.ts.map +1 -1
- package/types/integrations/console.d.ts +6 -1
- package/types/integrations/console.d.ts.map +1 -1
- package/types/integrations/context.d.ts +13 -1
- package/types/integrations/context.d.ts.map +1 -1
- package/types/integrations/contextlines.d.ts +16 -1
- package/types/integrations/contextlines.d.ts.map +1 -1
- package/types/integrations/hapi/index.d.ts +4 -1
- package/types/integrations/hapi/index.d.ts.map +1 -1
- package/types/integrations/http.d.ts +37 -1
- package/types/integrations/http.d.ts.map +1 -1
- package/types/integrations/index.d.ts.map +1 -1
- package/types/integrations/local-variables/index.d.ts +6 -1
- package/types/integrations/local-variables/index.d.ts.map +1 -1
- package/types/integrations/local-variables/local-variables-async.d.ts +5 -1
- package/types/integrations/local-variables/local-variables-async.d.ts.map +1 -1
- package/types/integrations/local-variables/local-variables-sync.d.ts +4 -1
- package/types/integrations/local-variables/local-variables-sync.d.ts.map +1 -1
- package/types/integrations/modules.d.ts +6 -1
- package/types/integrations/modules.d.ts.map +1 -1
- package/types/integrations/onuncaughtexception.d.ts +6 -1
- package/types/integrations/onuncaughtexception.d.ts.map +1 -1
- package/types/integrations/onunhandledrejection.d.ts +6 -1
- package/types/integrations/onunhandledrejection.d.ts.map +1 -1
- package/types/integrations/spotlight.d.ts +12 -1
- package/types/integrations/spotlight.d.ts.map +1 -1
- package/types/integrations/undici/index.d.ts +9 -1
- package/types/integrations/undici/index.d.ts.map +1 -1
- package/types/sdk.d.ts +1 -12
- package/types/sdk.d.ts.map +1 -1
- package/types-ts3.8/index.d.ts +15 -5
- package/types-ts3.8/integrations/anr/index.d.ts +4 -0
- package/types-ts3.8/integrations/console.d.ts +6 -1
- package/types-ts3.8/integrations/context.d.ts +13 -1
- package/types-ts3.8/integrations/contextlines.d.ts +16 -1
- package/types-ts3.8/integrations/hapi/index.d.ts +4 -1
- package/types-ts3.8/integrations/http.d.ts +37 -1
- package/types-ts3.8/integrations/local-variables/index.d.ts +6 -1
- package/types-ts3.8/integrations/local-variables/local-variables-async.d.ts +5 -1
- package/types-ts3.8/integrations/local-variables/local-variables-sync.d.ts +4 -1
- package/types-ts3.8/integrations/modules.d.ts +6 -1
- package/types-ts3.8/integrations/onuncaughtexception.d.ts +6 -1
- package/types-ts3.8/integrations/onunhandledrejection.d.ts +6 -1
- package/types-ts3.8/integrations/spotlight.d.ts +12 -1
- package/types-ts3.8/integrations/undici/index.d.ts +9 -1
- package/types-ts3.8/sdk.d.ts +1 -12
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,OAAO,EACP,KAAK,EACL,SAAS,EACT,SAAS,EACT,OAAO,EAEP,QAAQ,EACR,aAAa,EACb,IAAI,EACJ,UAAU,EACV,UAAU,EACV,MAAM,EACN,WAAW,EACX,IAAI,GACL,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,4BAA4B,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAE3F,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,EAEL,uBAAuB,EACvB,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,KAAK,EAEL,cAAc,EACd,eAAe,EAEf,sBAAsB,EACtB,KAAK,EAEL,oBAAoB,EACpB,iBAAiB,EAEjB,aAAa,EACb,SAAS,EACT,aAAa,EACb,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,GAAG,EAEH,WAAW,EAEX,QAAQ,EACR,gBAAgB,EAChB,mBAAmB,EACnB,KAAK,EAEL,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,QAAQ,EACR,SAAS,EACT,MAAM,EACN,OAAO,EACP,OAAO,EAEP,sBAAsB,EACtB,yBAAyB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import type { Client, Integration, IntegrationClass } from '@sentry/types';
|
|
2
2
|
import type { NodeClient } from '../../client';
|
|
3
3
|
import type { AnrIntegrationOptions } from './common';
|
|
4
|
+
export declare const anrIntegration: (options?: Partial<AnrIntegrationOptions> | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
4
5
|
/**
|
|
5
6
|
* Starts a thread to detect App Not Responding (ANR) events
|
|
6
7
|
*
|
|
7
8
|
* ANR detection requires Node 16.17.0 or later
|
|
9
|
+
*
|
|
10
|
+
* @deprecated Use `anrIntegration()` instead.
|
|
8
11
|
*/
|
|
9
12
|
export declare const Anr: IntegrationClass<Integration & {
|
|
10
13
|
setup: (client: NodeClient) => void;
|
|
11
14
|
}> & (new (options?: Partial<AnrIntegrationOptions>) => Integration & {
|
|
12
15
|
setup(client: Client): void;
|
|
13
16
|
});
|
|
17
|
+
export type Anr = typeof Anr;
|
|
14
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/anr/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAA8B,WAAW,EAAE,gBAAgB,EAAiB,MAAM,eAAe,CAAC;AAGtH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,qBAAqB,EAAmB,MAAM,UAAU,CAAC;AA8DvE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/anr/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAA8B,WAAW,EAAE,gBAAgB,EAAiB,MAAM,eAAe,CAAC;AAGtH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,qBAAqB,EAAmB,MAAM,UAAU,CAAC;AA8DvE,eAAO,MAAM,cAAc,uGAAqC,CAAC;AAEjE;;;;;;GAMG;AAEH,eAAO,MAAM,GAAG;oBACkB,UAAU,KAAK,IAAI;qBAEpC,QAAQ,qBAAqB,CAAC;kBAAiC,MAAM,GAAG,IAAI;EAC5F,CAAC;AAGF,MAAM,MAAM,GAAG,GAAG,OAAO,GAAG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legacy.d.ts","sourceRoot":"","sources":["../../../../src/integrations/anr/legacy.ts"],"names":[],"mappings":"AAMA,UAAU,aAAa;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,KAAK,EAAE,OAAO,CAAC;CAChB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"legacy.d.ts","sourceRoot":"","sources":["../../../../src/integrations/anr/legacy.ts"],"names":[],"mappings":"AAMA,UAAU,aAAa;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,KAAK,EAAE,OAAO,CAAC;CAChB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAMjF"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { Client, Integration, IntegrationClass } from '@sentry/types';
|
|
2
|
-
|
|
2
|
+
export declare const consoleIntegration: () => import("@sentry/types").IntegrationFnResult;
|
|
3
|
+
/**
|
|
4
|
+
* Console module integration.
|
|
5
|
+
* @deprecated Use `consoleIntegration()` instead.
|
|
6
|
+
*/
|
|
3
7
|
export declare const Console: IntegrationClass<Integration & {
|
|
4
8
|
setup: (client: Client) => void;
|
|
5
9
|
}>;
|
|
10
|
+
export type Console = typeof Console;
|
|
6
11
|
//# sourceMappingURL=console.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../../src/integrations/console.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAiB,MAAM,eAAe,CAAC;AAgC1F,
|
|
1
|
+
{"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../../src/integrations/console.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAiB,MAAM,eAAe,CAAC;AAgC1F,eAAO,MAAM,kBAAkB,mDAAyC,CAAC;AAEzE;;;GAGG;AAEH,eAAO,MAAM,OAAO;oBACc,MAAM,KAAK,IAAI;EAChD,CAAC;AAGF,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC"}
|
|
@@ -8,7 +8,18 @@ interface DeviceContextOptions {
|
|
|
8
8
|
cpu?: boolean;
|
|
9
9
|
memory?: boolean;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
interface ContextOptions {
|
|
12
|
+
app?: boolean;
|
|
13
|
+
os?: boolean;
|
|
14
|
+
device?: DeviceContextOptions | boolean;
|
|
15
|
+
culture?: boolean;
|
|
16
|
+
cloudResource?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const nodeContextIntegration: (options?: ContextOptions | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
19
|
+
/**
|
|
20
|
+
* Add node modules / packages to the event.
|
|
21
|
+
* @deprecated Use `nodeContextIntegration()` instead.
|
|
22
|
+
*/
|
|
12
23
|
export declare const Context: IntegrationClass<Integration & {
|
|
13
24
|
processEvent: (event: Event) => Promise<Event>;
|
|
14
25
|
}> & (new (options?: {
|
|
@@ -21,6 +32,7 @@ export declare const Context: IntegrationClass<Integration & {
|
|
|
21
32
|
culture?: boolean;
|
|
22
33
|
cloudResource?: boolean;
|
|
23
34
|
}) => Integration);
|
|
35
|
+
export type Context = typeof Context;
|
|
24
36
|
/**
|
|
25
37
|
* Gets device information from os
|
|
26
38
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/integrations/context.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AACvC,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAIzB,OAAO,KAAK,EAKV,aAAa,EACb,KAAK,EACL,WAAW,EACX,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AAGvB,eAAO,MAAM,aAAa,+BAAsB,CAAC;AACjD,eAAO,MAAM,YAAY,8BAAqB,CAAC;AAI/C,UAAU,oBAAoB;IAC5B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/integrations/context.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AACvC,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAIzB,OAAO,KAAK,EAKV,aAAa,EACb,KAAK,EACL,WAAW,EACX,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AAGvB,eAAO,MAAM,aAAa,+BAAsB,CAAC;AACjD,eAAO,MAAM,YAAY,8BAAqB,CAAC;AAI/C,UAAU,oBAAoB;IAC5B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,UAAU,cAAc;IACtB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,MAAM,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC;IACxC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AA2ED,eAAO,MAAM,sBAAsB,uFAA6C,CAAC;AAEjF;;;GAGG;AAEH,eAAO,MAAM,OAAO;0BACoB,KAAK,KAAK,QAAQ,KAAK,CAAC;qBAE/C;IACb,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,MAAM,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,OAAO,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,KAAG,WAAW,CAChB,CAAC;AAGF,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC;AAmFrC;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,oBAAoB,GAAG,IAAI,GAAG,aAAa,CAqCtF"}
|
|
@@ -4,10 +4,25 @@ import type { Event, Integration, IntegrationClass } from '@sentry/types';
|
|
|
4
4
|
* @hidden
|
|
5
5
|
*/
|
|
6
6
|
export declare function resetFileContentCache(): void;
|
|
7
|
-
|
|
7
|
+
interface ContextLinesOptions {
|
|
8
|
+
/**
|
|
9
|
+
* Sets the number of context lines for each frame when loading a file.
|
|
10
|
+
* Defaults to 7.
|
|
11
|
+
*
|
|
12
|
+
* Set to 0 to disable loading and inclusion of source files.
|
|
13
|
+
**/
|
|
14
|
+
frameContextLines?: number;
|
|
15
|
+
}
|
|
16
|
+
export declare const contextLinesIntegration: (options?: ContextLinesOptions | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
17
|
+
/**
|
|
18
|
+
* Add node modules / packages to the event.
|
|
19
|
+
* @deprecated Use `contextLinesIntegration()` instead.
|
|
20
|
+
*/
|
|
8
21
|
export declare const ContextLines: IntegrationClass<Integration & {
|
|
9
22
|
processEvent: (event: Event) => Promise<Event>;
|
|
10
23
|
}> & (new (options?: {
|
|
11
24
|
frameContextLines?: number;
|
|
12
25
|
}) => Integration);
|
|
26
|
+
export type ContextLines = typeof ContextLines;
|
|
27
|
+
export {};
|
|
13
28
|
//# sourceMappingURL=contextlines.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contextlines.d.ts","sourceRoot":"","sources":["../../../src/integrations/contextlines.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAA6B,MAAM,eAAe,CAAC;AAiBrG;;;GAGG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C;
|
|
1
|
+
{"version":3,"file":"contextlines.d.ts","sourceRoot":"","sources":["../../../src/integrations/contextlines.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAA6B,MAAM,eAAe,CAAC;AAiBrG;;;GAGG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C;AAED,UAAU,mBAAmB;IAC3B;;;;;QAKI;IACJ,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAeD,eAAO,MAAM,uBAAuB,4FAA8C,CAAC;AAEnF;;;GAGG;AAEH,eAAO,MAAM,YAAY;0BACe,KAAK,KAAK,QAAQ,KAAK,CAAC;qBAC3C;IAAE,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAAE,KAAG,WAAW,CAAE,CAAC;AAoEpE,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC"}
|
|
@@ -12,8 +12,11 @@ export type HapiOptions = {
|
|
|
12
12
|
/** Hapi server instance */
|
|
13
13
|
server?: Record<any, any>;
|
|
14
14
|
};
|
|
15
|
+
export declare const hapiIntegration: (options?: HapiOptions | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
15
16
|
/**
|
|
16
|
-
* Hapi Framework Integration
|
|
17
|
+
* Hapi Framework Integration.
|
|
18
|
+
* @deprecated Use `hapiIntegration()` instead.
|
|
17
19
|
*/
|
|
18
20
|
export declare const Hapi: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration>;
|
|
21
|
+
export type Hapi = typeof Hapi;
|
|
19
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hapi/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hapi/index.ts"],"names":[],"mappings":"AA0CA,eAAO,MAAM,eAAe;;;0BAIW,OAAO,GAAG,EAAE,GAAG,CAAC;CAmBtD,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;0BAIS,OAAO,GAAG,EAAE,GAAG,CAAC;CA6DtD,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,2BAA2B;IAE3B,MAAM,CAAC,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;CAC3B,CAAC;AA0BF,eAAO,MAAM,eAAe,oFAAsC,CAAC;AAEnE;;;GAGG;AAEH,eAAO,MAAM,IAAI,+EAAiE,CAAC;AAGnF,MAAM,MAAM,IAAI,GAAG,OAAO,IAAI,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Hub } from '@sentry/core';
|
|
2
|
-
import type { EventProcessor, Integration, TracePropagationTargets } from '@sentry/types';
|
|
2
|
+
import type { ClientOptions, EventProcessor, Integration, IntegrationFnResult, TracePropagationTargets } from '@sentry/types';
|
|
3
|
+
import type { NodeClientOptions } from '../types';
|
|
3
4
|
interface TracingOptions {
|
|
4
5
|
/**
|
|
5
6
|
* List of strings/regex controlling to which outgoing requests
|
|
@@ -24,6 +25,11 @@ interface TracingOptions {
|
|
|
24
25
|
* By default, spans will be created for all outgoing requests.
|
|
25
26
|
*/
|
|
26
27
|
shouldCreateSpanForRequest?: (url: string) => boolean;
|
|
28
|
+
/**
|
|
29
|
+
* This option is just for compatibility with v7.
|
|
30
|
+
* In v8, this will be the default behavior.
|
|
31
|
+
*/
|
|
32
|
+
enableIfHasTracingEnabled?: boolean;
|
|
27
33
|
}
|
|
28
34
|
interface HttpOptions {
|
|
29
35
|
/**
|
|
@@ -37,9 +43,35 @@ interface HttpOptions {
|
|
|
37
43
|
*/
|
|
38
44
|
tracing?: TracingOptions | boolean;
|
|
39
45
|
}
|
|
46
|
+
interface HttpIntegrationOptions {
|
|
47
|
+
/**
|
|
48
|
+
* Whether breadcrumbs should be recorded for requests
|
|
49
|
+
* Defaults to true.
|
|
50
|
+
*/
|
|
51
|
+
breadcrumbs?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Whether tracing spans should be created for requests
|
|
54
|
+
* If not set, this will be enabled/disabled based on if tracing is enabled.
|
|
55
|
+
*/
|
|
56
|
+
tracing?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Function determining whether or not to create spans to track outgoing requests to the given URL.
|
|
59
|
+
* By default, spans will be created for all outgoing requests.
|
|
60
|
+
*/
|
|
61
|
+
shouldCreateSpanForRequest?: (url: string) => boolean;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The http module integration instruments Node's internal http module. It creates breadcrumbs, spans for outgoing
|
|
65
|
+
* http requests, and attaches trace data when tracing is enabled via its `tracing` option.
|
|
66
|
+
*
|
|
67
|
+
* By default, this will always create breadcrumbs, and will create spans if tracing is enabled.
|
|
68
|
+
*/
|
|
69
|
+
export declare const httpIntegration: (options?: HttpIntegrationOptions | undefined) => IntegrationFnResult;
|
|
40
70
|
/**
|
|
41
71
|
* The http module integration instruments Node's internal http module. It creates breadcrumbs, transactions for outgoing
|
|
42
72
|
* http requests and attaches trace data when tracing is enabled via its `tracing` option.
|
|
73
|
+
*
|
|
74
|
+
* @deprecated Use `httpIntegration()` instead.
|
|
43
75
|
*/
|
|
44
76
|
export declare class Http implements Integration {
|
|
45
77
|
/**
|
|
@@ -61,5 +93,9 @@ export declare class Http implements Integration {
|
|
|
61
93
|
*/
|
|
62
94
|
setupOnce(_addGlobalEventProcessor: (callback: EventProcessor) => void, setupOnceGetCurrentHub: () => Hub): void;
|
|
63
95
|
}
|
|
96
|
+
/** Exported for tests only. */
|
|
97
|
+
export declare function _shouldCreateSpans(tracingOptions: TracingOptions | undefined, clientOptions: Partial<ClientOptions> | undefined): boolean;
|
|
98
|
+
/** Exported for tests only. */
|
|
99
|
+
export declare function _getShouldCreateSpanForRequest(shouldCreateSpans: boolean, tracingOptions: TracingOptions | undefined, clientOptions: Partial<NodeClientOptions> | undefined): undefined | ((url: string) => boolean);
|
|
64
100
|
export {};
|
|
65
101
|
//# sourceMappingURL=http.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/integrations/http.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/integrations/http.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAexC,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,WAAW,EAEX,mBAAmB,EAEnB,uBAAuB,EACxB,MAAM,eAAe,CAAC;AAcvB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAIlD,UAAU,cAAc;IACtB;;;;;;;;;;;;;;;;OAgBG;IACH,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;IAElD;;;OAGG;IACH,0BAA0B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IAEtD;;;OAGG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED,UAAU,WAAW;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;CACpC;AAGD,UAAU,sBAAsB;IAC9B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,0BAA0B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;CACvD;AAqBD;;;;;GAKG;AACH,eAAO,MAAM,eAAe,uEAAsC,CAAC;AAEnE;;;;;GAKG;AACH,qBAAa,IAAK,YAAW,WAAW;IACtC;;OAEG;IACH,OAAc,EAAE,EAAE,MAAM,CAAU;IAElC;;OAEG;IAEI,IAAI,EAAE,MAAM,CAAW;IAE9B,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAU;IACvC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA6B;IAEtD;;OAEG;gBACgB,OAAO,GAAE,WAAgB;IAK5C;;OAEG;IACI,SAAS,CACd,wBAAwB,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,IAAI,EAC5D,sBAAsB,EAAE,MAAM,GAAG,GAChC,IAAI;CAmDR;AA8OD,+BAA+B;AAC/B,wBAAgB,kBAAkB,CAChC,cAAc,EAAE,cAAc,GAAG,SAAS,EAC1C,aAAa,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,SAAS,GAChD,OAAO,CAMT;AAED,+BAA+B;AAC/B,wBAAgB,8BAA8B,CAC5C,iBAAiB,EAAE,OAAO,EAC1B,cAAc,EAAE,cAAc,GAAG,SAAS,EAC1C,aAAa,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,SAAS,GACpD,SAAS,GAAG,CAAC,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,CAOxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import { LocalVariablesSync } from './local-variables-sync';
|
|
1
2
|
/**
|
|
2
|
-
* Adds local variables to exception frames
|
|
3
|
+
* Adds local variables to exception frames.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated Use `localVariablesIntegration()` instead.
|
|
3
6
|
*/
|
|
4
7
|
export declare const LocalVariables: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
|
|
5
8
|
processEvent: (event: import("@sentry/types").Event) => import("@sentry/types").Event;
|
|
6
9
|
setup: (client: import("../..").NodeClient) => void;
|
|
7
10
|
}> & (new (options?: import("./common").LocalVariablesIntegrationOptions | undefined, session?: import("./local-variables-sync").DebugSession | undefined) => import("@sentry/types").Integration);
|
|
11
|
+
export type LocalVariables = LocalVariablesSync;
|
|
12
|
+
export declare const localVariablesIntegration: (options?: import("./common").LocalVariablesIntegrationOptions | undefined, session?: import("./local-variables-sync").DebugSession | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
8
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/local-variables/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/local-variables/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAiC,MAAM,wBAAwB,CAAC;AAE3F;;;;GAIG;AAEH,eAAO,MAAM,cAAc;;;kMAAqB,CAAC;AAEjD,MAAM,MAAM,cAAc,GAAG,kBAAkB,CAAC;AAEhD,eAAO,MAAM,yBAAyB,iMAAgC,CAAC"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import type { Event, Integration, IntegrationClass } from '@sentry/types';
|
|
2
2
|
import type { NodeClient } from '../../client';
|
|
3
|
+
import type { LocalVariablesIntegrationOptions } from './common';
|
|
4
|
+
export declare const localVariablesAsyncIntegration: (options?: LocalVariablesIntegrationOptions | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
3
5
|
/**
|
|
4
|
-
* Adds local variables to exception frames
|
|
6
|
+
* Adds local variables to exception frames.
|
|
7
|
+
* @deprecated Use `localVariablesAsyncIntegration()` instead.
|
|
5
8
|
*/
|
|
6
9
|
export declare const LocalVariablesAsync: IntegrationClass<Integration & {
|
|
7
10
|
processEvent: (event: Event) => Event;
|
|
8
11
|
setup: (client: NodeClient) => void;
|
|
9
12
|
}>;
|
|
13
|
+
export type LocalVariablesAsync = typeof LocalVariablesAsync;
|
|
10
14
|
//# sourceMappingURL=local-variables-async.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-variables-async.d.ts","sourceRoot":"","sources":["../../../../src/integrations/local-variables/local-variables-async.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAa,WAAW,EAAE,gBAAgB,EAA8B,MAAM,eAAe,CAAC;AAIjH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"local-variables-async.d.ts","sourceRoot":"","sources":["../../../../src/integrations/local-variables/local-variables-async.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAa,WAAW,EAAE,gBAAgB,EAA8B,MAAM,eAAe,CAAC;AAIjH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAEV,gCAAgC,EAIjC,MAAM,UAAU,CAAC;AAiPlB,eAAO,MAAM,8BAA8B,yGAAqD,CAAC;AAEjG;;;GAGG;AAEH,eAAO,MAAM,mBAAmB;0BAG4B,KAAK,KAAK,KAAK;oBAAkB,UAAU,KAAK,IAAI;EAAG,CAAC;AAGpH,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC"}
|
|
@@ -19,12 +19,15 @@ type CallbackWrapper<T> = {
|
|
|
19
19
|
};
|
|
20
20
|
/** Creates a container for callbacks to be called sequentially */
|
|
21
21
|
export declare function createCallbackList<T>(complete: Next<T>): CallbackWrapper<T>;
|
|
22
|
+
export declare const localVariablesSyncIntegration: (options?: LocalVariablesIntegrationOptions | undefined, session?: DebugSession | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
22
23
|
/**
|
|
23
|
-
* Adds local variables to exception frames
|
|
24
|
+
* Adds local variables to exception frames.
|
|
25
|
+
* @deprecated Use `localVariablesSyncIntegration()` instead.
|
|
24
26
|
*/
|
|
25
27
|
export declare const LocalVariablesSync: IntegrationClass<Integration & {
|
|
26
28
|
processEvent: (event: Event) => Event;
|
|
27
29
|
setup: (client: NodeClient) => void;
|
|
28
30
|
}> & (new (options?: LocalVariablesIntegrationOptions, session?: DebugSession) => Integration);
|
|
31
|
+
export type LocalVariablesSync = typeof LocalVariablesSync;
|
|
29
32
|
export {};
|
|
30
33
|
//# sourceMappingURL=local-variables-sync.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-variables-sync.d.ts","sourceRoot":"","sources":["../../../../src/integrations/local-variables/local-variables-sync.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAa,WAAW,EAAE,gBAAgB,EAA8B,MAAM,eAAe,CAAC;AAEjH,OAAO,KAAK,EAAE,QAAQ,EAAE,qBAAqB,EAAoB,MAAM,WAAW,CAAC;AACnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,KAAK,EAEV,gCAAgC,EAGhC,SAAS,EACV,MAAM,UAAU,CAAC;AAGlB,KAAK,YAAY,GAAG,qBAAqB,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AACxE,MAAM,WAAW,YAAY;IAC3B,mDAAmD;IACnD,mBAAmB,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,IAAI,KAAK,IAAI,EAAE,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAC/G,kDAAkD;IAClD,oBAAoB,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAChD,2CAA2C;IAC3C,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,GAAG,IAAI,CAAC;CAChF;AAED,KAAK,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;AACnC,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AACpC,KAAK,eAAe,CAAC,CAAC,IAAI;IAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC;AAEzD,kEAAkE;AAClE,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAiC3E;AAyUD
|
|
1
|
+
{"version":3,"file":"local-variables-sync.d.ts","sourceRoot":"","sources":["../../../../src/integrations/local-variables/local-variables-sync.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAa,WAAW,EAAE,gBAAgB,EAA8B,MAAM,eAAe,CAAC;AAEjH,OAAO,KAAK,EAAE,QAAQ,EAAE,qBAAqB,EAAoB,MAAM,WAAW,CAAC;AACnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,KAAK,EAEV,gCAAgC,EAGhC,SAAS,EACV,MAAM,UAAU,CAAC;AAGlB,KAAK,YAAY,GAAG,qBAAqB,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AACxE,MAAM,WAAW,YAAY;IAC3B,mDAAmD;IACnD,mBAAmB,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,IAAI,KAAK,IAAI,EAAE,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAC/G,kDAAkD;IAClD,oBAAoB,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAChD,2CAA2C;IAC3C,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,GAAG,IAAI,CAAC;CAChF;AAED,KAAK,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;AACnC,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AACpC,KAAK,eAAe,CAAC,CAAC,IAAI;IAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC;AAEzD,kEAAkE;AAClE,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAiC3E;AAyUD,eAAO,MAAM,6BAA6B,6IAAoD,CAAC;AAE/F;;;GAGG;AAEH,eAAO,MAAM,kBAAkB;0BAG6B,KAAK,KAAK,KAAK;oBAAkB,UAAU,KAAK,IAAI;qBAC/F,gCAAgC,YAAY,YAAY,KAAG,WAAW,CACtF,CAAC;AAGF,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { Event, Integration, IntegrationClass } from '@sentry/types';
|
|
2
|
-
|
|
2
|
+
export declare const modulesIntegration: () => import("@sentry/types").IntegrationFnResult;
|
|
3
|
+
/**
|
|
4
|
+
* Add node modules / packages to the event.
|
|
5
|
+
* @deprecated Use `modulesIntegration()` instead.
|
|
6
|
+
*/
|
|
3
7
|
export declare const Modules: IntegrationClass<Integration & {
|
|
4
8
|
processEvent: (event: Event) => Event;
|
|
5
9
|
}>;
|
|
10
|
+
export type Modules = typeof Modules;
|
|
6
11
|
//# sourceMappingURL=modules.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../../../src/integrations/modules.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAiB,MAAM,eAAe,CAAC;AA2FzF
|
|
1
|
+
{"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../../../src/integrations/modules.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAiB,MAAM,eAAe,CAAC;AA2FzF,eAAO,MAAM,kBAAkB,mDAAyC,CAAC;AAEzE;;;GAGG;AAEH,eAAO,MAAM,OAAO;0BACoB,KAAK,KAAK,KAAK;EACtD,CAAC;AAGF,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC"}
|
|
@@ -19,13 +19,18 @@ interface OnUncaughtExceptionOptions {
|
|
|
19
19
|
*/
|
|
20
20
|
onFatalError?(this: void, firstError: Error, secondError?: Error): void;
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
export declare const onUncaughtExceptionIntegration: (options?: Partial<OnUncaughtExceptionOptions> | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
23
|
+
/**
|
|
24
|
+
* Global Exception handler.
|
|
25
|
+
* @deprecated Use `onUncaughtExceptionIntegration()` instead.
|
|
26
|
+
*/
|
|
23
27
|
export declare const OnUncaughtException: IntegrationClass<Integration & {
|
|
24
28
|
setup: (client: NodeClient) => void;
|
|
25
29
|
}> & (new (options?: Partial<{
|
|
26
30
|
exitEvenIfOtherHandlersAreRegistered: boolean;
|
|
27
31
|
onFatalError?(this: void, firstError: Error, secondError?: Error): void;
|
|
28
32
|
}> | undefined) => Integration);
|
|
33
|
+
export type OnUncaughtException = typeof OnUncaughtException;
|
|
29
34
|
type ErrorHandler = {
|
|
30
35
|
_errorHandler: boolean;
|
|
31
36
|
} & ((error: Error) => void);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onuncaughtexception.d.ts","sourceRoot":"","sources":["../../../src/integrations/onuncaughtexception.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAiB,MAAM,eAAe,CAAC;AAGlF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAW5C,UAAU,0BAA0B;IAIlC;;;;;;OAMG;IACH,oCAAoC,EAAE,OAAO,CAAC;IAE9C;;;;;;;OAOG;IACH,YAAY,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,WAAW,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CACzE;AAoBD
|
|
1
|
+
{"version":3,"file":"onuncaughtexception.d.ts","sourceRoot":"","sources":["../../../src/integrations/onuncaughtexception.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAiB,MAAM,eAAe,CAAC;AAGlF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAW5C,UAAU,0BAA0B;IAIlC;;;;;;OAMG;IACH,oCAAoC,EAAE,OAAO,CAAC;IAE9C;;;;;;;OAOG;IACH,YAAY,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,WAAW,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CACzE;AAoBD,eAAO,MAAM,8BAA8B,4GAAqD,CAAC;AAEjG;;;GAGG;AAEH,eAAO,MAAM,mBAAmB;oBAGsB,UAAU,KAAK,IAAI;;0CAG7B,OAAO;wBACzB,IAAI,cAAc,KAAK,gBAAgB,KAAK,GAAG,IAAI;mBAExE,WAAW,CACf,CAAC;AAGF,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC;AAE7D,KAAK,YAAY,GAAG;IAAE,aAAa,EAAE,OAAO,CAAA;CAAE,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC,CAAC;AAE1E,8BAA8B;AAC9B,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,0BAA0B,GAAG,YAAY,CA0GtG"}
|
|
@@ -7,12 +7,17 @@ interface OnUnhandledRejectionOptions {
|
|
|
7
7
|
*/
|
|
8
8
|
mode: UnhandledRejectionMode;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
export declare const onUnhandledRejectionIntegration: (options?: Partial<OnUnhandledRejectionOptions> | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
11
|
+
/**
|
|
12
|
+
* Global Promise Rejection handler.
|
|
13
|
+
* @deprecated Use `onUnhandledRejectionIntegration()` instead.
|
|
14
|
+
*/
|
|
11
15
|
export declare const OnUnhandledRejection: IntegrationClass<Integration & {
|
|
12
16
|
setup: (client: Client) => void;
|
|
13
17
|
}> & (new (options?: Partial<{
|
|
14
18
|
mode: UnhandledRejectionMode;
|
|
15
19
|
}>) => Integration);
|
|
20
|
+
export type OnUnhandledRejection = typeof OnUnhandledRejection;
|
|
16
21
|
/**
|
|
17
22
|
* Send an exception with reason
|
|
18
23
|
* @param reason string
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onunhandledrejection.d.ts","sourceRoot":"","sources":["../../../src/integrations/onunhandledrejection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAiB,MAAM,eAAe,CAAC;AAK1F,KAAK,sBAAsB,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEzD,UAAU,2BAA2B;IACnC;;;OAGG;IACH,IAAI,EAAE,sBAAsB,CAAC;CAC9B;AAiBD,
|
|
1
|
+
{"version":3,"file":"onunhandledrejection.d.ts","sourceRoot":"","sources":["../../../src/integrations/onunhandledrejection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAiB,MAAM,eAAe,CAAC;AAK1F,KAAK,sBAAsB,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEzD,UAAU,2BAA2B;IACnC;;;OAGG;IACH,IAAI,EAAE,sBAAsB,CAAC;CAC9B;AAiBD,eAAO,MAAM,+BAA+B,6GAAsD,CAAC;AAEnG;;;GAGG;AAEH,eAAO,MAAM,oBAAoB;oBAGqB,MAAM,KAAK,IAAI;qBACpD,QAAQ;IAAE,IAAI,EAAE,sBAAsB,CAAA;CAAE,CAAC,KAAG,WAAW,CACvE,CAAC;AAGF,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC;AAE/D;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,2BAA2B,GACnC,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAmB7C"}
|
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
import * as http from 'http';
|
|
2
2
|
import type { Client, Integration, IntegrationClass } from '@sentry/types';
|
|
3
|
+
type SpotlightConnectionOptions = {
|
|
4
|
+
/**
|
|
5
|
+
* Set this if the Spotlight Sidecar is not running on localhost:8969
|
|
6
|
+
* By default, the Url is set to http://localhost:8969/stream
|
|
7
|
+
*/
|
|
8
|
+
sidecarUrl?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const spotlightIntegration: (options?: Partial<SpotlightConnectionOptions> | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
3
11
|
/**
|
|
4
12
|
* Use this integration to send errors and transactions to Spotlight.
|
|
5
13
|
*
|
|
6
14
|
* Learn more about spotlight at https://spotlightjs.com
|
|
7
15
|
*
|
|
8
|
-
* Important: This integration only works with Node 18 or newer
|
|
16
|
+
* Important: This integration only works with Node 18 or newer.
|
|
17
|
+
*
|
|
18
|
+
* @deprecated Use `spotlightIntegration()` instead.
|
|
9
19
|
*/
|
|
10
20
|
export declare const Spotlight: IntegrationClass<Integration & {
|
|
11
21
|
setup: (client: Client) => void;
|
|
12
22
|
}> & (new (options?: Partial<{
|
|
13
23
|
sidecarUrl?: string;
|
|
14
24
|
}>) => Integration);
|
|
25
|
+
export type Spotlight = typeof Spotlight;
|
|
15
26
|
type HttpRequestImpl = typeof http.request;
|
|
16
27
|
/**
|
|
17
28
|
* We want to get an unpatched http request implementation to avoid capturing our own calls.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spotlight.d.ts","sourceRoot":"","sources":["../../../src/integrations/spotlight.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAG7B,OAAO,KAAK,EAAE,MAAM,EAAY,WAAW,EAAE,gBAAgB,EAAiB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"spotlight.d.ts","sourceRoot":"","sources":["../../../src/integrations/spotlight.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAG7B,OAAO,KAAK,EAAE,MAAM,EAAY,WAAW,EAAE,gBAAgB,EAAiB,MAAM,eAAe,CAAC;AAGpG,KAAK,0BAA0B,GAAG;IAChC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAsBF,eAAO,MAAM,oBAAoB,4GAA2C,CAAC;AAE7E;;;;;;;;GAQG;AAEH,eAAO,MAAM,SAAS;oBACY,MAAM,KAAK,IAAI;qBAGnC,QAAQ;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC,KACD,WAAW,CACf,CAAC;AAGF,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC;AAgEzC,KAAK,eAAe,GAAG,OAAO,IAAI,CAAC,OAAO,CAAC;AAG3C;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,eAAe,CAOtD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EventProcessor, Integration } from '@sentry/types';
|
|
1
|
+
import type { EventProcessor, Integration, IntegrationFnResult } from '@sentry/types';
|
|
2
2
|
export declare enum ChannelName {
|
|
3
3
|
RequestCreate = "undici:request:create",
|
|
4
4
|
RequestEnd = "undici:request:headers",
|
|
@@ -10,12 +10,18 @@ export interface UndiciOptions {
|
|
|
10
10
|
* Defaults to true
|
|
11
11
|
*/
|
|
12
12
|
breadcrumbs: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Whether tracing spans should be created for requests
|
|
15
|
+
* If not set, this will be enabled/disabled based on if tracing is enabled.
|
|
16
|
+
*/
|
|
17
|
+
tracing?: boolean;
|
|
13
18
|
/**
|
|
14
19
|
* Function determining whether or not to create spans to track outgoing requests to the given URL.
|
|
15
20
|
* By default, spans will be created for all outgoing requests.
|
|
16
21
|
*/
|
|
17
22
|
shouldCreateSpanForRequest?: (url: string) => boolean;
|
|
18
23
|
}
|
|
24
|
+
export declare const nativeNodeFetchintegration: (options?: Partial<UndiciOptions> | undefined) => IntegrationFnResult;
|
|
19
25
|
/**
|
|
20
26
|
* Instruments outgoing HTTP requests made with the `undici` package via
|
|
21
27
|
* Node's `diagnostics_channel` API.
|
|
@@ -23,6 +29,8 @@ export interface UndiciOptions {
|
|
|
23
29
|
* Supports Undici 4.7.0 or higher.
|
|
24
30
|
*
|
|
25
31
|
* Requires Node 16.17.0 or higher.
|
|
32
|
+
*
|
|
33
|
+
* @deprecated Use `nativeNodeFetchintegration()` instead.
|
|
26
34
|
*/
|
|
27
35
|
export declare class Undici implements Integration {
|
|
28
36
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/undici/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/undici/index.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAiB,mBAAmB,EAAQ,MAAM,eAAe,CAAC;AAoB3G,oBAAY,WAAW;IAErB,aAAa,0BAA0B;IACvC,UAAU,2BAA2B;IACrC,YAAY,yBAAyB;CACtC;AAED,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,0BAA0B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;CACvD;AAoBD,eAAO,MAAM,0BAA0B,uEAAiD,CAAC;AAEzF;;;;;;;;;GASG;AACH,qBAAa,MAAO,YAAW,WAAW;IACxC;;OAEG;IACH,OAAc,EAAE,EAAE,MAAM,CAAY;IAEpC;;OAEG;IAEI,IAAI,EAAE,MAAM,CAAa;IAEhC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAgB;IAEzC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAA4C;IAC9E,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA4C;gBAExD,QAAQ,GAAE,OAAO,CAAC,aAAa,CAAM;IAQxD;;OAEG;IACI,SAAS,CAAC,wBAAwB,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,IAAI,GAAG,IAAI;IAwBpF,0DAA0D;IAC1D,OAAO,CAAC,iBAAiB;IAmBzB,OAAO,CAAC,gBAAgB,CA6DtB;IAEF,OAAO,CAAC,aAAa,CAsCnB;IAEF,OAAO,CAAC,eAAe,CAqCrB;CACH"}
|
package/types/sdk.d.ts
CHANGED
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
import type { Integration, Options, StackParser } from '@sentry/types';
|
|
2
2
|
import { NodeClient } from './client';
|
|
3
|
-
import { Http, Undici } from './integrations';
|
|
4
3
|
import type { NodeOptions } from './types';
|
|
5
4
|
/** @deprecated Use `getDefaultIntegrations(options)` instead. */
|
|
6
|
-
export declare const defaultIntegrations: (
|
|
7
|
-
setup: (client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => void;
|
|
8
|
-
}) | Http | (Integration & {
|
|
9
|
-
processEvent: (event: import("@sentry/types").Event) => Promise<import("@sentry/types").Event>;
|
|
10
|
-
}) | Undici | (Integration & {
|
|
11
|
-
preprocessEvent: (event: import("@sentry/types").Event, hint: import("@sentry/types").EventHint, client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => void;
|
|
12
|
-
}) | (Integration & {
|
|
13
|
-
setupOnce: () => void;
|
|
14
|
-
}) | (Integration & {
|
|
15
|
-
processEvent: (event: import("@sentry/types").Event, hint: import("@sentry/types").EventHint, client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => import("@sentry/types").Event;
|
|
16
|
-
}))[];
|
|
5
|
+
export declare const defaultIntegrations: import("@sentry/types").IntegrationFnResult[];
|
|
17
6
|
/** Get the default integrations for the Node SDK. */
|
|
18
7
|
export declare function getDefaultIntegrations(_options: Options): Integration[];
|
|
19
8
|
/**
|
package/types/sdk.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/sdk.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/sdk.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAiB,WAAW,EAAE,MAAM,eAAe,CAAC;AAUtF,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAatC,OAAO,KAAK,EAAqB,WAAW,EAAE,MAAM,SAAS,CAAC;AAE9D,iEAAiE;AACjE,eAAO,MAAM,mBAAmB,+CAkB/B,CAAC;AAEF,qDAAqD;AACrD,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,OAAO,GAAG,WAAW,EAAE,CAUvE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAEH,wBAAgB,IAAI,CAAC,OAAO,GAAE,WAAgB,GAAG,IAAI,CAuEpD;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,OAAO,CASzE;AAED;;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-ts3.8/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Breadcrumb, BreadcrumbHint, PolymorphicRequest, Request, SdkInfo, Event, EventHint, Exception, Session, Severity, SeverityLevel, Span, StackFrame, Stacktrace, Thread, Transaction, User, } from '@sentry/types';
|
|
2
2
|
export { AddRequestDataToEventOptions, TransactionNamingScheme } from '@sentry/utils';
|
|
3
3
|
export { NodeOptions } from './types';
|
|
4
|
-
export { addGlobalEventProcessor, addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, close, configureScope, createTransport, extractTraceparentData, flush, getActiveTransaction, getHubFromCarrier, getCurrentHub, getClient, isInitialized, getCurrentScope, getGlobalScope, getIsolationScope, Hub, lastEventId, makeMain, setCurrentClient, runWithAsyncContext, Scope, startTransaction, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, spanStatusfromHttpCode, getSpanStatusFromHttpCode, trace, withScope, withIsolationScope, captureCheckIn, withMonitor, setMeasurement, getActiveSpan, startSpan, startActiveSpan, startInactiveSpan, startSpanManual, continueTrace, parameterize, metrics, functionToStringIntegration, inboundFiltersIntegration, linkedErrorsIntegration, requestDataIntegration, } from '@sentry/core';
|
|
4
|
+
export { addGlobalEventProcessor, addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, close, configureScope, createTransport, extractTraceparentData, flush, getActiveTransaction, getHubFromCarrier, getCurrentHub, getClient, isInitialized, getCurrentScope, getGlobalScope, getIsolationScope, Hub, lastEventId, makeMain, setCurrentClient, runWithAsyncContext, Scope, startTransaction, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, spanStatusfromHttpCode, getSpanStatusFromHttpCode, setHttpStatus, trace, withScope, withIsolationScope, captureCheckIn, withMonitor, setMeasurement, getActiveSpan, startSpan, startActiveSpan, startInactiveSpan, startSpanManual, continueTrace, parameterize, metrics, functionToStringIntegration, inboundFiltersIntegration, linkedErrorsIntegration, requestDataIntegration, } from '@sentry/core';
|
|
5
5
|
export { SpanStatusType } from '@sentry/core';
|
|
6
6
|
export { autoDiscoverNodePerformanceMonitoringIntegrations } from './tracing';
|
|
7
7
|
export { NodeClient } from './client';
|
|
@@ -19,7 +19,7 @@ export { enableAnrDetection } from './integrations/anr/legacy';
|
|
|
19
19
|
import * as Handlers from './handlers';
|
|
20
20
|
import * as NodeIntegrations from './integrations';
|
|
21
21
|
import * as TracingIntegrations from './tracing/integrations';
|
|
22
|
-
declare const
|
|
22
|
+
export declare const Integrations: {
|
|
23
23
|
Apollo: typeof TracingIntegrations.Apollo;
|
|
24
24
|
Express: typeof TracingIntegrations.Express;
|
|
25
25
|
GraphQL: typeof TracingIntegrations.GraphQL;
|
|
@@ -117,12 +117,22 @@ declare const INTEGRATIONS: {
|
|
|
117
117
|
limit?: number | undefined;
|
|
118
118
|
} | undefined) => import("@sentry/types").Integration);
|
|
119
119
|
};
|
|
120
|
+
export { consoleIntegration } from './integrations/console';
|
|
121
|
+
export { onUncaughtExceptionIntegration } from './integrations/onuncaughtexception';
|
|
122
|
+
export { onUnhandledRejectionIntegration } from './integrations/onunhandledrejection';
|
|
123
|
+
export { modulesIntegration } from './integrations/modules';
|
|
124
|
+
export { contextLinesIntegration } from './integrations/contextlines';
|
|
125
|
+
export { nodeContextIntegration } from './integrations/context';
|
|
126
|
+
export { localVariablesIntegration } from './integrations/local-variables';
|
|
127
|
+
export { spotlightIntegration } from './integrations/spotlight';
|
|
128
|
+
export { anrIntegration } from './integrations/anr';
|
|
129
|
+
export { hapiIntegration } from './integrations/hapi';
|
|
130
|
+
export { Undici, nativeNodeFetchintegration } from './integrations/undici';
|
|
131
|
+
export { Http, httpIntegration } from './integrations/http';
|
|
120
132
|
export { LocalVariablesIntegrationOptions } from './integrations/local-variables/common';
|
|
121
133
|
export { DebugSession } from './integrations/local-variables/local-variables-sync';
|
|
122
134
|
export { AnrIntegrationOptions } from './integrations/anr/common';
|
|
123
|
-
export {
|
|
124
|
-
export { Http } from './integrations/http';
|
|
125
|
-
export { INTEGRATIONS as Integrations, Handlers };
|
|
135
|
+
export { Handlers };
|
|
126
136
|
export { hapiErrorPlugin } from './integrations/hapi';
|
|
127
137
|
import { instrumentCron } from './cron/cron';
|
|
128
138
|
import { instrumentNodeCron } from './cron/node-cron';
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { Client, Integration, IntegrationClass } from '@sentry/types';
|
|
2
2
|
import { NodeClient } from '../../client';
|
|
3
3
|
import { AnrIntegrationOptions } from './common';
|
|
4
|
+
export declare const anrIntegration: (options?: Partial<AnrIntegrationOptions> | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
4
5
|
/**
|
|
5
6
|
* Starts a thread to detect App Not Responding (ANR) events
|
|
6
7
|
*
|
|
7
8
|
* ANR detection requires Node 16.17.0 or later
|
|
9
|
+
*
|
|
10
|
+
* @deprecated Use `anrIntegration()` instead.
|
|
8
11
|
*/
|
|
9
12
|
export declare const Anr: IntegrationClass<Integration & {
|
|
10
13
|
setup: (client: NodeClient) => void;
|
|
11
14
|
}> & (new (options?: Partial<AnrIntegrationOptions>) => Integration & {
|
|
12
15
|
setup(client: Client): void;
|
|
13
16
|
});
|
|
17
|
+
export type Anr = typeof Anr;
|
|
14
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { Client, Integration, IntegrationClass } from '@sentry/types';
|
|
2
|
-
|
|
2
|
+
export declare const consoleIntegration: () => import("@sentry/types").IntegrationFnResult;
|
|
3
|
+
/**
|
|
4
|
+
* Console module integration.
|
|
5
|
+
* @deprecated Use `consoleIntegration()` instead.
|
|
6
|
+
*/
|
|
3
7
|
export declare const Console: IntegrationClass<Integration & {
|
|
4
8
|
setup: (client: Client) => void;
|
|
5
9
|
}>;
|
|
10
|
+
export type Console = typeof Console;
|
|
6
11
|
//# sourceMappingURL=console.d.ts.map
|
|
@@ -8,7 +8,18 @@ interface DeviceContextOptions {
|
|
|
8
8
|
cpu?: boolean;
|
|
9
9
|
memory?: boolean;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
interface ContextOptions {
|
|
12
|
+
app?: boolean;
|
|
13
|
+
os?: boolean;
|
|
14
|
+
device?: DeviceContextOptions | boolean;
|
|
15
|
+
culture?: boolean;
|
|
16
|
+
cloudResource?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const nodeContextIntegration: (options?: ContextOptions | undefined) => import("@sentry/types").IntegrationFnResult;
|
|
19
|
+
/**
|
|
20
|
+
* Add node modules / packages to the event.
|
|
21
|
+
* @deprecated Use `nodeContextIntegration()` instead.
|
|
22
|
+
*/
|
|
12
23
|
export declare const Context: IntegrationClass<Integration & {
|
|
13
24
|
processEvent: (event: Event) => Promise<Event>;
|
|
14
25
|
}> & (new (options?: {
|
|
@@ -21,6 +32,7 @@ export declare const Context: IntegrationClass<Integration & {
|
|
|
21
32
|
culture?: boolean;
|
|
22
33
|
cloudResource?: boolean;
|
|
23
34
|
}) => Integration);
|
|
35
|
+
export type Context = typeof Context;
|
|
24
36
|
/**
|
|
25
37
|
* Gets device information from os
|
|
26
38
|
*/
|