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

@instana/core

Package Overview
Dependencies
Maintainers
3
Versions
258
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instana/core - npm Package Compare versions

Comparing version 1.93.0 to 1.94.0

4

package.json
{
"name": "@instana/core",
"version": "1.93.0",
"version": "1.94.0",
"description": "Core library for Instana's Node.js packages",

@@ -136,3 +136,3 @@ "main": "src/index.js",

},
"gitHead": "0d01c45b54c3498718d3f46b448a0e87c2e27587"
"gitHead": "3cdf243b6e54af501c6f9a4c20c1d02dfeee6d6f"
}

@@ -12,2 +12,5 @@ 'use strict';

exports.syntheticHeaderName = 'X-INSTANA-SYNTHETIC';
exports.syntheticHeaderNameLowerCase = exports.syntheticHeaderName.toLowerCase();
exports.kafkaTraceContextHeaderName = 'X_INSTANA_C';

@@ -14,0 +17,0 @@ exports.kafkaTraceLevelHeaderName = 'X_INSTANA_L';

@@ -80,2 +80,5 @@ 'use strict';

}
if (headers.synthetic) {
span.sy = true;
}

@@ -82,0 +85,0 @@ // Capture the URL before application code gets access to the incoming message. Libraries like express manipulate

@@ -22,2 +22,3 @@ 'use strict';

var correlationId = levelAndCorrelation.correlationId;
var synthetic = readSyntheticMarker(req);
var w3cTraceContext = readW3cTraceContext(req);

@@ -49,2 +50,3 @@

correlationId: correlationId,
synthetic: synthetic,
w3cTraceContext: w3cTraceContext

@@ -69,2 +71,3 @@ };

correlationId: correlationId,
synthetic: synthetic,
w3cTraceContext: w3c.create(xInstanaT, xInstanaS, !isSuppressed(level))

@@ -82,2 +85,3 @@ };

correlationId: correlationId,
synthetic: synthetic,
w3cTraceContext: w3cTraceContext,

@@ -102,2 +106,3 @@ foreignParent: {

correlationId: correlationId,
synthetic: synthetic,
w3cTraceContext: w3cTraceContext,

@@ -121,2 +126,3 @@ foreignParent: {

level: level,
synthetic: synthetic,
w3cTraceContext: w3c.createEmptyUnsampled(

@@ -143,2 +149,3 @@ tracingUtil.generateRandomTraceId(),

correlationId: correlationId,
synthetic: synthetic,
w3cTraceContext: w3cTraceContext

@@ -215,2 +222,6 @@ // We do not add foreignParent header here because we didn't receive any W3C trace context spec headers.

function readSyntheticMarker(req) {
return req.headers[constants.syntheticHeaderNameLowerCase] === '1';
}
function traceStateHasInstanaKeyValuePair(w3cTraceContext) {

@@ -217,0 +228,0 @@ return w3cTraceContext.instanaTraceId && w3cTraceContext.instanaParentId;

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