ts-trace-event
v0.4.0
Published
Google's Trace Event format tracer written in Typescript
Downloads
3
Maintainers
Readme
Google's Trace Event format tracer written in Typescript for NodeJS
Implemented as a wrapper of NodeJS Readable stream
Installation
yarn add ts-trace-event
Usage
import { TsTrace } from "ts-trace-event";
const tracer = new TsTrace();
tracer.pipe(process.stdin);
const { pid, E } = tracer.B({ name: `name`, cat: [`cat`] });
doSomething();
E(); //or
tracer.E({ name: `another-name`, cat: [`another-cat`], pid });
tracer.close();