Class: GraphQL::Tracing::SentryTrace::SentryMonitor::Event
Instance Attribute Summary
#keyword, #object
Instance Method Summary
collapse
#initialize
Instance Method Details
#finish ⇒ Object
74
75
76
|
# File 'lib/graphql/tracing/sentry_trace.rb', line 74
def finish
@span&.finish
end
|
#start ⇒ Object
66
67
68
69
70
71
72
|
# File 'lib/graphql/tracing/sentry_trace.rb', line 66
def start
if Sentry.initialized?
@span = Sentry.get_current_scope.get_span
span_name = @monitor.name_for(@keyword, @object)
@span.start_child(op: span_name)
end
end
|