@newrelic/aws-sdk
Advanced tools
Comparing version 7.0.2 to 7.0.3
@@ -0,1 +1,7 @@ | ||
### v7.0.3 (2023-12-07) | ||
* Updated aws-sdk v3 instrumentation to only call `shim.setLibrary` and `shim.setDatastore` once instead of on every call to SQS, SNS, and DynamoDB. | ||
* Updated [axios](https://github.com/axios/axios) from 0.21.4 to 1.6.0 | ||
* Updated ancestor dependency [newrelic](https://github.com/newrelic/node-newrelic) from 11.0.0 to 11.5.0 | ||
### v7.0.2 (2023-10-25) | ||
@@ -2,0 +8,0 @@ |
@@ -57,3 +57,2 @@ /* | ||
function dynamoMiddleware(shim, config, next, context) { | ||
shim.setDatastore(shim.DYNAMODB) | ||
const { commandName } = context | ||
@@ -76,2 +75,5 @@ return async function wrappedMiddleware(args) { | ||
middleware: dynamoMiddleware, | ||
init(shim) { | ||
shim.setDatastore(shim.DYNAMODB) | ||
}, | ||
type: 'datastore', | ||
@@ -78,0 +80,0 @@ config: { |
@@ -53,2 +53,3 @@ /* | ||
localShim.assignId('aws-sdk') | ||
mw.init && mw.init(localShim) | ||
const middleware = mw.middleware.bind(null, localShim, config) | ||
@@ -55,0 +56,0 @@ this.middlewareStack.add(middleware, mw.config) |
@@ -18,3 +18,2 @@ /* | ||
function snsMiddleware(shim, config, next, context) { | ||
shim.setLibrary(shim.SNS) | ||
if (context.commandName === 'PublishCommand') { | ||
@@ -59,2 +58,5 @@ return shim.recordProduce(next, getSnsSpec) | ||
middleware: snsMiddleware, | ||
init(shim) { | ||
shim.setLibrary(shim.SNS) | ||
}, | ||
type: 'message', | ||
@@ -61,0 +63,0 @@ config: { |
@@ -24,3 +24,2 @@ /* | ||
function sqsMiddleware(shim, config, next, context) { | ||
shim.setLibrary(shim.SQS) | ||
if (SEND_COMMANDS.includes(context.commandName)) { | ||
@@ -57,2 +56,5 @@ return shim.recordProduce(next, getSqsSpec) | ||
middleware: sqsMiddleware, | ||
init(shim) { | ||
shim.setLibrary(shim.SQS) | ||
}, | ||
type: 'message', | ||
@@ -59,0 +61,0 @@ config: { |
{ | ||
"name": "@newrelic/aws-sdk", | ||
"version": "7.0.2", | ||
"version": "7.0.3", | ||
"description": "New Relic instrumentation of the aws-sdk package.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
456873
694