Agent skill · Audited from source
Langfuse Common Errors
skill · jeremylongshore/claude-code-plugins-plus-skillsMIT licenceAudited 9 Oct 2026 · source 4f83675ca38a
Is it safe? With care — CAUTION, grade B (89/100). We read this skill's source at commit 4f83675ca38a and found no filesystem, network or shell access and no hard-coded secrets. The audit raised 1 finding, 1 critical or high. What it does: Diagnose and fix common Langfuse errors and exceptions.
Cite
Cite this page
ModelsAtlas. “Langfuse Common Errors (jeremylongshore/claude-code-plugins-plus-skills)”. Retrieved 9 Oct 2026. https://modelsatlas.com/skills/jeremylongshore/langfuse-common-errors
Trust audit
Audit 0.4.1 · source read 9 Oct 2026
CAUTION means the audit found things worth knowing before you trust this skill. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | PASS | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | FAIL | 1 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (1)
HIGHPrompt injectionprompt.credential_read · SKILL.md:240
// Load .env at the very top of your entry file
- Why
- asks the agent to read credentials
- Fix
- —
Audit 0.4.1 · source sha 4f83675ca38a · 9 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherjeremylongshore GitHub userOwner of the repository this skill is read from
- Source folderjeremylongshore/claude-code-plugins-plus-skills/plugins/saas-packs/langfuse-pack/skills/langfuse-common-errorsThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdict4f83675ca38aA new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Diagnose and fix common Langfuse errors and exceptions.
--- name: langfuse-common-errors description: 'Diagnose and fix common Langfuse errors and exceptions. Use when encountering Langfuse errors, debugging missing traces, or troubleshooting integration issues. Trigger with phrases like "langfuse error", "fix langfuse", "langfuse not working", "debug langfuse", "traces not appearing". ' allowed-tools: Read, Grep, Bash(curl:*) version: 1.17.0 license: MIT author: Jeremy Longshore <[email protected]> tags: - saas - langfuse - debugging compatibility: Designed for Claude Code --- # Langfuse Common Errors ## Overview Diagnostic reference for the 10 most common Langfuse integration errors, with real error messages, root causes, and tested solutions. ## Prerequisites - Langfuse SDK installed - API credentials configured - Access to application logs or console output ## Error Reference ### 1. Authentication Failed (401) **Error:** ``` Langfuse: Unauthorized - Invalid API key Error: 401 Unauthorized ``` **Cause:** API key missing, expired, revoked, or keys from wrong project. **Fix:** ```bash set -euo pipefail # Verify env vars are set echo "Public: ${LANGFUSE_PUBLIC_KEY:0:15}..." echo "Secret: ${LANGFUSE_SECRET_KEY:0:10}..." # Test auth against API HOST="${LANGFUSE_BASE_URL:-https://cloud.langfuse.com}" curl -s -o /dev/null -w "HTTP %{http_code}" \ "$HOST/api/public/health" # Auth test curl -s -o /dev/null -w "HTTP %{http_code}" \ -H "Authorization: Basic $(echo -n "$LANGFUSE_PUBLIC_KEY:$LANGFUSE_SECRET_KEY" | base64)" \ "$HOST/api/public/traces?limit=1" ``` ### 2. Traces Not Appearing in Dashboard **Symptom:** Code runs without errors but no traces show in UI. **Root causes (in order of likelihood):** 1. Data not flushed before process exits 2. Wrong project keys (traces going to different project) 3. Dashboard filter hiding traces **Fix:** ```typescript // v4+: Ensure OTel SDK is shut down properly const sdk = new NodeSDK({ spanProcessors: [new LangfuseSpanProcessor()] }); sdk.start(); // ... your code ... await sdk.shutdown(); // MUST call this before process exits // v3: Always flush await langfuse.flushAsync(); // v3: Register shutdown handler for long-running processes process.on("beforeExit", async () => { await langfuse.shutdownAsync(); }); ``` ### 3. Network / Connection Errors **Error:** ``` FetchError: request to https://cloud.langfuse.com failed ECONNREFUSED / ETIMEDOUT ``` **Fix:** ```bash set -euo pipefail # Test connectivity curl -v https://cloud.langfuse.com/api/public/health # Check DNS nslookup cloud.langfuse.com # For self-hosted curl -v $LANGFUSE_BASE_URL/api/public/health ``` ```typescript // Increase timeout for slow networks // v4+: Configure via OTel span processor options // v3: const langfuse = new Langfuse({ requestTimeout: 30000 }); ``` ### 4. Missing Token Usage **Symptom:** Generations appear but token counts show zero. **Fix:** ```typescript // For OpenAI streaming -- enable usage reporting const stream = await openai.chat.completions.create({ model: "gpt-4o", messages, stream: true, stream_options: { include_usage: true }, // Required! }); // For manual tracing -- always include usage on generation end generation.end({ output: content, usage: { promptTokens: response.usage?.prompt_tokens ?? 0, completionTokens: response.usage?.completion_tokens ?? 0, }, }); // v4+: updateActiveObservation with usage updateActiveObservation({ output: content, usage: { promptTokens: 100, completionTokens: 50 }, }); ``` ### 5. Spans Stuck "In Progress" (v3) **Symptom:** Spans show as in-progress indefinitely in the dashboard. **Fix:** ```typescript // Always end spans in try/finally const span = trace.span({ name: "operation" }); try { const result = await doWork(); span.end({ output: result }); return result; } catch (error) { span.end({ level: "ERROR", statusMessage: String(error) }); throw error; } // v4+ avoids this entirely -- startActiveObservation auto-ends await startActiveObservation("operation", async () => { // Span automatically ends when callback completes or throws return await doWork(); }); ``` ### 6. Duplicate Traces **Symptom:** Same operation creates multiple traces. **Fix:** ```typescript // Use singleton pattern -- NEVER create Langfuse per request // BAD: app.get("/api", async (req, res) => { const langfuse = new Langfuse(); // Creates new client per request }); // GOOD: const langfuse = new Langfuse(); // Single instance app.get("/api", async (req, res) => { const trace = langfuse.trace({ name: "api-request" }); }); ``` ### 7. SDK Import Errors **Error:** ``` TypeError: langfuse.trace is not a function Cannot find module '@langfuse/tracing' ``` **Fix:** ```bash set -euo pipefail # Check installed version npm list langfuse @langfuse/client @langfuse/tracing # v3 import # import { Langfuse } from "langfuse"; # v4+ imports # import { LangfuseClient } from "@langfuse/client"; # import { startActiveObservation, observe } from "@langfuse/tracing"; # Update to latest npm install @langfuse/client@latest @langfuse/tracing@latest @langfuse/otel@latest ``` ### 8. Environment Variable Not Loaded **Error:** ``` Langfuse: Missing required configuration - publicKey ``` **Fix:** ```typescript // Load .env at the very top of your entry file import "dotenv/config"; // Or use specific path import { config } from "dotenv"; config({ path: ".env.local" }); // Validate on startup if (!process.env.LANGFUSE_PUBLIC_KEY) { throw new Error("LANGFUSE_PUBLIC_KEY not set"); } ``` ### 9. Self-Hosted Connection Issues **Error:** ``` Failed to connect to localhost:3000 Certificate verification failed ``` **Fix:** ```bash set -euo pipefail # Check if Langfuse container is running docker ps | grep langfuse # Health check curl http://localhost:3000/api/public/health # Common issue: trailing slash in URL # BAD: LANGFUSE_BASE_URL=http://localhost:3000/ # GOOD: LANGFUSE_BASE_URL=http://localhost:3000 ``` ### 10
Excerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 4f83675
npm install @langfuse/client@latest @langfuse/tracing@latest @langfuse/otel@latest
git clone https://github.com/jeremylongshore/claude-code-plugins-plus-skills git -C claude-code-plugins-plus-skills checkout 4f83675ca38a
Commands as the repository documents them: shown, never run by us. Our verdict covers commit 4f83675ca38a only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| Claude Code | Mentioned in its text, not tested | Skills for Claude Code · About Claude Code |
Audit history
Every audit, every source change
- !CAUTION B 89 / 100
first audit · source
4f83675ca38a
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/jeremylongshore/langfuse-common-errors/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Deploy and orchestrate Vertex AI ADK agents using A2A protocol. Manages
Add this badge to your README
[](https://modelsatlas.com/skills/jeremylongshore/langfuse-common-errors/)
<a href="https://modelsatlas.com/skills/jeremylongshore/langfuse-common-errors/"><img src="https://modelsatlas.com/skills/jeremylongshore/langfuse-common-errors/badge.svg" alt="ModelsAtlas: CAUTION B"></a>
Questions about Langfuse Common Errors
What does the Langfuse Common Errors skill do?
Is Langfuse Common Errors safe to install?
What can Langfuse Common Errors access on my machine?
Which assistants does Langfuse Common Errors work with?
How current is this page?
Sources
- github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/ — the audited source at commit 4f83675ca38a and every finding aboveObserved · 9 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Langfuse Common Errors skill do?
- Is Langfuse Common Errors safe to install?
- What can Langfuse Common Errors access on my machine?