pipelens
v1.14.1
Published
An observability tool built to track, inspect and visualize intermediate steps in a pipeline, allowing user to easily debug or analyze through a dashboard.
Maintainers
Readme
pipelens/lib-ts
This is the Typescript library implemenation for pipelens
Installation
npm install pipelensQuick Start
import { Pipeline, Step } from 'pipelens';
const httpTransport = new HttpTransport({
baseUrl: 'http://localhost:3000',
});
const pipeline = new Pipeline('my-pipeline', {
autoSave: 'finish',
transport: httpTransport,
});
await pipeline.track(async (st: Step) => {
await st.step('step1', async (st: Step) => {
// Step 1 logic
st.record('key', 'value');
});
await st.step('step2', async (st: Step) => {
// Step 2 logic
return 'result';
});
});
// Export output locally
const exported = pipeline.outputPipelineLogs();See GitHub repository for more usages and repository introduction.
