Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/graphql/generic_tracing.rb')
-rw-r--r--lib/gitlab/graphql/generic_tracing.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/gitlab/graphql/generic_tracing.rb b/lib/gitlab/graphql/generic_tracing.rb
index 936b22d5afa..d3de9c714f4 100644
--- a/lib/gitlab/graphql/generic_tracing.rb
+++ b/lib/gitlab/graphql/generic_tracing.rb
@@ -23,6 +23,14 @@ module Gitlab
"#{type.name}.#{field.name}"
end
+ def platform_authorized_key(type)
+ "#{type.graphql_name}.authorized"
+ end
+
+ def platform_resolve_type_key(type)
+ "#{type.graphql_name}.resolve_type"
+ end
+
def platform_trace(platform_key, key, data, &block)
tags = { platform_key: platform_key, key: key }
start = Gitlab::Metrics::System.monotonic_time