---
title: "Two paths out of your application | Grafana Labs"
description: "Generation data goes to the Agent Observability API, and traces and metrics go out over OTLP."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Two paths out of your application

With the default SDK setup, your application sends data through two paths. The spans and metrics the SDK emits are separate from generation data and require their own setup. The setup screen in Agent Observability lists the values for both paths. **API URL** and **Instance ID** under **Your credentials** serve generation export, and **OTLP endpoint** serves the telemetry path.

## Generation export

In **generation export**, the SDK sends structured generation data to the **Agent Observability API**, the endpoint that receives generation data. When you run your instrumented agent, your first generation should appear in **Conversations** within a few seconds.

## OTLP telemetry

The SDK also emits OpenTelemetry traces and metrics over OTLP. You can send these directly to the Grafana Cloud OTLP gateway or through a local **Alloy** or **OpenTelemetry Collector**, a separate process that receives them and forwards them to Grafana Cloud with credentials. Agent Observability is built on OpenTelemetry so that your existing OpenTelemetry infrastructure handles these traces and metrics out of the box. You check for the SDK’s traces and metrics in your Grafana Cloud **Traces** and **Metrics** data sources.

> Warning
> 
> This path needs something the first does not. Your application must set up OpenTelemetry tracing and metrics, because the SDK does not create that setup, and without it the traces and metrics the SDK emits are silently lost.

[![Your application sends data through two paths: generation data to the Agent Observability API, and OTLP telemetry either directly to the Grafana Cloud OTLP gateway or through a local Alloy or OpenTelemetry Collector that forwards it to Grafana Cloud, where the Traces and Metrics data sources hold it](https://grafana.com/docs/learning-hub/intro-to-agent-observability/02-what-agent-observability-records/06-two-paths-out-of-your-application/two-paths.svg)](https://grafana.com/docs/learning-hub/intro-to-agent-observability/02-what-agent-observability-records/06-two-paths-out-of-your-application/two-paths.svg "Your application sends data through two paths: generation data to the Agent Observability API, and OTLP telemetry either directly to the Grafana Cloud OTLP gateway or through a local Alloy or OpenTelemetry Collector that forwards it to Grafana Cloud, where the Traces and Metrics data sources hold it")
