@instana/core
Advanced tools
Comparing version 1.119.1 to 1.119.2
{ | ||
"name": "@instana/core", | ||
"version": "1.119.1", | ||
"version": "1.119.2", | ||
"description": "Core library for Instana's Node.js packages", | ||
@@ -136,3 +136,3 @@ "main": "src/index.js", | ||
}, | ||
"gitHead": "2c29209e16d78ff990869e81b0545012b86fc18d" | ||
"gitHead": "d4ccbbe909316d9b32bdeddc71ee680d2d956509" | ||
} |
@@ -34,2 +34,5 @@ /* | ||
exports.tracing.preInit(preliminaryConfig); | ||
// Initialize secrets as early as possible, in particular for env var collection in fargate/google-cloud-run when | ||
// the config comes from INSTANA_SECRETS. | ||
exports.secrets.init(preliminaryConfig); | ||
}; | ||
@@ -36,0 +39,0 @@ |
@@ -152,2 +152,5 @@ /* | ||
/** @type {(key: string) => boolean} */ | ||
let isSecretInternal = exports.matchers[defaultMatcherMode](defaultSecrets); | ||
/** | ||
@@ -196,5 +199,6 @@ * @param {Array<string>} configuredSecrets | ||
// We should fix this properly. exports cannot be redefined. | ||
// @ts-expect-error | ||
exports.isSecret = exports.matchers[defaultMatcherMode](defaultSecrets); | ||
/** @type {(key: string) => boolean} */ | ||
exports.isSecret = function isSecret(key) { | ||
return isSecretInternal(key); | ||
}; | ||
@@ -216,5 +220,3 @@ /** | ||
exports.init = function init(config) { | ||
// Init from config/env vars. Might be overwritten from agent response later (via setMatcher); | ||
// @ts-expect-error | ||
exports.isSecret = exports.matchers[config.secrets.matcherMode](config.secrets.keywords); | ||
isSecretInternal = exports.matchers[config.secrets.matcherMode](config.secrets.keywords); | ||
}; | ||
@@ -234,5 +236,4 @@ | ||
} else { | ||
// @ts-expect-error | ||
exports.isSecret = exports.matchers[matcherId](secretsList); | ||
isSecretInternal = exports.matchers[matcherId](secretsList); | ||
} | ||
}; |
473796
13175