Skip to content

Commit 7f7c9a5

Browse files
committed
have redis v3 instrumentation stay shim-based
1 parent d03b5f1 commit 7f7c9a5

File tree

5 files changed

+14
-87
lines changed

5 files changed

+14
-87
lines changed

lib/instrumentations.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module.exports = function instrumentations() {
2727
mongodb: { type: InstrumentationDescriptor.TYPE_DATASTORE },
2828
next: { module: './instrumentation/nextjs' },
2929
q: { type: null },
30+
redis: { type: InstrumentationDescriptor.TYPE_DATASTORE },
3031
restify: { type: InstrumentationDescriptor.TYPE_WEB_FRAMEWORK },
3132
superagent: { type: InstrumentationDescriptor.TYPE_GENERIC },
3233
when: { module: './instrumentation/when' },

lib/subscriber-configs.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ const subscribers = {
2626
...require('./subscribers/pino/config'),
2727
...require('./subscribers/pg/config'),
2828
...require('./subscribers/redis-client/config'),
29-
...require('./subscribers/redis/config'),
3029
...require('./subscribers/undici/config')
3130
}
3231

lib/subscribers/redis/config.js

Lines changed: 0 additions & 25 deletions
This file was deleted.

lib/subscribers/redis/internal-send-command.js

Lines changed: 0 additions & 53 deletions
This file was deleted.

test/versioned/redis/package.json

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
{
22
"name": "redis-tests",
3-
"targets": [
4-
{
5-
"name": "redis",
6-
"minAgentVersion": "1.31.0"
7-
}
8-
],
3+
"targets": [{"name":"redis","minAgentVersion":"1.31.0"}],
94
"version": "0.0.0",
105
"private": true,
116
"tests": [
12-
7+
{
8+
"engines": {
9+
"node": ">=20"
10+
},
11+
"dependencies": {
12+
"redis": ">=3.1.0 < 4.0.0"
13+
},
14+
"files": [
15+
"redis-v3.test.js"
16+
]
17+
},
1318
{
1419
"engines": {
1520
"node": ">=20"
@@ -25,4 +30,4 @@
2530
]
2631
}
2732
]
28-
}
33+
}

0 commit comments

Comments
 (0)