Skip to content

Commit

Permalink
test: update dummy file
Browse files Browse the repository at this point in the history
  • Loading branch information
wrn14897 committed Jul 20, 2024
1 parent 8eafbcb commit aeb6e5a
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions packages/node-opentelemetry/examples/dummy.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,16 +292,7 @@ app.get('/instruments', async (req, res) => {
});

app.get('/logs', async (req, res) => {
console.debug({
headers: req.headers,
method: req.method,
url: req.url,
query: req.query,
});
console.error('BANG !!!');
console.log('Console πŸ•');
logger.info({
message: 'Winston πŸ•',
const nestedObj = {
headers: req.headers,
method: req.method,
url: req.url,
Expand All @@ -315,9 +306,16 @@ app.get('/logs', async (req, res) => {
foo: 'bar',
},
},
};
console.error({
message: 'Console πŸ•',
...nestedObj,
});
logger.info('Winston πŸ•', nestedObj);
pinoLogger.info({
message: 'Pino πŸ•',
...nestedObj,
});
pinoLogger.info('Pino πŸ•');

bunyanLogger.info('Bunyan πŸ•');

console.log(await sendGetRequest());
Expand Down

0 comments on commit aeb6e5a

Please sign in to comment.