1 | import { BaseBackend } from '@sentry/core';
|
2 | import { Event, EventHint, Options, Severity, Transport } from '@sentry/types';
|
3 | /**
|
4 | * Configuration options for the Sentry Node SDK.
|
5 | * @see NodeClient for more information.
|
6 | */
|
7 | export interface NodeOptions extends Options {
|
8 | /** Callback that is executed when a fatal global error occurs. */
|
9 | onFatalError?(error: Error): void;
|
10 | /** Sets an optional server name (device name) */
|
11 | serverName?: string;
|
12 | /** Maximum time to wait to drain the request queue, before the process is allowed to exit. */
|
13 | shutdownTimeout?: number;
|
14 | /** Set a HTTP proxy that should be used for outbound requests. */
|
15 | httpProxy?: string;
|
16 | /** Set a HTTPS proxy that should be used for outbound requests. */
|
17 | httpsProxy?: string;
|
18 | /** HTTPS proxy certificates path */
|
19 | caCerts?: string;
|
20 | /** Sets the number of context lines for each frame when loading a file. */
|
21 | frameContextLines?: number;
|
22 | }
|
23 | /**
|
24 | * The Sentry Node SDK Backend.
|
25 | * @hidden
|
26 | */
|
27 | export declare class NodeBackend extends BaseBackend<NodeOptions> {
|
28 | /**
|
29 | * @inheritDoc
|
30 | */
|
31 | protected _setupTransport(): Transport;
|
32 | /**
|
33 | * @inheritDoc
|
34 | */
|
35 | eventFromException(exception: any, hint?: EventHint): PromiseLike<Event>;
|
36 | /**
|
37 | * @inheritDoc
|
38 | */
|
39 | eventFromMessage(message: string, level?: Severity, hint?: EventHint): PromiseLike<Event>;
|
40 | }
|
41 | //# sourceMappingURL=backend.d.ts.map |
\ | No newline at end of file |