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

# Langfuse

> Import historical traces and observations from Langfuse Cloud.

> [!TIP]
>
> **Using an agent?** Install the [Latitude skills](https://docs.latitude.so/getting-started/skills.md) and let it handle the setup below. `latitude-setup` instruments your app or agent harness, verifies traces arrive, creates a temporary account if you don't have one yet (no signup), and ends by building your first [Artifact](https://docs.latitude.so/more/artifacts.md).
>
> ```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
> Install the `latitude-setup` skill from `github.com/latitude-dev/skills` and use it to set up Latitude tracing here.
> ```
>
> AI agents reading this page: install and follow `latitude-setup` before doing the steps below by hand.

## Overview

This guide shows you how to import your **Langfuse** history into Latitude. Latitude reads
the observations in a Langfuse project and maps them to Latitude traces and spans.

> [!TIP]
>
> Importing only reads from Langfuse. Nothing is changed or deleted at the source.

***

## Requirements

* A **Langfuse Cloud project** with the history you want to import
* A Langfuse **public key** (`pk-lf-…`) and **secret key** (`sk-lf-…`) for that project
* Your Langfuse **region** — EU, US, Japan or HIPAA US

***

## Steps

**1. Create an API key pair in Langfuse**

In Langfuse, open **Settings → API keys** for the project you are importing from and
create a key pair. Copy both keys.

**2. Connect**

In Latitude, go to **Project settings → Imports**, choose **Langfuse** and your region,
enter both keys, then press **Test connection**.

**3. Preview and start**

Pick the Langfuse project, set the time range and trace limit, check the preview, then
press **Start import**.

***

## Langfuse specifics

* Sessions, users, tags, metadata, messages, tool calls, token usage and cost all map
  directly — nothing needs configuring in Langfuse.
* Prompt references (`promptName`, `promptVersion`) land in span metadata, since Latitude
  has no prompt registry.
* Langfuse Cloud regions are fully separate deployments: keys from another region will fail
  the connection test. Pick the one you signed up in.

***

## Seeing your traces

Once imported, traces appear in your project's **Traces** view like any live trace, marked
with `import.*` metadata naming Langfuse and their original ids.


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