Skip to content

Commit c0cfd96

Browse files
authored
chore(opentelemetry-node): drop instr-redis-4, it is now consolidated into instr-redis (#889)
Refs: open-telemetry/opentelemetry-js-contrib#2915
1 parent ff8f464 commit c0cfd96

File tree

7 files changed

+22
-106
lines changed

7 files changed

+22
-106
lines changed

docs/release-notes/breaking-changes.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,38 +15,45 @@ products:
1515

1616
Breaking changes can impact your Elastic applications, potentially disrupting normal operations. Before you upgrade, carefully review the Elastic Distribution of OpenTelemetry breaking changes and take the necessary steps to mitigate any issues.
1717

18-
% ## Next version [edot-X.X.X-breaking-changes]
18+
% ## Next version [edot-node-X.X.X-breaking-changes]
1919

2020
% Use the following template to add entries to this document.
2121

2222
% TEMPLATE START
2323
% $$$kibana-PR_NUMBER$$$
24-
% ::::{dropdown} Title of breaking change
24+
% ::::{dropdown} Title of breaking change
2525
% Description of the breaking change.
2626
% **Impact**<br> Impact of the breaking change.
2727
% **Action**<br> Steps for mitigating impact.
2828
% Refer to [PR #](PR link).
2929
% ::::
3030
% TEMPLATE END
3131

32-
% 1. Copy and edit the template in the right area section of this file. Most recent entries should be at the top of the section.
33-
% 2. Edit the anchor ID ($$$kibana-PR_NUMBER$$$) of the template with the correct PR number to give the entry a unique URL.
32+
% 1. Copy and edit the template in the right area section of this file. Most recent entries should be at the top of the section.
33+
% 2. Edit the anchor ID ($$$kibana-PR_NUMBER$$$) of the template with the correct PR number to give the entry a unique URL.
3434
% 3. Don't hardcode the link to the new entry. Instead, make it available through the doc link service files:
3535
% - {kib-repo}blob/{branch}/src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts
3636
% - {kib-repo}blob/{branch}/src/platform/packages/shared/kbn-doc-links/src/types.ts
37-
%
37+
%
3838
% The entry in the main links file should look like this:
39-
%
39+
%
4040
% id: `${KIBANA_DOCS}breaking-changes.html#kibana-PR_NUMBER`
41-
%
41+
%
4242
% 4. You can then call the link from any Kibana code. For example: `href: docLinks.links.upgradeAssistant.id`
4343
% Check https://docs.elastic.dev/docs/kibana-doc-links (internal) for more details about the Doc links service.
4444

45+
## Next [edot-node-next-breaking-changes]
46+
47+
::::{dropdown} Change usage of "redis-4" to "redis" in `OTEL_NODE_ENABLED_INSTRUMENTATIONS` and `OTEL_NODE_DISABLED_INSTRUMENTATIONS`
48+
49+
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".
50+
::::
51+
4552
## 1.1.0
4653

4754
::::{dropdown} AWS SDK v2 instrumentation has been dropped
4855

49-
Refer to the [opentelemetry-instrumentation-aws-sdk release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/plugins/node/opentelemetry-instrumentation-aws-sdk/CHANGELOG.md#0510-2025-04-08). The `aws.region` span attribute has been changed to `cloud.region`.
56+
Refer to the [opentelemetry-instrumentation-aws-sdk release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/plugins/node/opentelemetry-instrumentation-aws-sdk/CHANGELOG.md#0510-2025-04-08). The `aws.region` span attribute has been changed to `cloud.region`.
5057

5158
Refer to [Issue #814](https://github.com/elastic/elastic-otel-node/pull/814) and [Issue #788](https://github.com/elastic/elastic-otel-node/pull/788).
5259
::::

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)