deep.processor.context.span_action
Handling for span actions.
SpanActionCallback
Bases: ActionCallback
Action callback to close created spans.
Source code in deep/processor/context/span_action.py
__init__(spans)
process(ctx, event, frame, arg)
Process a callback.
:param ctx: the context for this trigger :param event: the event :param frame: the frame data :param arg: the arg from settrace :return: True, to keep this callback until next match.
Source code in deep/processor/context/span_action.py
SpanActionContext
Bases: ActionContext
Action for spans.
Source code in deep/processor/context/span_action.py
can_trigger()
Check if the action can trigger.
If we do not have a span processor enabled, then skip this action. :return: True, if the trigger can be triggered.
Source code in deep/processor/context/span_action.py
SpanResult
Bases: ActionResult
Action result to map to callback.
Source code in deep/processor/context/span_action.py
__init__(spans)
process(ctx)
Process this result.
:param ctx: the triggering context
:return: an action callback if we need to do something at the 'end', or None