langfuse-integration

Migrate observability from Phoenix to Langfuse Cloud EU with ALCOA+ trace attribution.

1|Updated Jul 22, 2025
One-click install
npx skills add https://github.com/Danik911/thesis_project --skill langfuse-integration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: langfuse-integration
Source: https://github.com/Danik911/thesis_project/tree/main/.claude/skills/langfuse-integration
Command: npx skills add https://github.com/Danik911/thesis_project --skill langfuse-integration

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Replaces Phoenix observability with Langfuse Cloud EU for pharmaceutical-grade traceability and monitoring, ensuring ALCOA+ attribution and data residency compliance.

Core Features & Use Cases

  • Decoupled observability: Move from local Phoenix to cloud-based Langfuse for persistent traces.
  • Compliance attributes: Inject ALCOA+/GAMP-5 at trace level for auditability.
  • Migration guidance: Step-by-step decor layer changes and migration plan.

Quick Start

Set up Langfuse client in the project to begin instrumenting workflows and collecting traces in the EU cloud.

Frequently Asked Questions about langfuse-integration

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

FAQPage Schema
How do I migrate observability from Phoenix to Langfuse?

Migrating observability to Langfuse involves decoupling from local Phoenix and connecting to Langfuse Cloud EU. Update decorator layers, replace Phoenix client initialization with Langfuse configuration, and redirect trace collection to the cloud backend. This achieves persistent storage and compliance-ready traceability.

Can I use Langfuse with LlamaIndex for compliance tracing?

Yes. Langfuse integrates with LlamaIndex through callback handlers that automatically instrument workflows. This captures detailed traces with ALCOA+ and GAMP-5 compliance attributes embedded at the trace level, enabling pharmaceutical-grade auditability.

What is ALCOA+ trace attribution and why does it matter?

ALCOA+ (Attributable, Legible, Contemporaneous, Original, Accurate, plus Complete, Consistent, Enduring) is a compliance standard for regulated industries. Langfuse enforces these principles at the trace level, ensuring every recorded interaction is auditable and production-ready for regulatory review.

How do I set up Langfuse EU for data residency compliance?

Langfuse Cloud EU keeps trace data within EU servers, satisfying data residency and GAMP-5 compliance requirements. Configure the Langfuse client with EU endpoint settings during initialization to route all observability to compliant infrastructure.

Do I need to remove Phoenix entirely when switching to Langfuse?

Yes. Migrating to Langfuse includes removing Phoenix dependencies and replacing @observe decorators with Langfuse instrumentation. This eliminates local tracing overhead and establishes a single source of truth in persistent cloud storage.

What compliance frameworks does Langfuse support for production deployment?

Langfuse supports ALCOA+ attribution and GAMP-5 compliance frameworks required for pharmaceutical and regulated environments. It provides audit trails, immutable trace records, and EU data residency to meet production deployment standards.