Class: GraphQL::Tracing::AppsignalTracing
Instance Method Summary
collapse
#initialize, #instrument, #trace, #trace_field, use
Instance Method Details
27
28
29
|
# File 'lib/graphql/tracing/appsignal_tracing.rb', line 27
def platform_authorized_key(type)
"#{type.graphql_name}.authorized.graphql"
end
|
23
24
25
|
# File 'lib/graphql/tracing/appsignal_tracing.rb', line 23
def platform_field_key(type, field)
"#{type.graphql_name}.#{field.graphql_name}.graphql"
end
|
31
32
33
|
# File 'lib/graphql/tracing/appsignal_tracing.rb', line 31
def platform_resolve_type_key(type)
"#{type.graphql_name}.resolve_type.graphql"
end
|
17
18
19
20
21
|
# File 'lib/graphql/tracing/appsignal_tracing.rb', line 17
def platform_trace(platform_key, key, data)
Appsignal.instrument(platform_key) do
yield
end
end
|