Skip to content

Commit

Permalink
Merge branch 'main' into fix-db-connection-string
Browse files Browse the repository at this point in the history
  • Loading branch information
trask authored Feb 21, 2022
2 parents de67ae5 + 0a557e8 commit 57b084d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ registerInstrumentations({
new WinstonInstrumentation({
// Optional hook to insert additional context to log metadata.
// Called after trace context is injected to metadata.
logHook: (record, span) => {
logHook: (span, record) => {
record['resource.service.name'] = provider.resource.attributes['service.name'];
},
}),
Expand Down

0 comments on commit 57b084d

Please sign in to comment.