Module: GraphQL::Tracing::SentryTrace

Includes:
PlatformTrace
Defined in:
lib/graphql/tracing/sentry_trace.rb

Instance Method Summary collapse

Methods included from PlatformTrace

#initialize

Instance Method Details

#platform_authorized(platform_key, &block) ⇒ Object



33
34
35
# File 'lib/graphql/tracing/sentry_trace.rb', line 33

def platform_authorized(platform_key, &block)
  instrument_execution(platform_key, "authorized", &block)
end

#platform_authorized_key(type) ⇒ Object



53
54
55
# File 'lib/graphql/tracing/sentry_trace.rb', line 53

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

#platform_authorized_lazy(platform_key, &block) ⇒ Object



37
38
39
# File 'lib/graphql/tracing/sentry_trace.rb', line 37

def platform_authorized_lazy(platform_key, &block)
  instrument_execution(platform_key, "authorized_lazy", &block)
end

#platform_execute_field(platform_key, &block) ⇒ Object



25
26
27
# File 'lib/graphql/tracing/sentry_trace.rb', line 25

def platform_execute_field(platform_key, &block)
  instrument_execution(platform_key, "execute_field", &block)
end

#platform_execute_field_lazy(platform_key, &block) ⇒ Object



29
30
31
# File 'lib/graphql/tracing/sentry_trace.rb', line 29

def platform_execute_field_lazy(platform_key, &block)
  instrument_execution(platform_key, "execute_field_lazy", &block)
end

#platform_field_key(field) ⇒ Object



49
50
51
# File 'lib/graphql/tracing/sentry_trace.rb', line 49

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

#platform_resolve_type(platform_key, &block) ⇒ Object



41
42
43
# File 'lib/graphql/tracing/sentry_trace.rb', line 41

def platform_resolve_type(platform_key, &block)
  instrument_execution(platform_key, "resolve_type", &block)
end

#platform_resolve_type_key(type) ⇒ Object



57
58
59
# File 'lib/graphql/tracing/sentry_trace.rb', line 57

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

#platform_resolve_type_lazy(platform_key, &block) ⇒ Object



45
46
47
# File 'lib/graphql/tracing/sentry_trace.rb', line 45

def platform_resolve_type_lazy(platform_key, &block)
  instrument_execution(platform_key, "resolve_type_lazy", &block)
end