Skip to content

Commit

Permalink
chore: removed instrumentation for @aws-sdk/client-redshift-data (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
svetlanabrennan authored Jan 22, 2025
1 parent cc65763 commit 661910b
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 314 deletions.
103 changes: 0 additions & 103 deletions lib/instrumentation/aws-sdk/v3/redshift.js

This file was deleted.

4 changes: 1 addition & 3 deletions lib/instrumentation/aws-sdk/v3/smithy-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const { sqsMiddlewareConfig } = require('./sqs')
const { dynamoMiddlewareConfig } = require('./dynamodb')
const { lambdaMiddlewareConfig } = require('./lambda')
const { bedrockMiddlewareConfig } = require('./bedrock')
const { redshiftMiddlewareConfig } = require('./redshift')
const MIDDLEWARE = Symbol('nrMiddleware')

const middlewareByClient = {
Expand All @@ -21,8 +20,7 @@ const middlewareByClient = {
SNS: [...middlewareConfig, snsMiddlewareConfig],
SQS: [...middlewareConfig, sqsMiddlewareConfig],
DynamoDB: [...middlewareConfig, ...dynamoMiddlewareConfig],
DynamoDBDocument: [...middlewareConfig, ...dynamoMiddlewareConfig],
RedshiftData: [...middlewareConfig, ...redshiftMiddlewareConfig]
DynamoDBDocument: [...middlewareConfig, ...dynamoMiddlewareConfig]
}

module.exports = function instrumentSmithyClient(shim, smithyClientExport) {
Expand Down
1 change: 0 additions & 1 deletion lib/shim/datastore-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const DATASTORE_NAMES = {
OPENSEARCH: 'OpenSearch',
POSTGRES: 'Postgres',
REDIS: 'Redis',
REDSHIFT: 'Redshift',
PRISMA: 'Prisma'
}

Expand Down
17 changes: 1 addition & 16 deletions test/versioned/aws-sdk-v3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
{"name": "@aws-sdk/lib-dynamodb", "minAgentVersion": "8.7.1"},
{"name": "@aws-sdk/smithy-client", "minSupported": "3.47.0", "minAgentVersion": "8.7.1"},
{"name": "@smithy/smithy-client", "minSupported": "2.0.0", "minAgentVersion": "11.0.0"},
{"name": "@aws-sdk/client-bedrock-runtime", "minAgentVersion": "11.13.0"},
{"name": "@aws-sdk/client-redshift-data", "minAgentVersion": "12.12.0"}
{"name": "@aws-sdk/client-bedrock-runtime", "minAgentVersion": "11.13.0"}
],
"version": "0.0.0",
"private": true,
Expand Down Expand Up @@ -210,20 +209,6 @@
"bedrock-embeddings.test.js",
"bedrock-negative-tests.test.js"
]
},
{
"engines": {
"node": ">=18.0"
},
"dependencies": {
"@aws-sdk/client-redshift-data": {
"versions": ">=3.474.0",
"samples": 2
}
},
"files": [
"redshift-data.test.js"
]
}
],
"dependencies": {}
Expand Down
191 changes: 0 additions & 191 deletions test/versioned/aws-sdk-v3/redshift-data.test.js

This file was deleted.

0 comments on commit 661910b

Please sign in to comment.