langfuse

Instruments gateway functions with @observe() tracing for LLM applications.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/edupazogle/agentic_cockpit --skill langfuse-edupazogle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: langfuse
Source: https://github.com/edupazogle/agentic_cockpit/tree/main/.agents/skills/langfuse
Command: npx skills add https://github.com/edupazogle/agentic_cockpit --skill langfuse-edupazogle

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Langfuse integration helps you reliably add observability to LLM-powered systems, manage prompts/datasets/evals, and query trace data without losing performance or leaking sensitive information.

Core Features & Use Cases

  • Gateway tracing with @observe(): Ensures every LLM/tool-touching gateway function creates trace spans and propagates Langfuse trace IDs for cockpit deep-links.
  • Safe trace hygiene: Prevents PII and sensitive secrets from being recorded in trace inputs/outputs or span metadata.
  • Operational CLI workflows: Uses langfuse-cli to discover resources and query or modify traces, prompts, datasets, scores, and evals, including guidance for evaluation runs.

Quick Start

Use the langfuse skill to instrument your gateway by asking the AI to provide a step-by-step plan for adding @observe() to your LLM/tool calls and propagating trace IDs into scenario_runs while ensuring no PII is included.

Frequently Asked Questions about langfuse

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

FAQPage Schema
How do I add LLM tracing to my application using Langfuse?

To add LLM tracing, you instrument gateway functions with the mandatory @observe() decorator, ensuring every LLM or tool-touching call creates trace spans and propagates Langfuse trace IDs for cockpit deep-links.

How does Langfuse handle PII redaction in trace inputs and outputs?

Langfuse integration enforces safe trace hygiene by applying defensive handling to prevent PII and sensitive credentials from being recorded in trace inputs, outputs, or span metadata during LLM observability.

Can I manage prompts and run dataset-driven evaluations with Langfuse?

Yes, you can manage prompt and evaluation assets and run dataset-driven evals by using langfuse-cli workflows to discover resources and query or modify traces, prompts, datasets, scores, and evals.

What configuration is required for self-hosted Langfuse deployments?

Self-hosted or private deployments require correct configuration of the LANGFUSE_HOST environment variable and valid API keys to connect your LLM application and enable end-to-end observability.

What is the best way to query Langfuse trace data during development?

The best way to query trace data is using langfuse-cli operational workflows, which allow you to discover resources and query or modify traces, prompts, datasets, scores, and evals directly from your environment.

Why do I need to propagate trace IDs into scenario runs?

Propagating Langfuse trace IDs into scenario runs ensures end-to-end observability across your LLM application, linking individual evaluation executions to broader trace contexts for accurate cockpit deep-links.