class Sentry::Span

def with_child_span(**attributes, &block)

Other tags:
    Yieldparam: child_span -

Parameters:
  • block (Proc) -- the action to be recorded in the child span.
  • attributes (Hash) -- the attributes for the child span.
def with_child_span(**attributes, &block)
  child_span = start_child(**attributes)
  yield(child_span)
  child_span.finish
rescue
  child_span.set_http_status(500)
  child_span.finish
  raise
end