2025-02-05 16:37:14 +01:00
---
2025-11-24 11:05:41 -08:00
description: Integrate goose with Langfuse to observe performance
2025-02-05 16:37:14 +01:00
---
# Observability with Langfuse
2025-11-24 11:05:41 -08:00
This tutorial covers how to integrate goose with Langfuse to monitor your goose requests and understand how the agent is performing.
2025-02-05 16:37:14 +01:00
## What is Langfuse
[Langfuse ](https://langfuse.com/ ) is an [open-source ](https://github.com/langfuse/langfuse ) LLM engineering platform that enables teams to collaboratively monitor, evaluate, and debug their LLM applications.
## Set up Langfuse
2026-02-11 09:35:24 -05:00
[Sign up for Langfuse Cloud ](https://cloud.langfuse.com ) or self-host Langfuse [Docker Compose ](https://langfuse.com/self-hosting/local ) to get your Langfuse API keys.
2025-02-05 16:37:14 +01:00
2025-11-24 11:05:41 -08:00
## Configure goose to Connect to Langfuse
2025-02-05 16:37:14 +01:00
2025-11-24 11:05:41 -08:00
Set the environment variables so that goose (written in Rust) can connect to the Langfuse server.
2025-02-05 16:37:14 +01:00
``` bash
export LANGFUSE_INIT_PROJECT_PUBLIC_KEY = pk-lf-...
export LANGFUSE_INIT_PROJECT_SECRET_KEY = sk-lf-...
2025-02-11 10:19:06 -08:00
export LANGFUSE_URL = https://cloud.langfuse.com # EU data region 🇪🇺
2025-02-05 16:37:14 +01:00
# https://us.cloud.langfuse.com if you're using the US region 🇺🇸
# https://localhost:3000 if you're self-hosting
```
2026-09-03 10:36:12 +02:00
By default, traces exclude model messages and tool arguments and results. To include that content, explicitly enable content capture:
``` bash
export OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT = true
```
Only enable content capture when your telemetry storage is appropriate for potentially sensitive content.
2025-11-24 11:05:41 -08:00
## Run goose with Langfuse Integration
2025-02-05 16:37:14 +01:00
2025-11-24 11:05:41 -08:00
Now, you can run goose and monitor your AI requests and actions through Langfuse.
2025-02-05 16:37:14 +01:00
2025-11-24 11:05:41 -08:00
With goose running and the environment variables set, Langfuse will start capturing traces of your goose activities.
2025-02-05 16:37:14 +01:00
_ [Example trace (public) in Langfuse](https://cloud.langfuse.com/project/cloramnkj0002jz088vzn1ja4/traces/cea4ed38-0c44-4b0a-8c20-4b0b6b9e8d73?timestamp=2025-01-31T15%3A52%3A30.362Z&observation=7c8e5807-3c29-4c28-9c6f-7d7427be401f) _
2025-11-24 11:05:41 -08:00
