Skip to content

Commit bbf1631

Browse files
committed
chore(opentelemetry-node): drop instr-redis-4, it is now consolidated into instr-redis
Refs: open-telemetry/opentelemetry-js-contrib#2915
1 parent 7c315d7 commit bbf1631

File tree

6 files changed

+7
-98
lines changed

6 files changed

+7
-98
lines changed

docs/release-notes/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ To check for security updates, go to [Security announcements for the Elastic sta
3939

4040
### Fixes [edot-node-next-fixes]
4141

42+
### Chores [edot-node-next-chores]
43+
44+
- Support for instrumenting `redis` version 4 has moved from `@opentelemetry/instrumentation-redis-4` to `@opentelemetry/instrumentation-redis`. If you are using the `OTEL_NODE_ENABLED_INSTRUMENTATIONS` or `OTEL_NODE_DISABLED_INSTRUMENTATIONS` environment variables to control instrumentation of `redis@4` you will need to change from using "redis-4" to "redis".
45+
4246
## 1.1.1 [edot-node-1.1.1-release-notes]
4347

4448
### Fixes [edot-node-1.1.1-fixes]

packages/opentelemetry-node/lib/instrumentations.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ const {log} = require('./logging');
4545
* "@opentelemetry/instrumentation-pg": import('@opentelemetry/instrumentation-pg').PgInstrumentationConfig
4646
* "@opentelemetry/instrumentation-pino": import('@opentelemetry/instrumentation-pino').PinoInstrumentationConfig
4747
* "@opentelemetry/instrumentation-redis": import('@opentelemetry/instrumentation-redis').RedisInstrumentationConfig,
48-
* "@opentelemetry/instrumentation-redis-4": import('@opentelemetry/instrumentation-redis-4').RedisInstrumentationConfig,
4948
* "@opentelemetry/instrumentation-restify": import('@opentelemetry/instrumentation-restify').RestifyInstrumentationConfig,
5049
* "@opentelemetry/instrumentation-router": import('@opentelemetry/instrumentation').InstrumentationConfig,
5150
* "@opentelemetry/instrumentation-runtime-node": import('@opentelemetry/instrumentation-runtime-node').RuntimeNodeInstrumentationConfig,
@@ -89,7 +88,6 @@ const {NetInstrumentation} = require('@opentelemetry/instrumentation-net');
8988
const {PgInstrumentation} = require('@opentelemetry/instrumentation-pg');
9089
const {PinoInstrumentation} = require('@opentelemetry/instrumentation-pino');
9190
const {RedisInstrumentation} = require('@opentelemetry/instrumentation-redis');
92-
const {RedisInstrumentation: RedisFourInstrumentation} = require('@opentelemetry/instrumentation-redis-4');
9391
const {RestifyInstrumentation} = require('@opentelemetry/instrumentation-restify');
9492
const {RouterInstrumentation} = require('@opentelemetry/instrumentation-router');
9593
const {RuntimeNodeInstrumentation} = require('@opentelemetry/instrumentation-runtime-node');
@@ -139,7 +137,6 @@ const instrumentationsMap = {
139137
'@opentelemetry/instrumentation-pg': (cfg) => new PgInstrumentation(cfg),
140138
'@opentelemetry/instrumentation-pino': (cfg) => new PinoInstrumentation(cfg),
141139
'@opentelemetry/instrumentation-redis': (cfg) => new RedisInstrumentation(cfg),
142-
'@opentelemetry/instrumentation-redis-4': (cfg) => new RedisFourInstrumentation(cfg),
143140
'@opentelemetry/instrumentation-restify': (cfg) => new RestifyInstrumentation(cfg),
144141
'@opentelemetry/instrumentation-router': (cfg) => new RouterInstrumentation(cfg),
145142
'@opentelemetry/instrumentation-runtime-node': (cfg) => new RuntimeNodeInstrumentation(cfg),

packages/opentelemetry-node/package-lock.json

Lines changed: 0 additions & 90 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/opentelemetry-node/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@
113113
"@opentelemetry/instrumentation-pg": "^0.55.0",
114114
"@opentelemetry/instrumentation-pino": "^0.50.0",
115115
"@opentelemetry/instrumentation-redis": "^0.51.0",
116-
"@opentelemetry/instrumentation-redis-4": "^0.49.0",
117116
"@opentelemetry/instrumentation-restify": "^0.49.0",
118117
"@opentelemetry/instrumentation-router": "^0.48.0",
119118
"@opentelemetry/instrumentation-runtime-node": "^0.17.0",

packages/opentelemetry-node/test/instr-redis-4.test.js renamed to packages/opentelemetry-node/test/instr-redis.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const {filterOutDnsNetSpans, runTestFixtures} = require('./testutils');
99
const skip = process.env.REDIS_HOST === undefined;
1010
if (skip) {
1111
console.log(
12-
'# SKIP redis-4 tests: REDIS_HOST is not set (try with `REDIS_HOST=localhost`)'
12+
'# SKIP redis tests: REDIS_HOST is not set (try with `REDIS_HOST=localhost`)'
1313
);
1414
}
1515

@@ -38,7 +38,7 @@ const testFixtures = [
3838
t.equal(s.traceId, spans[0].traceId, 'traceId');
3939
t.equal(s.parentSpanId, spans[0].spanId, 'parentSpanId');
4040
t.equal(s.kind, 'SPAN_KIND_CLIENT', 'kind');
41-
t.equal(s.scope.name, '@opentelemetry/instrumentation-redis-4');
41+
t.equal(s.scope.name, '@opentelemetry/instrumentation-redis');
4242
t.equal(s.attributes['db.system'], 'redis');
4343
});
4444
t.equal(spans[1].name, 'redis-connect');
@@ -72,7 +72,7 @@ const testFixtures = [
7272
},
7373
];
7474

75-
test('redis-4 instrumentation', {skip}, (suite) => {
75+
test('redis instrumentation', {skip}, (suite) => {
7676
runTestFixtures(suite, testFixtures);
7777
suite.end();
7878
});

packages/opentelemetry-node/types/instrumentations.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export type InstrumentaionsMap = {
3232
"@opentelemetry/instrumentation-pg": import('@opentelemetry/instrumentation-pg').PgInstrumentationConfig;
3333
"@opentelemetry/instrumentation-pino": import('@opentelemetry/instrumentation-pino').PinoInstrumentationConfig;
3434
"@opentelemetry/instrumentation-redis": import('@opentelemetry/instrumentation-redis').RedisInstrumentationConfig;
35-
"@opentelemetry/instrumentation-redis-4": import('@opentelemetry/instrumentation-redis-4').RedisInstrumentationConfig;
3635
"@opentelemetry/instrumentation-restify": import('@opentelemetry/instrumentation-restify').RestifyInstrumentationConfig;
3736
"@opentelemetry/instrumentation-router": import('@opentelemetry/instrumentation').InstrumentationConfig;
3837
"@opentelemetry/instrumentation-runtime-node": import('@opentelemetry/instrumentation-runtime-node').RuntimeNodeInstrumentationConfig;

0 commit comments

Comments
 (0)