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 18:27:28 +1200
commit2c011cb5b452409db7fe1c810f1ad7440a6cedce (patch)
treef2b85b2ae667dd2673090efa0d984da328d0e031 /app/graphql
parent1f37aed1c917260eefda63a18d3a9af91c4a1abb (diff)
downloadgitlab-ce-2c011cb5b452409db7fe1c810f1ad7440a6cedce.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)