@@ -20,7 +20,7 @@ import { HTTPModule } from './base/http-module';
20
20
// OR
21
21
// - Split this file up and leave it in the transports folder
22
22
23
- export interface HttpTransportOptions extends BaseTransportOptions {
23
+ export interface NodeTransportOptions extends BaseTransportOptions {
24
24
/** Define custom headers */
25
25
headers ?: Record < string , string > ;
26
26
/** Set a proxy that should be used for outbound requests. */
@@ -34,7 +34,7 @@ export interface HttpTransportOptions extends BaseTransportOptions {
34
34
/**
35
35
* Creates a Transport that uses http to send events to Sentry.
36
36
*/
37
- export function makeNewHttpTransport ( options : HttpTransportOptions ) : NewTransport {
37
+ export function makeNewHttpTransport ( options : NodeTransportOptions ) : NewTransport {
38
38
// Proxy prioritization: http => `options.proxy` | `process.env.http_proxy`
39
39
const proxy = applyNoProxyOption ( options . url , options . proxy || process . env . http_proxy ) ;
40
40
@@ -51,7 +51,7 @@ export function makeNewHttpTransport(options: HttpTransportOptions): NewTranspor
51
51
/**
52
52
* Creates a Transport that uses https to send events to Sentry.
53
53
*/
54
- export function makeNewHttpsTransport ( options : HttpTransportOptions ) : NewTransport {
54
+ export function makeNewHttpsTransport ( options : NodeTransportOptions ) : NewTransport {
55
55
// Proxy prioritization: https => `options.proxy` | `process.env.https_proxy` | `process.env.http_proxy`
56
56
const proxy = applyNoProxyOption ( options . url , options . proxy || process . env . https_proxy || process . env . http_proxy ) ;
57
57
@@ -94,7 +94,7 @@ function applyNoProxyOption(transportUrl: string, proxy: string | undefined): st
94
94
* Creates a RequestExecutor to be used with `createTransport`.
95
95
*/
96
96
function createRequestExecutor (
97
- options : HttpTransportOptions ,
97
+ options : NodeTransportOptions ,
98
98
httpModule : HTTPModule ,
99
99
agent : http . Agent ,
100
100
) : TransportRequestExecutor {
0 commit comments