Skip to content

haoadoreorange/ts-trace-event

Repository files navigation

Google's Trace Event format tracer written in Typescript for NodeJS

Build Status

NPM

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();

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published