@leracherry/tracelens-protocol
v1.0.0
Published
TraceLens protocol: frontend performance debugging
Maintainers
Readme
@leracherry/tracelens-protocol
Telemetry types and validation for TraceLens v1.0.0.
Installation
Install from npm using the command below, or see GitHub Packages authentication. Both registries use the same package names. Keep all TraceLens packages on matching versions.
npm install @leracherry/[email protected]Usage
import { isTraceLensEvent } from '@leracherry/tracelens-protocol';
import type { AnyTraceLensEvent } from '@leracherry/tracelens-protocol';
const events: AnyTraceLensEvent[] = input.filter(isTraceLensEvent);Defines versioned event envelopes and payloads shared by TraceLens packages. The example assumes input is an array of unknown values. Validation is not sanitization; apply privacy controls before storing or forwarding telemetry.
See the guide and release notes. Licensed MIT.
