Skip to content

Commit 5d54523

Browse files
author
Hamid Tavakoli
committed
More tracing
1 parent 7a99f86 commit 5d54523

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ function start() {
169169
async function initDatabase() {
170170
// load models only after config is set
171171
logger.info('Initializing database...');
172+
const span = await logger.startSpan('initDatabase');
172173
await models.init(true);
174+
await logger.endSpan(span);
173175
}
174176

175177
// Exports
@@ -181,3 +183,5 @@ module.exports = {
181183
start,
182184
initDatabase,
183185
};
186+
187+
logger.buildService(module.exports)

0 commit comments

Comments
 (0)