AGENT SKILL

langfuse-migration-deep-dive

Execute complex Langfuse migrations including data migration and platform changes. Use when migrating from other observability platforms, moving between Langfuse instances, or performing major infrastructure migrations. Trigger with phrases like "langfuse migration", "migrate to langfuse", "langfuse data migration", "langfuse platform migration", "switch to langfuse".

License 许可
MIT
最近更新
2026-05-26
Stars
★ 0
Forks
0

01 前言 Front Matter

name
langfuse-migration-deep-dive
author
Jeremy Longshore <jeremy@intentsolutions.io>
license
MIT
version
1.0.0
description
Execute complex Langfuse migrations including data migration and platform changes. Use when migrating from other observability platforms, moving between Langfuse instances, or performing major infrastructure migrations. Trigger with phrases like "langfuse migration", "migrate to langfuse", "langfuse data migration", "langfuse platform migration", "switch to langfuse".
allowed-tools
Read, Write, Edit, Bash(npm:*)
compatible-with
claude-code, codex, openclaw

02 资源文件 1

03 SKILL.md 正文

Langfuse Migration Deep Dive

Contents

Overview

Comprehensive guide for complex migrations to or between Langfuse instances, including cloud-to-self-hosted, LangSmith-to-Langfuse, and zero-downtime dual-write patterns.

Prerequisites

  • Understanding of source and target systems
  • Database access (for data migrations)
  • Downtime window planned (if needed)
  • Rollback plan prepared

Instructions

Step 1: Export Data from Source

Paginate through all traces, scores, and datasets. Export to JSON files with rate limiting (200ms between pages).

Step 2: Set Up Target Instance

For self-hosted: deploy via Docker Compose with PostgreSQL. Configure auth, secrets, and encryption.

Step 3: Import Data to Target

Recreate traces with original metadata plus migratedFrom and originalId fields. Flush after each file.

Step 4: Implement Dual-Write (Zero-Downtime)

During migration, write to both old and new systems. Gradually shift: Week 1 dual-write, Week 3 cutover.

Step 5: Validate Migration

Compare trace counts (allow 1% variance). Spot-check random traces by originalId.

Step 6: Execute Rollback if Needed

Switch environment variables back to old system and restart.

See detailed implementation for advanced patterns.

Output

  • Exported trace data from source
  • Running target Langfuse instance
  • Validated data migration
  • Dual-write capability for zero-downtime

Error Handling

Issue Cause Solution
Data loss Incomplete export Re-run with pagination
Duplicate traces Re-import Dedupe by originalId
Missing metadata Format mismatch Update adapter
Performance issues Large import Use batch processing

Examples

Migration Scenarios

Scenario Complexity Downtime Data Loss Risk
Cloud to Cloud Low None None
Self-hosted to Cloud Medium Minutes Low
Other platform to Langfuse High Hours Medium
SDK version upgrade Low None None

Resources

04 同仓库更多 Skills

SamuelChien
SamuelChien/mega-skills-collection

zustand-store-ts

Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state/action separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

zustand-store-creator

Zustand Store Creator - Auto-activating skill for Frontend Development. Triggers on: zustand store creator, zustand store creator Part of the Frontend Development skill category.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

zero-trust-config-helper

Zero Trust Config Helper - Auto-activating skill for Security Advanced. Triggers on: zero trust config helper, zero trust config helper Part of the Security Advanced skill category.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

zapier-integration-helper

Zapier Integration Helper - Auto-activating skill for Business Automation. Triggers on: zapier integration helper, zapier integration helper Part of the Business Automation skill category.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

zai-cli

Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP. Use when user needs image/video analysis, OCR, UI-to-code conversion, error diagnosis, real-time web search, web page to markdown extraction, or GitHub code exploration. Trigger with phrases like "analyze this image", "search the web for", "read this page", "explore this repo", or "use zai". Requires Z_AI_API_KEY.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

yt-research

Research competitor YouTube channels, niches, and trending topics for your content strategy. Use this skill whenever the user says "research channels", "analyze competitors", "find trending topics", "niche analysis", "competitive research", "what are other creators doing", "scrape YouTube channels", or wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.

★ 0