@instana/core
Advanced tools
Comparing version 1.126.0 to 1.126.1
{ | ||
"name": "@instana/core", | ||
"version": "1.126.0", | ||
"version": "1.126.1", | ||
"description": "Core library for Instana's Node.js packages", | ||
@@ -23,3 +23,3 @@ "main": "src/index.js", | ||
"type": "git", | ||
"url": "git+https://github.com/instana/nodejs-sensor.git" | ||
"url": "git+https://github.com/instana/nodejs.git" | ||
}, | ||
@@ -116,5 +116,5 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/instana/nodejs-sensor/issues" | ||
"url": "https://github.com/instana/nodejs/issues" | ||
}, | ||
"homepage": "https://github.com/instana/nodejs-sensor#readme", | ||
"homepage": "https://github.com/instana/nodejs#readme", | ||
"dependencies": { | ||
@@ -138,3 +138,3 @@ "async-hook-jl": "^1.7.6", | ||
}, | ||
"gitHead": "ba48f1a9cd07fda7ff2b5bb21630e176219936e2" | ||
"gitHead": "a52c76e207a7af10c178ed1f289d5890c475a6de" | ||
} |
@@ -242,3 +242,3 @@ /* | ||
pid: | ||
// TODO: This is not typed yet -> /nodejs-sensor/packages/collector/src/pidStore/index.js | ||
// TODO: This is not typed yet -> /nodejs/packages/collector/src/pidStore/index.js | ||
// @ts-ignore | ||
@@ -245,0 +245,0 @@ processIdentityProvider && typeof processIdentityProvider.getEntityId === 'function' |
@@ -93,3 +93,3 @@ /* | ||
span.data[SPAN_NAME] = buildSpanData(queryResult); | ||
span.data[SPAN_NAME] = buildSpanData(queryResult, ctx.servers); | ||
@@ -107,3 +107,3 @@ finishSpan(err, span); | ||
function buildSpanData(queryResult) { | ||
function buildSpanData(queryResult, connections) { | ||
const { type, key, multi } = queryResult; | ||
@@ -120,3 +120,6 @@ | ||
const data = { | ||
key: Array.isArray(key) ? key.join(', ') : key | ||
key: Array.isArray(key) ? key.join(', ') : key, | ||
// This may be an issue if the customer sets more than one connection, but our UI expects always only one | ||
// So we pick always the first one in the list | ||
connection: connections[0] | ||
}; | ||
@@ -123,0 +126,0 @@ |
@@ -10,3 +10,3 @@ /* | ||
// https://github.com/stevemao/left-pad/blob/master/index.js, copyright (c) 2018 Steve Mao. | ||
// The original work is subject to the MIT license, as is the whole instana-nodejs-sensor package, see the LICENSE | ||
// The original work is subject to the MIT license, as is the whole @instana/core package, see the LICENSE | ||
// file in the root directory of this package. | ||
@@ -13,0 +13,0 @@ |
@@ -20,3 +20,3 @@ /* | ||
/** | ||
* This module will not be typed yet: /nodejs-sensor/packages/collector/src/agentConnection.js | ||
* This module will not be typed yet: /nodejs/packages/collector/src/agentConnection.js | ||
* @typedef {Object} TemporaryAgentConnection | ||
@@ -23,0 +23,0 @@ * @property {(spans: *, cb: Function) => void} sendSpans |
507683
14424