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". '
npx skills add jeremylongshore/claude-code-plugins-plus-skills --skill langfuse-hello-world --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Langfuse Hello World ## Overview Create your first Langfuse trace with real SDK calls. Demonstrates the trace/span/generation hierarchy, the `observe` wrapper, and the OpenAI drop-in integration. ## Prerequisites - Completed `langfuse-install-auth` setup - Valid API credentials in environment variables - OpenAI API key (for the OpenAI integration example) ## Instructions ### Step 1: Hello World with v4+ Modular SDK ```typescript // hello-langfuse.ts import { startActiveObservation, observe, updateActiveObservation } from "@langfuse/tracing"; import { LangfuseSpanProcessor } from "@langfuse/otel"; import { NodeSDK } from "@opentelemetry/sdk-node"; // Register OpenTelemetry processor (once at startup) const sdk = new NodeSDK({ spanProcessors: [new LangfuseSpanProcessor()], }); sdk.start(); async function main() { // Create a top-level trace with startActiveObservation await startActiveObservation("hello-world", async (span) => { span.update({ input: { message: "Hello, Langfuse!" }, metadata: { source: "hello-world-example" }, }); // Nested span -- automatically linked to parent await startActiveObservation("process-input", async (child) => { child.update({ input: { text: "processin
- Overview
- Prerequisites
- Instructions
- Step 1: Hello World with v4+ Modular SDK
- Step 2: Hello World with observe Wrapper
- Step 3: Hello World with Legacy v3 SDK
- Step 4: Python Hello World
- Trace Hierarchy
- Error Handling
- Resources
- Next Steps
What does the langfuse-hello-world skill do?
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". '
How do I install it?
Run `npx skills add jeremylongshore/claude-code-plugins-plus-skills --skill langfuse-hello-world --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From jeremylongshore/claude-code-plugins-plus-skills, a repository with 2,630 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.