langfuse

Implements LLM tracing, prompt management, and evaluation using the Langfuse observability platform.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/joySUSY/violet-plugin-place --skill langfuse-joysusy
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: langfuse
Source: https://github.com/joySUSY/violet-plugin-place/tree/main/plugins/developer-tool/ai-agent-memory/v3-expansion/langfuse
Command: npx skills add https://github.com/joySUSY/violet-plugin-place --skill langfuse-joysusy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires langfuse, openai, langchain, langchain-openai.

What problem does it solve? LLM applications lack visibility into cost, latency, and output quality, making it hard to debug failures, track regressions, and improve prompts based on real usage data. ## Core Features & Use Cases - LLM Tracing: Instrument LLM calls with traces, spans, and generations, including user IDs, session IDs, tags, and metadata. - Framework Integrations: Drop-in tracing for the OpenAI SDK (sync, async, streaming) and LangChain via a callback handler that works with chains, agents, and retrievers. - Evaluation & Scoring: Attach scores and user feedback to traces, manage datasets, and run prompt A/B tests. - Use Case: A customer-support chatbot team traces every GPT-4o call with session and user IDs, scores responses with user feedback, and uses the dashboard to catch quality regressions after a prompt change. ## Quick Start Instrument my OpenAI chat completion calls with Langfuse tracing including user ID, session ID, and token usage tracking.

Frequently Asked Questions about langfuse

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I trace OpenAI API calls with Langfuse?▼

Use the langfuse.openai drop-in replacement for the OpenAI client, which automatically traces all calls. You can pass extra parameters like name, session_id, user_id, tags, and metadata, and it works with streaming and async calls.

How to add Langfuse tracing to a LangChain application?▼

Create a Langfuse CallbackHandler with your API keys and pass it via the config callbacks parameter when invoking chains, agents, or retrievers. You can also set it as the default handler so all LangChain calls are traced automatically.

Does Langfuse work in serverless environments?▼

Yes, but traces are batched, so you must call langfuse.flush() before the function exits or data will be lost. For critical traces, consider synchronous mode or context managers to guarantee delivery.

Why are my Langfuse traces missing user analytics?▼

Traces without user_id and session_id cannot be grouped by user or session, limiting debugging and analytics. Always pass consistent identifiers and relevant metadata when creating traces or generations.

What are the limitations of self-hosted Langfuse?▼

Self-hosting requires managing your own infrastructure, and high-volume workloads may need optimization. The real-time dashboard has some latency, and evaluation features require additional setup.