Class: Startback::Audit::OperationTracer

Inherits:
Object
  • Object
show all
Includes:
Shared
Defined in:
lib/startback/audit/operation_tracer.rb

Instance Method Summary collapse

Methods included from Shared

#op_context, #op_data, #op_name

Instance Method Details

#call(runner, op, &block) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/startback/audit/operation_tracer.rb', line 8

def call(runner, op, &block)
  op.context.trace_span({
    type: :operation,
    op: op_name(op),
    data: op_data(op),
    context: op_context(op)
  }, &block)
end