Skip to content

Commit 64f0155

Browse files
authored
Use asyncTimer for loadPages and loadPageMap (#17306)
1 parent 05a1720 commit 64f0155

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/warm-server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ const loadSiteTree = require('./site-tree')
77
// Instrument these functions so that
88
// it's wrapped in a timer that reports to Datadog
99
const dog = {
10-
loadPages: statsd.timer(loadPages, 'load_pages'),
11-
loadPageMap: statsd.timer(loadPageMap, 'load_page_map'),
10+
loadPages: statsd.asyncTimer(loadPages, 'load_pages'),
11+
loadPageMap: statsd.asyncTimer(loadPageMap, 'load_page_map'),
1212
loadRedirects: statsd.timer(loadRedirects, 'load_redirects'),
1313
loadSiteData: statsd.timer(loadSiteData, 'load_site_data'),
1414
loadSiteTree: statsd.asyncTimer(loadSiteTree, 'load_site_tree')

0 commit comments

Comments
 (0)