sdk
OpenTelemetry-native observability for Cloudflare Workers, Node.js, and browsers.
A zero-dependency JavaScript SDK for logging, error tracking, and distributed tracing across Cloudflare Workers, Node.js, Vercel, and browsers, compatible with any OTLP backend.
FlareLog SDK is a JavaScript library for collecting and sending logs, errors, and traces from your application to a monitoring backend. It has no external dependencies of its own, which means adding it to a project does not pull in a chain of other packages to audit or update.
The library works across several JavaScript environments: Cloudflare Workers (edge functions that run close to users), Vercel deployments, Node.js servers, and web browsers. The same single package covers all of them without needing platform-specific wrappers.
Setup is minimal. Install the package, import it, create a logger, and call logger.info or similar methods. With zero configuration it prints to the console. Adding an API key in an environment variable causes it to forward the data to the FlareLog cloud dashboard instead. The SDK auto-detects the environment, release version, and platform, so those fields appear in your logs without manual setup.
For teams using other observability platforms, the SDK speaks OTLP, a standard wire format for telemetry data. That means it can forward logs and traces directly to Grafana, Honeycomb, Datadog, or any other backend that accepts OTLP. Distributed tracing uses the W3C trace propagation standard, so a request that travels from a browser to a Cloudflare Worker to a Node.js backend can be followed as a single trace across all three.
The README is short and points to external documentation for full setup guides, API reference, and framework-specific instructions. The license is MIT.
Where it fits
- Add structured logging and error tracking to a Cloudflare Worker with a single npm install and no extra dependencies.
- Send traces from a distributed system spanning a browser, an edge function, and a Node.js backend to Grafana using OTLP.
- Drop in a zero-dependency observability layer to a Vercel deployment that auto-detects the environment and release version.