UNPKG

908 BTypeScriptView Raw
1/// <reference types="node" />
2import type { BaseTransportOptions, Transport } from '@sentry/types';
3import type { HTTPModule } from './http-module';
4export interface NodeTransportOptions extends BaseTransportOptions {
5 /** Define custom headers */
6 headers?: Record<string, string>;
7 /** Set a proxy that should be used for outbound requests. */
8 proxy?: string;
9 /** HTTPS proxy CA certificates */
10 caCerts?: string | Buffer | Array<string | Buffer>;
11 /** Custom HTTP module. Defaults to the native 'http' and 'https' modules. */
12 httpModule?: HTTPModule;
13 /** Allow overriding connection keepAlive, defaults to false */
14 keepAlive?: boolean;
15}
16/**
17 * Creates a Transport that uses native the native 'http' and 'https' modules to send events to Sentry.
18 */
19export declare function makeNodeTransport(options: NodeTransportOptions): Transport;
20//# sourceMappingURL=http.d.ts.map
\No newline at end of file