> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bugbybug.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Key Concepts in BugByBug

> Learn the terminologies in BugByBug

Before connecting your application to BugByBug, it helps to understand a few concepts you'll encounter throughout the documentation.

This page introduces the terminology behind BugByBug, application monitoring, and OpenTelemetry. You don't need to be an OpenTelemetry expert to get started.

## BugByBug concepts

### Project

A project is the workspace you create in BugByBug for an application you want to monitor.

Each project has its own API key, which you use to authenticate telemetry sent to BugByBug.

### API Key

An API key is a credential that allows your application or telemetry exporter to authenticate when sending data to BugByBug.

You'll need your project's API key when configuring your OpenTelemetry exporter.

> [!TIP]
>
> **Security note:** Treat your API key as a credential.
> Keep secret keys out of public repositories and client-side application bundles.
> Where possible, send telemetry through your backend or a Collector rather than exposing a secret key in the browser.

### Application and Service

An application is the software you're monitoring. It may consist of several services working together.

For example, an e-commerce application might include a frontend, an API service, a payment service, and a background worker.

OpenTelemetry uses the `service.name` resource attribute to identify individual services in your telemetry.

## Telemetry concepts

### Telemetry

Telemetry is the data your application generates about its behavior and operation.

BugByBug uses application telemetry to monitor errors and provide context for investigating issues.

The main types of data you'll encounter are:

### Errors

Errors represent failures or exceptional events in your application, such as uncaught exceptions or failed operations.

BugByBug uses available error information and related context to help developers investigate what went wrong.

### Traces

Traces show how a request or operation travels through an application.

For example, when a user makes a purchase, a trace can help show how the request moves from the frontend to an API, then to a payment service.

Traces help developers understand where delays or failures occur across multiple services.

### Logs

Logs are timestamped records of events that happen while an application runs.

They can contain information about application activity, warnings, failures, and other events that help developers understand what happened.

### Metrics

Metrics are numerical measurements collected over time that describe application behavior.

Examples include request counts, error rates, response times, and resource usage.

Metrics help developers identify patterns, monitor performance, and spot unusual behavior.

## OpenTelemetry concepts

### OpenTelemetry (OTel)

OpenTelemetry is an open-source observability framework and set of standards for generating, collecting, and exporting telemetry from applications.

It provides a consistent approach to instrumenting applications across different languages, frameworks, and environments.

BugByBug uses OpenTelemetry to receive application telemetry without requiring developers to adopt proprietary BugByBug SDKs.

### Instrumentation

Instrumentation is the process of adding the ability to collect telemetry from your application.

This can be done manually by adding instrumentation code or through automatic instrumentation provided by OpenTelemetry libraries and agents.

The instrumentation determines what information your application collects and sends.

### Exporter

An exporter is a component that sends telemetry from your application or telemetry pipeline to a destination.

In a BugByBug integration, the OpenTelemetry exporter sends supported telemetry to BugByBug using the configured endpoint and authentication credentials.

### OpenTelemetry Collector

The OpenTelemetry Collector is a vendor-neutral component that receives, processes, and exports telemetry.

Instead of configuring every application to send data directly to BugByBug, you can route telemetry through a Collector.

This is particularly useful when monitoring multiple applications or services and managing telemetry centrally.

## Putting the concepts together

Here's how these concepts fit into a typical BugByBug integration:

1. Create a **project** in BugByBug and retrieve its **API key**.
2. Add OpenTelemetry **instrumentation** to your application.
3. Configure an **exporter** to send telemetry to BugByBug, either directly or through an **OpenTelemetry Collector**.
4. BugByBug receives the supported telemetry, including errors, traces, logs, and metrics.
5. Use the available data to monitor your application and investigate issues.

## What's next?

Now that you're familiar with the terminology, let's take a closer look at how OpenTelemetry works with BugByBug and the different ways to connect your applications.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.