tisserande.tracking.context

Execution context that orchestrates provenance recording for one function call.

Classes

TrackingContext

Manages the lifecycle of a single execution being tracked.

Module Contents

class tisserande.tracking.context.TrackingContext(backend: tisserande.tracking.backends.TrackingBackend)[source]

Manages the lifecycle of a single execution being tracked.

start_execution(inspector: tisserande.tracking.inspector.ArgumentInspector, args: tuple[Any, Ellipsis], kwargs: dict[str, Any]) None[source]

Create Execution + function node + input nodes + input edges.

finish_execution(inspector: tisserande.tracking.inspector.ArgumentInspector, result: Any, exception: BaseException | None = None) None[source]

Create output nodes + output edges, update Execution with timing/status.