langfuse-node
v3.39.2
Published
LEGACY Langfuse v3 SDK for Node.js < 18 (maintenance mode). For new projects use the current Langfuse JS/TS SDK: npm install @langfuse/tracing @langfuse/otel @langfuse/client
Readme
langfuse-node
[!IMPORTANT] This package is not the latest Langfuse JS/TS SDK.
langfuse-nodeis part of the deprecated v3 client. Do not use it for new instrumentation.Latest JS/TS SDK (OpenTelemetry, Node.js 20+):
npm install @langfuse/tracing @langfuse/otel @opentelemetry/sdk-node. Use@langfuse/tracing+LangfuseSpanProcessorfrom@langfuse/otel. Prompts/datasets/scores:@langfuse/client. Docs: https://langfuse.com/docs/observability/sdk/overview — Upgrade: v3 → v4, v4 → v5.Query traces with Observations API v2 (
GET /api/public/v2/observations, API reference), notGET /api/public/traces/api.traceList.Data freshness: the only real-time path is OpenTelemetry ingestion (
@langfuse/otel, or any OTel exporter sendingx-langfuse-ingestion-version: 4) combined with the Observations API v2 and Metrics API v2. All other GET APIs from all SDK packages can be up to 10 minutes behind.
This is the legacy Node.js client for Langfuse v3.
Do not install langfuse or langfuse-node for new work — use @langfuse/tracing + @langfuse/otel instead.
Documentation
- Docs: https://langfuse.com/docs/sdk/typescript
- Reference: https://js.reference.langfuse.com/modules/langfuse_node.html
Installation
npm i langfuse-node
# or
yarn add langfuse-node
# or
pnpm i langfuse-node