@instana/aws-lambda
Advanced tools
Comparing version 1.74.0 to 1.74.1
{ | ||
"name": "@instana/aws-lambda", | ||
"version": "1.74.0", | ||
"version": "1.74.1", | ||
"description": "Monitor Node.js based AWS Lambdas with Instana", | ||
@@ -60,3 +60,3 @@ "author": { | ||
"dependencies": { | ||
"@instana/core": "^1.74.0", | ||
"@instana/core": "^1.74.1", | ||
"semver": "^5.6.0" | ||
@@ -74,3 +74,3 @@ }, | ||
}, | ||
"gitHead": "a48f11927b8aca728240583bfba3267402f16e6c" | ||
"gitHead": "29b972d18474e101f4af91bf3c1b5f7fc12fa08f" | ||
} |
@@ -6,3 +6,3 @@ 'use strict'; | ||
const logger = require('../../util/console_logger'); | ||
const rootDir = require('./rootDir').root; | ||
const rootDir = require('./rootDir'); | ||
@@ -13,3 +13,3 @@ exports.payloadPrefix = 'npmPackageDescription'; | ||
exports.activate = function activate() { | ||
coreUtil.applicationUnderMonitoring.getMainPackageJson(rootDir, (err, pckg) => { | ||
coreUtil.applicationUnderMonitoring.getMainPackageJson(rootDir.root, (err, pckg) => { | ||
if (err) { | ||
@@ -16,0 +16,0 @@ logger.warn('Failed to determine main package json. Reason: ', err.message, err.stack); |
@@ -6,3 +6,3 @@ 'use strict'; | ||
const logger = require('../../util/console_logger'); | ||
const rootDir = require('./rootDir').root; | ||
const rootDir = require('./rootDir'); | ||
@@ -13,3 +13,3 @@ exports.payloadPrefix = 'npmPackageName'; | ||
exports.activate = function activate() { | ||
coreUtil.applicationUnderMonitoring.getMainPackageJson(rootDir, (err, pckg) => { | ||
coreUtil.applicationUnderMonitoring.getMainPackageJson(rootDir.root, (err, pckg) => { | ||
if (err) { | ||
@@ -16,0 +16,0 @@ logger.warn('Failed to determine main package json. Reason: ', err.message, err.stack); |
@@ -6,3 +6,3 @@ 'use strict'; | ||
const logger = require('../../util/console_logger'); | ||
const rootDir = require('./rootDir').root; | ||
const rootDir = require('./rootDir'); | ||
@@ -13,3 +13,3 @@ exports.payloadPrefix = 'npmPackageVersion'; | ||
exports.activate = function activate() { | ||
coreUtil.applicationUnderMonitoring.getMainPackageJson(rootDir, (err, pckg) => { | ||
coreUtil.applicationUnderMonitoring.getMainPackageJson(rootDir.root, (err, pckg) => { | ||
if (err) { | ||
@@ -16,0 +16,0 @@ logger.warn('Failed to determine main package json. Reason: ', err.message, err.stack); |
@@ -5,4 +5,4 @@ 'use strict'; | ||
// We should be in /var/task/node_modules/@instana/serverless/src/aws_lambda/metrics initially, provide | ||
// We should be in /var/task/node_modules/@instana/aws-lambda/src/aws_lambda/metrics initially, provide | ||
// /var/task as the starting dir for looking for the handler's package.json. | ||
exports.root = path.resolve(__dirname, '..', '..', '..', '..', '..', '..'); |
@@ -209,3 +209,3 @@ 'use strict'; | ||
} else { | ||
logger.debug('Data has been sent to backend.'); | ||
logger.info('Data has been sent to backend.'); | ||
} | ||
@@ -212,0 +212,0 @@ callback(); |
@@ -26,5 +26,4 @@ 'use strict'; | ||
logger.warn( | ||
`The value of ${timeoutEnvVar} (${ | ||
process.env[timeoutEnvVar] | ||
}) cannot be parsed to a valid numerical value. Will fall back to the default timeout (${defaultTimeout} ms).` | ||
`The value of ${timeoutEnvVar} (${process.env[timeoutEnvVar]}) cannot be parsed to a valid numerical value. ` + | ||
`Will fall back to the default timeout (${defaultTimeout} ms).` | ||
); | ||
@@ -90,3 +89,3 @@ backendTimeout = defaultTimeout; | ||
'Content-Length': Buffer.byteLength(payload), | ||
[constants.xInstanaHost]: identityProvider ? identityProvider.getHostHeader() : 'serverless-nodejs', | ||
[constants.xInstanaHost]: identityProvider ? identityProvider.getHostHeader() : 'nodejs-aws-lambda', | ||
[constants.xInstanaKey]: environmentUtil.getInstanaKey(), | ||
@@ -93,0 +92,0 @@ [constants.xInstanaTime]: Date.now() |
@@ -5,6 +5,7 @@ /* eslint-disable no-console */ | ||
let minLevel = 40; | ||
// TODO: Change back to 40 | ||
let minLevel = 30; | ||
module.exports = exports = { | ||
debug: createLogFn(20, console.debug), | ||
debug: createLogFn(20, console.log /* This could be console.debug, but that won't emit anything cloudwatch logs */), | ||
info: createLogFn(30, console.log), | ||
@@ -11,0 +12,0 @@ warn: createLogFn(40, console.warn), |
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
33119
19
Updated@instana/core@^1.74.1