Why OpenTelemetry?
OpenTelemetry is an open-source observability framework for generating, collecting, and exporting telemetry data from applications. It provides a common standard for collecting information about how your software behaves, without tying your instrumentation to a particular monitoring vendor. With OpenTelemetry, you can:- Instrument applications using supported language libraries and integrations.
- Collect telemetry across different services and environments.
- Export telemetry to compatible observability platforms.
- Use a consistent approach across your technology stack.
How BugByBug uses OpenTelemetry
OpenTelemetry collects telemetry from your application and sends it to BugByBug for monitoring and investigation. The general flow looks like this:- Instrument your application. Add OpenTelemetry instrumentation to generate telemetry from your application and its dependencies.
- Export telemetry. Configure an OpenTelemetry exporter to send the data to BugByBug, either directly or through an OpenTelemetry Collector.
- Receive telemetry in BugByBug. BugByBug receives the exported data and makes it available for monitoring and investigation.
- Investigate errors. BugByBug uses the available telemetry and application context to help identify what went wrong and why.
- Review recommendations. Use the investigation results, relevant code, and suggested changes to decide how to resolve the issue.
What telemetry can you send?
OpenTelemetry supports several types of telemetry. BugByBug uses application telemetry to help build a clearer picture of errors and application behavior.
The information BugByBug can investigate depends on what your application is instrumented to collect and export. OpenTelemetry does not automatically capture every error or event without the appropriate instrumentation and configuration.
Connecting OpenTelemetry to BugByBug
There are two common ways to send telemetry to BugByBug.Option 1: Export directly from your application
Your application uses an OpenTelemetry SDK and exporter to send telemetry directly to BugByBug. This is a straightforward option for applications where you want to configure telemetry export within the application itself.Option 2: Use the OpenTelemetry Collector
The OpenTelemetry Collector sits between your application and BugByBug. Your application sends telemetry to the Collector, which can receive, process, and export that data to BugByBug. This approach is useful when you want a centralized place to manage telemetry from multiple applications or services. Both approaches use OpenTelemetry standards. The right choice depends on your application’s architecture and how you want to manage telemetry.BugByBug’s OTLP connection details
BugByBug accepts telemetry through the OpenTelemetry Protocol (OTLP). For the trace export configuration documented in this guide, use:
Your project API key is used to authenticate the export request. Keep it secure and avoid exposing server-side credentials in client-side application code.
For browser applications, use a secure backend proxy or another approved browser-ingestion configuration. Do not place a private project or administrative key in a public frontend bundle.
See the integration guides for the exact configuration and code examples.
What happens after you connect?
Once your application is configured and successfully exporting telemetry, BugByBug can use the received data to monitor your application and support error investigations. When an error is reported, the available context helps BugByBug investigate the issue, identify likely causes, surface relevant code, and recommend possible next steps. You remain in control of reviewing, testing, and applying any suggested changes.What’s next?
- Get Started: Create a project and configure your BugByBug connection.
- Integrations: Follow the setup guide for your language, framework, or OpenTelemetry Collector.
- Verify your connection: Confirm that telemetry is reaching BugByBug.