summaryrefslogtreecommitdiff
path: root/app/graphql
diff options
context:
space:
mode:
authorcharlieablett <cablett@gitlab.com>2019-05-02 12:16:49 +1200
committercharlieablett <cablett@gitlab.com>2019-05-30 17:29:15 +1200
commitd1234c8f6797c86194a4999a201cfdac225de198 (patch)
tree315f80a58e6c20d6c869719f6fd97aebe59b2fbf /app/graphql
parentac020f12d0fef4dc4413081425920bd14e55b84f (diff)
downloadgitlab-ce-d1234c8f6797c86194a4999a201cfdac225de198.tar.gz
Implement logger analyzer
- Modify GraphqlLogger to subclass JsonLogger - Replace the single-line analyser with one that can log all the GraphQL query related information in one place. - Implement analyzer behavior with spec
Diffstat (limited to 'app/graphql')
-rw-r--r--app/graphql/gitlab_schema.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/graphql/gitlab_schema.rb b/app/graphql/gitlab_schema.rb
index a63f45f231c..f8ad6bee21b 100644
--- a/app/graphql/gitlab_schema.rb
+++ b/app/graphql/gitlab_schema.rb
@@ -16,7 +16,7 @@ class GitlabSchema < GraphQL::Schema
use Gitlab::Graphql::Connections
use Gitlab::Graphql::GenericTracing
- query_analyzer Gitlab::Graphql::QueryAnalyzers::LogQueryComplexity.analyzer
+ query_analyzer Gitlab::Graphql::QueryAnalyzers::LoggerAnalyzer.new
query(Types::QueryType)