Instrument Java applications | Honeycomb

We use cookies or similar technologies to personalize your online experience & tailor marketing to you. Many of our product features require cookies to function properly.

Read our privacy policy I accept cookies from this site

Instrument Java applications

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

Below, you can find different ways to instrument your application: automatic options, 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.

Honeycomb OpenTelemetry Distribution  🔗

The Honeycomb OpenTelemetry Distribution for Java is the most direct path to instrumenting your code. The OpenTelemetry Distribution understands a wide range of standard packages in various ecosystems, and automatically instruments them to send useful events to Honeycomb.

You can start with auto-instrumentation, which will create traces automatically, and then later, optionally add custom traces and context to events to capture your unique needs.

View setup and usage instructions for the OpenTelemetry Distribution for Java.

Use Libhoney Directly  🔗

Libhoney is a low-level library for sending structured events to Honeycomb’s API. The Java Beeline package uses libhoney under the hood.

View setup and usage instructions for Libhoney for Java.