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

# Create a data source

> Add a website or an OpenTelemetry service to your workspace.

Select **Create data source** on the [Data](https://interfere.com/~/*/data) page, or press `A`, to open [Create data source](https://interfere.com/~/*/data/create). Answer **What are you sending data from?** and select **Continue**:

| Choice | Use it for | Sends data through |
| - | - | - |
| **Frontend** | A website or web app | The Interfere SDK |
| **Backend** | An API, worker or job | OpenTelemetry |
| **Something else** | A database, queue or other infrastructure | OpenTelemetry |

Creating a frontend requires permission to manage data sources. Backend and other sources need permission to manage the Workspace keys OpenTelemetry uses. A choice your role can't use is disabled and says so.

Give each separately deployed service its own data source, such as a storefront and its backend API.

## Frontend

Frontend setup connects your code and deployment first, then adds the SDK through a pull request.

1. **Connect your code repository.** Choose the [GitHub](https://interfere.com/docs/integrations/github.md) repository, and the directory for a monorepo, that holds the site.
2. **Connect your deployment provider.** Choose where the site deploys, such as a [Vercel](https://interfere.com/docs/integrations/vercel.md) project or a [Cloudflare Worker](https://interfere.com/docs/integrations/cloudflare-workers.md).
3. **How do you want to add Interfere?** Select **Use Interfere MCP**, the recommended path, or select **or add the code yourself** to write the change by hand.

### Use Interfere MCP

Your coding agent writes the change and opens the pull request.

1. Under **Connect your agent to the Interfere MCP**, select **Copy** next to Claude Code or Codex and run the command in your terminal; it installs the [Interfere plugin](https://interfere.com/docs/integrations/plugins.md). For Cursor, select **Add**. For another agent, copy the **URL** or the **Generic install prompt**. See [MCP](https://interfere.com/docs/integrations/mcp.md) for other ways to connect.
2. Select **Continue**. Under **Set up the Interfere SDK with your agent**, copy the **Interfere SDK setup prompt** and give it to your agent in the project.
3. The agent makes the change on a branch named `interfere/setup` and opens a pull request titled `feat: add Interfere`.

### Add the code yourself

**Add to your codebase** shows the snippets for **Next.js** or **Vite**. Add them on a branch named `interfere/setup` and open a pull request. The first snippet sets `INTERFERE_API_KEY` to a Workspace API key; select **Manage Workspace keys** to create one under **Settings → Developer**. The [Next.js](https://interfere.com/docs/sdk/next-js.md), [Vite](https://interfere.com/docs/sdk/vite.md) and [TanStack Start](https://interfere.com/docs/sdk/tanstack-start.md) guides explain each step and the key permissions.

### Finish setup

Setup then shows **Waiting for your pull request to merge**. Merge the pull request and deploy it. The site appears on the Data page when it sends its first data, linked to the repository and deployment you chose. If the setup page is still open, it opens the new data source.

While setup is in progress, the Data page shows a **New data source** card marked **Setup incomplete** or **Waiting for PR to merge**. Select it to resume.

## Backend or something else

**Set up OpenTelemetry** shows the exporter to add to your OpenTelemetry Collector configuration. List `otlphttp/interfere` in your traces, logs and metrics pipelines. The exporter reads its key from `INTERFERE_TELEMETRY_KEY`, a Workspace API key with the **Send telemetry** permission; select **Manage Workspace keys** to create one.

The page updates when your first telemetry arrives and shows **Open it** to go to the new data source. Each `service.name` that reports becomes its own data source. To send telemetry from a service without a Collector, follow [OpenTelemetry ingestion](https://interfere.com/docs/sdk/otel-ingestion.md). For NestJS, follow the [NestJS guide](https://interfere.com/docs/sdk/nestjs.md).


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