Migrate Projects and Users from one Langfuse env to another environment #11856
-
Describe your questionIs there any mechanism to migrate projects and user from one UAT environment to PROD environment. Langfuse Cloud or Self-Hosted?Self-Hosted If Self-HostedYes If Langfuse CloudNo response SDK and integration versionsNo response Pre-Submission Checklist
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Langfuse provides a Python-based migration guide for moving data between projects or environments(1). Migrating Project DataYou can migrate traces, observations, scores, prompts, and datasets using the Langfuse Public API and Python SDK(1). The migration cookbook provides code to:
The migration preserves original trace IDs to maintain data integrity(1). User MigrationFor user and organization setup in the destination environment, you can use headless initialization. This automates resource creation on startup using environment variables(2)(3). Set these
On startup, Langfuse creates these resources if they don't exist(2). Important Notes
Check out the migration cookbook for complete Python code examples(1). 📚 Sources:
Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
Langfuse provides a Python-based migration guide for moving data between projects or environments(1).
Migrating Project Data
You can migrate traces, observations, scores, prompts, and datasets using the Langfuse Public API and Python SDK(1). The migration cookbook provides code to:
The migration preserves original trace IDs to maintain data integrity(1).
User Migration
For user and organization setup in the destination environment, you can use headless initialization. This automates resource creation on startup using environment variables(2)(3).
Set …