Skip to content

Commit

Permalink
feat: enable tracing for non-production environments
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateu Aguiló Bosch committed Nov 2, 2018
1 parent 1ad1968 commit 6031d63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/simpleServerWithContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ module.exports = async (
additionalSchemaDirectives
),
context,
// This is the same check made by the Apollo Server to enable/disable
// introspection in production.
tracing: process.env.NODE_ENV !== 'production',
});

0 comments on commit 6031d63

Please sign in to comment.