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']; }, }),