langfuse-local-dev-loop

Featured

Set up Langfuse local development workflow with hot reload and debugging. Use when developing LLM applications locally, debugging traces, or setting up a fast iteration loop with Langfuse. Trigger with phrases like "langfuse local dev", "langfuse development", "debug langfuse traces", "langfuse hot reload", "langfuse dev workflow".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Langfuse Local Dev Loop ## Overview Fast local development workflow with Langfuse tracing, immediate trace visibility, debug logging, and optional self-hosted local instance via Docker. ## Prerequisites - Completed `langfuse-install-auth` setup - Node.js 18+ with `tsx` for hot reload (`npm install -D tsx`) - Docker (optional, for self-hosted local instance) ## Instructions ### Step 1: Development Environment File ```bash # .env.local (git-ignored) LANGFUSE_PUBLIC_KEY=pk-lf-dev-... LANGFUSE_SECRET_KEY=sk-lf-dev-... LANGFUSE_BASE_URL=https://cloud.langfuse.com # Dev-specific settings NODE_ENV=development OPENAI_API_KEY=sk-... ``` ### Step 2: Dev-Optimized Langfuse Setup (v4+) ```typescript // src/lib/langfuse-dev.ts import { LangfuseSpanProcessor } from "@langfuse/otel"; import { NodeSDK } from "@opentelemetry/sdk-node"; import { LangfuseClient } from "@langfuse/client"; const isDev = process.env.NODE_ENV !== "production"; // Configure span processor with dev-friendly settings const processor = new LangfuseSpanProcessor({ // In dev: flush immediately for instant visibility ...(isDev && { exportIntervalMillis: 1000, maxExportBatchSize: 1 }), }); const sdk = new NodeSDK({ spanProcessors: [processor] }); sdk.start(); export const langfuse = new LangfuseClient(); // Print trace URLs in development export function logTrace(traceId: string) { if (isDev) { const host = process.env.LANGFUSE_BASE_URL || "https://cloud.langfuse.com"; console.log(`\n Trace: $...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

langfuse-hello-world

Create a minimal working Langfuse trace example. Use when starting a new Langfuse integration, testing your setup, or learning basic Langfuse tracing patterns. Trigger with phrases like "langfuse hello world", "langfuse example", "langfuse quick start", "first langfuse trace", "simple langfuse code".

2,266 Updated today
jeremylongshore
AI & Automation Featured

langfuse-reference-architecture

Production-grade Langfuse architecture patterns and best practices. Use when designing LLM observability infrastructure, planning Langfuse deployment, or implementing enterprise-grade tracing architecture. Trigger with phrases like "langfuse architecture", "langfuse design", "langfuse infrastructure", "langfuse enterprise", "langfuse at scale".

2,266 Updated today
jeremylongshore
AI & Automation Featured

langfuse-core-workflow-a

Execute Langfuse primary workflow: Tracing LLM calls and spans. Use when implementing LLM tracing, building traced AI features, or adding observability to existing LLM applications. Trigger with phrases like "langfuse tracing", "trace LLM calls", "add langfuse to openai", "langfuse spans", "track llm requests".

2,266 Updated today
jeremylongshore
AI & Automation Featured

langfuse-multi-env-setup

Configure Langfuse across development, staging, and production environments. Use when setting up multi-environment deployments, configuring per-environment keys, or implementing environment-specific Langfuse configurations. Trigger with phrases like "langfuse environments", "langfuse staging", "langfuse dev prod", "langfuse environment setup", "langfuse config by env".

2,266 Updated today
jeremylongshore
DevOps & Infrastructure Featured

langfuse-deploy-integration

Deploy Langfuse with your application across different platforms. Use when deploying Langfuse to Vercel, AWS, GCP, or Docker, or integrating Langfuse into your deployment pipeline. Trigger with phrases like "deploy langfuse", "langfuse Vercel", "langfuse AWS", "langfuse Docker", "langfuse production deploy".

2,266 Updated today
jeremylongshore