import { Trace } from '../trace.ts' import { FileTracker } from './instrument.ts' export type PipelineContext = C & { pipelineId: string tron: Trace ftrace: FileTracker } export function createContext(id: string, ctx: C): PipelineContext { return { ...ctx, pipelineId: id, tron: new Trace({ id: id }), ftrace: new FileTracker({ id: id }), } }