Module: GraphQL::Tracing::MonitorTrace::Monitor::GraphQLPrefixNames

Included in:
PrometheusTrace::PrometheusMonitor, SentryTrace::SentryMonitor, StatsdTrace::StatsdMonitor
Defined in:
lib/graphql/tracing/monitor_trace.rb

Constant Summary collapse

PARSE_NAME =
"graphql.parse"
LEX_NAME =
"graphql.lex"
VALIDATE_NAME =
"graphql.validate"
EXECUTE_NAME =
"graphql.execute"
ANALYZE_NAME =
"graphql.analyze"

Instance Method Summary collapse

Instance Method Details

#platform_authorized_key(type) ⇒ Object



123
124
125
# File 'lib/graphql/tracing/monitor_trace.rb', line 123

def platform_authorized_key(type)
  "graphql.authorized.#{type.graphql_name}"
end

#platform_field_key(field) ⇒ Object



119
120
121
# File 'lib/graphql/tracing/monitor_trace.rb', line 119

def platform_field_key(field)
  "graphql.#{field.path}"
end

#platform_resolve_type_key(type) ⇒ Object



127
128
129
# File 'lib/graphql/tracing/monitor_trace.rb', line 127

def platform_resolve_type_key(type)
  "graphql.resolve_type.#{type.graphql_name}"
end

#platform_source_class_key(source_class) ⇒ Object



131
132
133
# File 'lib/graphql/tracing/monitor_trace.rb', line 131

def platform_source_class_key(source_class)
  "graphql.fetch.#{source_class.name.gsub("::", "_")}"
end