Skip to content

Commit

Permalink
App: Don't trace asset & static file requests
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasboyt committed Jul 17, 2019
1 parent 08b003b commit 018529a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ process.on('unhandledRejection', (err) => {
});

if (process.env.ENABLE_STACKDRIVER_TRACE) {
require('@google-cloud/trace-agent').start();
require('@google-cloud/trace-agent').start({
ignoreUrls: ['^/assets', '^/favicon.ico$', '^/robots.txt$'],
});
}

const express = require('express');
Expand Down

0 comments on commit 018529a

Please sign in to comment.