diff options
author | charlieablett <cablett@gitlab.com> | 2019-05-02 12:16:49 +1200 |
---|---|---|
committer | charlieablett <cablett@gitlab.com> | 2019-05-30 17:29:15 +1200 |
commit | d1234c8f6797c86194a4999a201cfdac225de198 (patch) | |
tree | 315f80a58e6c20d6c869719f6fd97aebe59b2fbf /app/graphql | |
parent | ac020f12d0fef4dc4413081425920bd14e55b84f (diff) | |
download | gitlab-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.rb | 2 |
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) |