Skip to content

Commit

Permalink
add small comment about instrumentations
Browse files Browse the repository at this point in the history
  • Loading branch information
helfer committed May 24, 2016
1 parent 25c1914 commit 75da4e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/apolloServer.js
Expand Up @@ -26,6 +26,9 @@ export default function apolloServer(options, ...rest) {
return (req, res) => {
let tracerLogger;

// TODO instrument ApolloServer's schema creation as well, so you know how long
// it takes. May be a big waste of time to recreate the schema for every request.

return new Promise(resolve => {
resolve(typeof options === 'function' ? options(req) : options);
}).then(optionsData => {
Expand Down

0 comments on commit 75da4e8

Please sign in to comment.