Skip to content

Commit

Permalink
fix: allow arguments to be greater than 1
Browse files Browse the repository at this point in the history
  • Loading branch information
naseemkullah committed Dec 15, 2019
1 parent 151b679 commit 2d76a4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/opentelemetry-plugin-ioredis/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const traceSendCommand = (tracer: Tracer, original: Function) => {
) {
const parentSpan = tracer.getCurrentSpan();

if (arguments.length === 1 && typeof cmd === 'object') {
if (arguments.length >= 1 && typeof cmd === 'object') {
const span = tracer.startSpan(cmd.name, {
kind: SpanKind.CLIENT,
parent: parentSpan,
Expand Down

0 comments on commit 2d76a4f

Please sign in to comment.