Skip to content

Commit f46e166

Browse files
committed
v4: drop DEFAULT_CONFIG handling, it is handled in the parent RedisInstrumentation now
1 parent 3945aab commit f46e166

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

plugins/node/opentelemetry-instrumentation-redis/src/v4/instrumentation.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,11 @@ interface MutliCommandInfo {
4848
commandArgs: Array<string | Buffer>;
4949
}
5050

51-
const DEFAULT_CONFIG: RedisInstrumentationConfig = {
52-
requireParentSpan: false,
53-
};
54-
5551
export class RedisInstrumentationV4 extends InstrumentationBase<RedisInstrumentationConfig> {
5652
static readonly COMPONENT = 'redis';
5753

5854
constructor(config: RedisInstrumentationConfig = {}) {
59-
super(PACKAGE_NAME, PACKAGE_VERSION, { ...DEFAULT_CONFIG, ...config });
60-
}
61-
62-
override setConfig(config: RedisInstrumentationConfig = {}) {
63-
super.setConfig({ ...DEFAULT_CONFIG, ...config });
55+
super(PACKAGE_NAME, PACKAGE_VERSION, config);
6456
}
6557

6658
protected init() {

0 commit comments

Comments
 (0)