Skip to main content

What is OpenTelemetry?

OpenTelemetry is an open-souce tool built for observing traces and metrics within your application. It uses a set of APIs, agents or collector services to capture these traces. OpenTelemetry (OTLP) is an open standard and ecosystem for collecting telemetry data from applications. It lets you instrument your code once and send traces, metrics, and logs to many different observability backends (such as BugByBug in this case) without changing your application code. Think of it like this: Light mode interface OTLP does not work alone, it needs what we call an “OpenTelemetry Collector” which helps it talk to BugByBug. The OpenTelemetry Collector is a standalone service that sits between your applications and BugByBug. Instead of your app or software talking directly to BugByBug, they send telemetry to the collector.

Why BugByBug uses OpenTelemetry?

You might be wondering why BugByBug relies on OpenTelemetry. The short answer is that it lets us support a broad range of languages and frameworks through a standard, zero-friction integration path, so you can start sending telemetry without adopting a proprietary SDK. At the same time, BugByBug still keeps the parts that matter for product quality and efficiency: secure authentication, intelligent filtering, and only storing the highest-signal exception data. That means you get a simpler setup experience without giving up performance or reliability.

Connecting BugByBug to OpenTelemetry

To integrate BugByBug with OpenTelemetry in your project, include your BugByBug API key in the request headers using one of the following formats:
Next, configure your OpenTelemetry HTTP exporter with the following settings:

Configuring the OTLP HTTP exporter

Your OpenTelemetry exporter should point to BugByBug’s trace endpoint and include your API key in the request headers. Although, the code example differ based on the language, but the authentication header stay the same.
helloWorld.js

Capturing errors

BugByBug automatically reads standard OpenTelemetry exception events to populate your error dashboards. When an operation fails, record the exception on the active span and set the span status to ERROR so the error appears correctly in BugByBug.

Verify Your OTel Set Up

Verify your OpenTelemetry within BugByBug and track your bugs in real time.

Verify BugByBug OTLP exporter