Module: GraphQL::Tracing::AppsignalTrace
- Includes:
- PlatformTrace
- Defined in:
- lib/graphql/tracing/appsignal_trace.rb
Instance Method Summary
collapse
#platform_authorized_lazy, #platform_execute_field_lazy, #platform_resolve_type_lazy
Instance Method Details
#initialize(set_action_name: false, **rest) ⇒ Object
13
14
15
16
|
# File 'lib/graphql/tracing/appsignal_trace.rb', line 13
def initialize(set_action_name: false, **rest)
@set_action_name = set_action_name
super
end
|
54
55
56
57
58
|
# File 'lib/graphql/tracing/appsignal_trace.rb', line 54
def platform_authorized(platform_key)
Appsignal.instrument(platform_key) do
yield
end
end
|
70
71
72
|
# File 'lib/graphql/tracing/appsignal_trace.rb', line 70
def platform_authorized_key(type)
"#{type.graphql_name}.authorized.graphql"
end
|
48
49
50
51
52
|
# File 'lib/graphql/tracing/appsignal_trace.rb', line 48
def platform_execute_field(platform_key)
Appsignal.instrument(platform_key) do
yield
end
end
|
66
67
68
|
# File 'lib/graphql/tracing/appsignal_trace.rb', line 66
def platform_field_key(field)
"#{field.owner.graphql_name}.#{field.graphql_name}.graphql"
end
|
60
61
62
63
64
|
# File 'lib/graphql/tracing/appsignal_trace.rb', line 60
def platform_resolve_type(platform_key)
Appsignal.instrument(platform_key) do
yield
end
end
|
74
75
76
|
# File 'lib/graphql/tracing/appsignal_trace.rb', line 74
def platform_resolve_type_key(type)
"#{type.graphql_name}.resolve_type.graphql"
end
|