Skip to content

Commit

Permalink
fix: nullish coalescing
Browse files Browse the repository at this point in the history
  • Loading branch information
naseemkullah committed Nov 26, 2019
1 parent 5a1638b commit 16a1f40
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 @@ -42,7 +42,7 @@ export const getTracedSendCommand = (tracer: Tracer, original: Function) => {
if (arguments.length === 1 && typeof cmd === 'object') {
const span = tracer.startSpan(cmd.name, {
kind: SpanKind.CLIENT,
parent: parentSpan || undefined,
parent: parentSpan ?? undefined,
attributes: {
[AttributeNames.COMPONENT]: IORedisPlugin.COMPONENT,
[AttributeNames.DB_TYPE]: 'redis',
Expand Down

0 comments on commit 16a1f40

Please sign in to comment.