Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@opencensus/exporter-instana

Package Overview
Dependencies
Maintainers
7
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencensus/exporter-instana - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

22

build/src/instana.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc