Announcing Electron Support
Today, we're excited to launch Electron support for bitdrift Capture. Capture gives developers a novel twist on traditional observability – empowering devices to intelligently buffer and selectively send data – offering material cost savings and unprecedented flexibility for developers. You can send whatever logs, traces, and events you want from your Electron app (and update them in real time) all without worrying about storing and paying for heaps and heaps of noisy data.

Capture is not just for mobile!
bitdrift turns the traditional observability model on its head: instead of mass sending events from your devices and mining for insights later, we give the client the ability to intelligently retain and sift through data via our Ring Buffer. This means you don’t need to worry about carefully choosing which events and metrics you send, lest you get saddled with an observability bill the size of a small country’s GDP. You can instrument and log anything – even if you don’t know it will be valuable in advance – and then retroactively decide what data to retain or discard. It’s a completely different way of thinking about observability. Up to now, the magic of Capture has only been available to iOS and Android mobile applications (including React Native). But desktop applications have all of the same observability issues! With our Capture for Electron release, Electron based desktop applications can now benefit from our novel approach to real-time observability.Getting started with Electron
Getting an Electron app integrated requires just a few lines of code.bash
npm install @bitdrift/electron
javascript
import { init, SessionStrategy } from '@bitdrift/electron'; init("<your-api-key>", SessionStrategy.Activity);
Our initial release includes basic out-of-the-box signals including session replay, which will get you up and running quickly.javascript
import { info } from '@bitdrift/electron'; // Log line with LogLevel of Info info('Hello world!', { key: 'value' });