You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
debug('sending data to trace servers: ',destinationUrl,payload)
102
102
103
103
req.on('error',function(error){
104
-
console.error('error: [trace]','There was an error connecting to the Trace servers. Make sure your servers can reach',opts.hostname)
104
+
console.error('error: [trace]','There was an error connecting to the Trace servers when sending data. Make sure your servers can reach',opts.hostname)
105
105
debug('error connecting to the Trace servers',error)
106
106
callback(error)
107
107
})
@@ -274,6 +274,7 @@ CollectorApi.prototype.getService = function (cb) {
274
274
hostname: opts.hostname,
275
275
port: opts.port,
276
276
path: opts.path,
277
+
agent: this.proxyAgent,
277
278
method: 'POST',
278
279
headers: {
279
280
'Authorization': 'Bearer '+this.apiKey,
@@ -321,7 +322,7 @@ CollectorApi.prototype.getService = function (cb) {
321
322
debug('getting serviceKey with payload:',payload)
322
323
323
324
req.on('error',function(error){
324
-
console.error('error: [trace]','There was an error connecting to the Trace servers. Make sure your servers can reach',opts.hostname)
325
+
console.error('error: [trace]','There was an error connecting to the Trace servers to get the service key. Make sure your servers can reach',opts.hostname)
325
326
debug('error connecting to the Trace servers',error)
0 commit comments