Skip to content

Commit 0f77516

Browse files
committed
suggestion to use the longer (perhaps clearer) logger var name
1 parent ed9ddaf commit 0f77516

File tree

1 file changed

+3
-3
lines changed
  • plugins/node/opentelemetry-instrumentation-bunyan

1 file changed

+3
-3
lines changed

plugins/node/opentelemetry-instrumentation-bunyan/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ const sdk = new NodeSDK({
3434
]
3535
})
3636

37-
const log = bunyan.createLogger({name: 'example'});
37+
const logger = bunyan.createLogger({name: 'example'});
3838

39-
log.info('hi');
39+
logger.info('hi');
4040
// 1. Log records will be sent to the SDK-registered log record processor, if any.
4141
// This is called "bridging".
4242

4343
const tracer = api.getTracer('example');
4444
tracer.startActiveSpan('manual-span', span => {
45-
log.info('in a span');
45+
logger.info('in a span');
4646
// 2. Fields identifying the current span will be injected into log records:
4747
// {"name":"example",...,"msg":"in a span","trace_id":"d61b4e4af1032e0aae279d12f3ab0159","span_id":"d140da862204f2a2","trace_flags":"01"}
4848
})

0 commit comments

Comments
 (0)