goose/documentation/docs/tutorials/langfuse.md
dianed-square e7eb18b67a
Some checks are pending
Canary / bundle-desktop (push) Blocked by required conditions
Canary / bundle-desktop-linux (push) Blocked by required conditions
Canary / bundle-desktop-windows (push) Blocked by required conditions
Canary / Prepare Version (push) Waiting to run
Canary / build-cli (push) Blocked by required conditions
Canary / Upload Install Script (push) Blocked by required conditions
Canary / Release (push) Blocked by required conditions
CI / changes (push) Waiting to run
CI / Check Rust Code Format (push) Blocked by required conditions
CI / Build and Test Rust Project (push) Blocked by required conditions
CI / Lint Rust Code (push) Blocked by required conditions
CI / Check OpenAPI Schema is Up-to-Date (push) Blocked by required conditions
CI / Test and Lint Electron Desktop App (push) Blocked by required conditions
Deploy Documentation / deploy (push) Waiting to run
Live Provider Tests / check-fork (push) Waiting to run
Live Provider Tests / changes (push) Blocked by required conditions
Live Provider Tests / Build Release Binary (push) Blocked by required conditions
Live Provider Tests / Smoke Tests (push) Blocked by required conditions
Documentation Site Preview / deploy (push) Waiting to run
Publish Docker Image / docker (push) Waiting to run
docs: lowercase goose in remaining topics (#5861)
2025-11-24 11:05:41 -08:00

1.7 KiB

description
Integrate goose with Langfuse to observe performance

Observability with Langfuse

This tutorial covers how to integrate goose with Langfuse to monitor your goose requests and understand how the agent is performing.

What is Langfuse

Langfuse is an open-source LLM engineering platform that enables teams to collaboratively monitor, evaluate, and debug their LLM applications.

Set up Langfuse

Sign up for Langfuse Cloud here or self-host Langfuse Docker Compose to get your Langfuse API keys.

Configure goose to Connect to Langfuse

Set the environment variables so that goose (written in Rust) can connect to the Langfuse server.

export LANGFUSE_INIT_PROJECT_PUBLIC_KEY=pk-lf-...
export LANGFUSE_INIT_PROJECT_SECRET_KEY=sk-lf-...
export LANGFUSE_URL=https://cloud.langfuse.com # EU data region 🇪🇺

# https://us.cloud.langfuse.com if you're using the US region 🇺🇸
# https://localhost:3000 if you're self-hosting

Run goose with Langfuse Integration

Now, you can run goose and monitor your AI requests and actions through Langfuse.

With goose running and the environment variables set, Langfuse will start capturing traces of your goose activities.

Example trace (public) in Langfuse

goose trace in Langfuse