@instana/core
Advanced tools
Comparing version 2.33.1 to 2.34.0
@@ -6,2 +6,18 @@ # Change Log | ||
# [2.34.0](https://github.com/instana/nodejs/compare/v2.33.1...v2.34.0) (2023-10-10) | ||
### Features | ||
* added support for aws sdk v3 lambda ([#871](https://github.com/instana/nodejs/issues/871)) ([eb85c91](https://github.com/instana/nodejs/commit/eb85c91228144084191d12589f3b1152f6e2529d)) | ||
### Reverts | ||
* Revert "chore: migrated to npm workspaces and lerna v7 (#876)" ([763ac7e](https://github.com/instana/nodejs/commit/763ac7e69d56742009e18964d267313918813c80)), closes [#876](https://github.com/instana/nodejs/issues/876) | ||
## [2.33.1](https://github.com/instana/nodejs/compare/v2.33.0...v2.33.1) (2023-09-26) | ||
@@ -8,0 +24,0 @@ |
{ | ||
"name": "@instana/core", | ||
"version": "2.33.1", | ||
"version": "2.34.0", | ||
"description": "Core library for Instana's Node.js packages", | ||
@@ -143,3 +143,3 @@ "main": "src/index.js", | ||
}, | ||
"gitHead": "c193b291958243f3974aff1eac787141dd8e4770" | ||
"gitHead": "df37c59d12bc712924b53e01d2e52c1d6cc10692" | ||
} |
@@ -19,3 +19,4 @@ /* | ||
require('./kinesis'), | ||
require('./sns') | ||
require('./sns'), | ||
require('./lambda') | ||
]; | ||
@@ -83,4 +84,3 @@ | ||
const serviceId = self.config && self.config.serviceId; | ||
let awsProduct = serviceId && awsProducts.find(aws => aws.spanName === serviceId.toLowerCase()); | ||
let awsProduct = serviceId && awsProducts.find(aws => aws.getServiceIdName() === serviceId.toLowerCase()); | ||
if (awsProduct && awsProduct.supportsOperation(command.constructor.name)) { | ||
@@ -87,0 +87,0 @@ return awsProduct.instrumentedSmithySend(self, isActive, originalSend, smithySendArgs); |
@@ -12,6 +12,8 @@ /* | ||
* @param {Array.<string>} operations | ||
* @param {string} serviceName | ||
*/ | ||
constructor(spanName, operations) { | ||
constructor(spanName, operations, serviceName) { | ||
this.spanName = spanName; | ||
this.operations = operations || []; | ||
this.serviceName = serviceName || ''; | ||
} | ||
@@ -66,4 +68,8 @@ | ||
} | ||
getServiceIdName() { | ||
return this.serviceName || this.spanName; | ||
} | ||
} | ||
module.exports.InstanaAWSProduct = InstanaAWSProduct; |
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
771127
134
20049