class GraphQL::Tracing::SkylightTracing
Public Instance Methods
platform_field_key(type, field)
click to toggle source
# File lib/graphql/tracing/skylight_tracing.rb, line 33 def platform_field_key(type, field) "graphql.#{type.name}.#{field.name}" end
platform_trace(platform_key, key, data) { || ... }
click to toggle source
# File lib/graphql/tracing/skylight_tracing.rb, line 16 def platform_trace(platform_key, key, data) if (query = data[:query]) title = query.selected_operation_name || "<anonymous>" category = platform_key elsif key.start_with?("execute_field") title = platform_key category = key else title = key category = platform_key end Skylight.instrument(category: category, title: title) do yield end end