Skip to content

Commit 96ccbb5

Browse files
committed
chore: fixed the lint and test
1 parent a95d05b commit 96ccbb5

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

packages/instrumentation-ioredis/src/instrumentation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export class IORedisInstrumentation extends InstrumentationBase<IORedisInstrumen
184184
}
185185

186186
const { host, port } = this.options;
187-
187+
188188
const dbQueryText = dbStatementSerializer(cmd.name, cmd.args);
189189
if (instrumentation._dbSemconvStability & SemconvStability.OLD) {
190190
attributes[ATTR_DB_SYSTEM] = DB_SYSTEM_VALUE_REDIS;

packages/instrumentation-ioredis/test/ioredis.test.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -483,14 +483,6 @@ describe('ioredis', () => {
483483
assert.strictEqual(endedSpans[1].name, 'set');
484484
assert.strictEqual(endedSpans[2].name, 'get');
485485
assert.strictEqual(endedSpans[3].name, 'exec');
486-
assert.strictEqual(
487-
endedSpans[1].attributes[ATTR_DB_OPERATION_NAME],
488-
'MULTI set'
489-
);
490-
assert.strictEqual(
491-
endedSpans[2].attributes[ATTR_DB_OPERATION_NAME],
492-
'MULTI get'
493-
);
494486
testUtils.assertSpan(
495487
endedSpans[0],
496488
SpanKind.CLIENT,
@@ -528,14 +520,6 @@ describe('ioredis', () => {
528520
assert.strictEqual(endedSpans[0].name, 'set');
529521
assert.strictEqual(endedSpans[1].name, 'del');
530522
assert.strictEqual(endedSpans[2].name, 'test span');
531-
assert.strictEqual(
532-
endedSpans[0].attributes[ATTR_DB_OPERATION_NAME],
533-
'PIPELINE set'
534-
);
535-
assert.strictEqual(
536-
endedSpans[1].attributes[ATTR_DB_OPERATION_NAME],
537-
'PIPELINE del'
538-
);
539523
testUtils.assertSpan(
540524
endedSpans[0],
541525
SpanKind.CLIENT,

0 commit comments

Comments
 (0)