langfuse-sdk-patterns
Installation
SKILL.md
Langfuse SDK Patterns
Overview
Production-quality patterns for the Langfuse SDK: singleton clients, the observe wrapper, startActiveObservation for nested traces, session tracking, graceful shutdown, and error-safe tracing.
Prerequisites
- Completed
langfuse-install-authsetup - Understanding of async/await patterns
- For v4+:
@langfuse/tracing,@langfuse/otel,@opentelemetry/sdk-node