Skip to content

Commit

Permalink
Add redirects and pagemap stats to Datadog (github#22401)
Browse files Browse the repository at this point in the history
* add redirects and pagemap to datadog

* removing server."
  • Loading branch information
gracepark authored Oct 25, 2021
1 parent 3fbda10 commit 1a30075
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/warm-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ async function warmServer() {
const pageMap = await dog.loadPageMap(pageList)
const redirects = await dog.loadRedirects(pageList)

statsd.gauge('num_redirects', Object.keys(redirects).length)
statsd.gauge('num_pages', Object.keys(pageMap).length)

if (process.env.NODE_ENV !== 'test') {
console.log(`Context primed in ${Date.now() - startTime} ms`)
}
Expand Down

0 comments on commit 1a30075

Please sign in to comment.