We use cookies or similar technologies to personalize your online experience and tailor marketing to you. Many of our product features require cookies to function properly. Your use of this site and online product constitutes your consent to these personalization technologies. Read our Privacy Policy to find out more.

X

Instrument JavaScript applications


Custom code—the logic that most directly impacts your business—is often the most interesting code to observe.

Below, you can find a couple of different ways to instrument your application: an automatic option, with more ready to go out of the box; and a more direct, customizable option. Either will help you capture data on how your code behaves in production and offer some interesting queries to explore.

Automatic Instrumentation for Node.js

The Honeycomb Beeline for Node.js is the most direct path to instrumenting your code. Beelines understand a wide range of standard packages in various ecosystems, and instrument them to send useful events to Honeycomb.

It’s easy to start with a Beeline, which will create traces automatically, then later, optionally add custom traces and context to events to capture your unique needs.

The Beeline for Node is ready out of the box for Express apps, with optional support for mysql2, pg, sequelize, mpromise, mongoose, and more.

View setup and usage instructions for the Beeline for Node.js

Automatic Instrumentation for Browser-based apps

We don’t yet have something automatic for browser instrumentation, but we have a number of best practices and example instrumentation snippets available for Instrumenting Browser JavaScript Apps.

In the meantime, let us know if you’re interested in a Beeline for Browser JS and we’ll make sure to send you an email when a beta version is available.

Use the SDK Directly

The Beeline uses the SDK underneath the hood, but using the SDK directly will offer total control over which fields to capture and how they’re sent to Honeycomb.

View setup and usage instructions for the JavaScript SDK

Open source

All Honeycomb integrations are open source, Apache 2.0 licensed, and can be found on GitHub.