mirror of
https://github.com/block/goose.git
synced 2026-04-29 12:09:38 +00:00
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
40 lines
1.7 KiB
Markdown
40 lines
1.7 KiB
Markdown
---
|
|
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](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
|
|
|
|
Sign up for Langfuse Cloud [here](https://cloud.langfuse.com) or self-host Langfuse [Docker Compose](https://langfuse.com/self-hosting/local) 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.
|
|
|
|
```bash
|
|
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](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)_
|
|
|
|

|
|
|