From bd66d90bb8aff0b482fa7cd50ddb6933e55211f9 Mon Sep 17 00:00:00 2001 From: jscherer92 Date: Fri, 18 Feb 2022 18:59:08 -0700 Subject: [PATCH] fix mixed up winston readme for hook --- plugins/node/opentelemetry-instrumentation-winston/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/node/opentelemetry-instrumentation-winston/README.md b/plugins/node/opentelemetry-instrumentation-winston/README.md index 16107aa88f..9e87b52b29 100644 --- a/plugins/node/opentelemetry-instrumentation-winston/README.md +++ b/plugins/node/opentelemetry-instrumentation-winston/README.md @@ -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']; }, }),