@opencensus/exporter-instana
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -59,5 +59,3 @@ "use strict"; | ||
try { | ||
return this | ||
.transmit(this.translateRootSpans(spans)) | ||
.catch(e => e); | ||
return this.transmit(this.translateRootSpans(spans)).catch(e => e); | ||
} | ||
@@ -87,7 +85,6 @@ catch (e) { | ||
error: span.status != null && span.status.code !== 0, | ||
data: Object.keys(span.attributes) | ||
.reduce((agg, key) => { | ||
data: Object.keys(span.attributes).reduce((agg, key) => { | ||
agg[String(key)] = String(span.attributes[key]); | ||
return agg; | ||
}, {}) | ||
}, {}), | ||
}; | ||
@@ -107,13 +104,14 @@ } | ||
'Content-Type': 'application/json; charset=UTF-8', | ||
'Content-Length': payload.length | ||
} | ||
'Content-Length': payload.length, | ||
}, | ||
}; | ||
const req = http_1.request(options, (res) => { | ||
const req = http_1.request(options, res => { | ||
res.setEncoding('utf8'); | ||
let responseBody = ''; | ||
res.on('data', (chunk) => { | ||
res.on('data', chunk => { | ||
responseBody += chunk; | ||
}); | ||
res.on('end', () => { | ||
if (res.statusCode != null && 200 <= res.statusCode && | ||
if (res.statusCode != null && | ||
200 <= res.statusCode && | ||
res.statusCode <= 299) { | ||
@@ -130,3 +128,3 @@ this.logger.debug('Successfully delivered %s spans to Instana agent', spans.length); | ||
req.setTimeout(this.transmissionTimeout, () => req.abort()); | ||
req.on('error', (e) => { | ||
req.on('error', e => { | ||
this.logger.error('Failed to deliver %s spans to Instana agent', spans.length, e); | ||
@@ -133,0 +131,0 @@ reject(); |
{ | ||
"name": "@opencensus/exporter-instana", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "OpenCensus Instana Exporter allows the user to send collected traces with OpenCensus Node.js to Instana.", | ||
@@ -56,4 +56,4 @@ "main": "build/src/index.js", | ||
"@types/node": "^10.12.12", | ||
"codecov": "^3.4.0", | ||
"gts": "^0.9.0", | ||
"codecov": "^3.5.0", | ||
"gts": "^1.0.0", | ||
"mocha": "^6.1.0", | ||
@@ -67,4 +67,4 @@ "nock": "^10.0.0", | ||
"dependencies": { | ||
"@opencensus/core": "^0.0.14" | ||
"@opencensus/core": "^0.0.15" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23630
220
+ Added@opencensus/core@0.0.15(transitive)
- Removed@opencensus/core@0.0.14(transitive)
Updated@opencensus/core@^0.0.15