Skip to content

Commit

Permalink
fix(documentation): mixed up winston readme for hook (open-telemetry#910
Browse files Browse the repository at this point in the history
)

Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
  • Loading branch information
jscherer92 and vmarchaud authored Feb 21, 2022
1 parent f1d2fd0 commit 0a557e8
Showing 1 changed file with 1 addition and 1 deletion.
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 0a557e8

Please sign in to comment.