Skip to content

Commit

Permalink
fix(opentelemetry-instrumentation-redis): add condition before error …
Browse files Browse the repository at this point in the history
…print (#897)
  • Loading branch information
haddasbronfman committed Feb 21, 2022
1 parent d3883d3 commit f1d2fd0
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -140,7 +140,9 @@ export const getTracedInternalSendCommand = (
responseHook(span, cmd.command, cmd.args, reply);
},
err => {
diag.error('Error executing responseHook', err);
if (err) {
diag.error('Error executing responseHook', err);
}
},
true
);
Expand Down

0 comments on commit f1d2fd0

Please sign in to comment.