Skip to main content Accueil Créateurs jeremylongshore tons-of-skills-marketplace langfuse-debug-bundle
langfuse-debug-bundle Collect Langfuse debug evidence for support tickets and troubleshooting.
Use when encountering persistent issues, preparing support tickets,
or collecting diagnostic information for Langfuse problems.
Trigger with phrases like "langfuse debug", "langfuse support bundle",
"collect langfuse logs", "langfuse diagnostic", "langfuse troubleshoot".
Aller à l'installation Skills Marketplace Découvrez et explorez les compétences IA créées par la communauté.
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Copier le promptAfficher les détails du prompt Une commande directe contourne le prompt de vérification. Examinez la source avant de l'exécuter.
npx skills add https://github.com/jeremylongshore/tons-of-skills-marketplace --skill langfuse-debug-bundleLa commande reste sur une seule ligne. Faites défiler horizontalement pour la vérifier avant de la copier.
Vous préférez une copie locale ? Téléchargez les fichiers actuellement disponibles dans SkillsMP.
Télécharger Zip Téléchargement...
langchain-deploy-integration Deploy a LangChain 1.0 / LangGraph 1.0 app to Cloud Run, Vercel, or LangServe correctly — with timeouts sized for chain length, cold-start mitigation, SSE anti-buffering headers, and Secret Manager over .env. Use when prepping a first production deploy, debugging a stream that hangs behind a proxy, or diagnosing p99 latency spikes. Trigger with "langchain deploy", "langchain cloud run", "langchain vercel python", "langchain langserve", or "langchain docker".
name langfuse-debug-bundle description Collect Langfuse debug evidence for support tickets and troubleshooting.
Use when encountering persistent issues, preparing support tickets,
or collecting diagnostic information for Langfuse problems.
Trigger with phrases like "langfuse debug", "langfuse support bundle",
"collect langfuse logs", "langfuse diagnostic", "langfuse troubleshoot".
allowed-tools Read, Bash(grep:*), Bash(curl:*), Bash(tar:*), Grep version 1.12.0 license MIT author Jeremy Longshore <jeremy@intentsolutions.io> tags ["saas","langfuse","debugging"] compatibility Designed for Claude Code
Langfuse Debug Bundle
Current State
!node --version 2>/dev/null || echo 'N/A'
!python3 --version 2>/dev/null || echo 'N/A'
!npm list langfuse @langfuse/client @langfuse/tracing 2>/dev/null | head -5 || echo 'No langfuse packages'
Overview
Collect all diagnostic information needed for Langfuse support tickets: environment versions, SDK config, API connectivity, redacted logs, and a reproduction template.
Prerequisites
Langfuse SDK installed
Access to application logs
Bash shell available
Instructions
Step 1: Run the Full Debug Bundle Script
Save this as langfuse-debug.sh and run it:
#!/bin/bash
set -euo pipefail
BUNDLE_DIR="langfuse-debug-$(date +%Y%m%d-%H%M%S) "
mkdir -p "$BUNDLE_DIR "
echo "=== Langfuse Debug Bundle ===" | tee "$BUNDLE_DIR /summary.txt"
echo "Generated: $(date) " | tee -a "$BUNDLE_DIR /summary.txt"
{
echo ""
echo "--- Environment ---"
echo "Node.js: $(node --version 2>/dev/null || echo 'not installed') "
echo "Python: $(python3 --version 2>/dev/null || echo 'not installed') "
echo "npm: $(npm --version 2>/dev/null || echo 'not installed') "
echo "OS: $(uname -srm) "
} >>
{
npm list langfuse @langfuse/client @langfuse/tracing @langfuse/otel @langfuse/openai @langfuse/langchain 2>/dev/null ||
pip show langfuse 2>/dev/null | grep -E ||
} >>
{
} >>
{
HOST=
-n
curl -s -o /dev/null -w 2>/dev/null ||
[ -n ] && [ -n ];
AUTH=$( -n | )
-n
curl -s -o /dev/null -w \
-H \
2>/dev/null ||
} >>
[ -d ];
grep -i logs/*. 2>/dev/null | \
-100 | \
sed | \
sed \
> 2>/dev/null ||
[ -f ];
grep -A 100 package.json | -60 > 2>/dev/null ||
> <<
- Node.js version:
- Langfuse SDK version:
- Langfuse host: Cloud / Self-hosted (version: )
1.
2.
3.
"$BUNDLE_DIR /summary.txt"
echo
""
echo
"--- SDK Versions ---"
echo
"npm: no langfuse packages"
"Name|Version"
echo
"pip: langfuse not found"
"$BUNDLE_DIR /summary.txt"
echo
""
echo
"--- Langfuse Config ---"
echo
"LANGFUSE_PUBLIC_KEY: ${LANGFUSE_PUBLIC_KEY:+SET (${LANGFUSE_PUBLIC_KEY:0:12} ...)} "
echo
"LANGFUSE_SECRET_KEY: ${LANGFUSE_SECRET_KEY:+SET} "
echo
"LANGFUSE_BASE_URL: ${LANGFUSE_BASE_URL:-NOT SET} "
echo
"LANGFUSE_HOST: ${LANGFUSE_HOST:-NOT SET} "
"$BUNDLE_DIR /summary.txt"
echo
""
echo
"--- Network Test ---"
"${LANGFUSE_BASE_URL:-${LANGFUSE_HOST:-https://cloud.langfuse.com} } "
echo
"Target host: $HOST "
echo
"Health endpoint: "
"%{http_code} (%{time_total}s)"
"$HOST /api/public/health"
echo
"FAILED"
echo
""
if
"${LANGFUSE_PUBLIC_KEY:-} "
"${LANGFUSE_SECRET_KEY:-} "
then
echo
"$LANGFUSE_PUBLIC_KEY :$LANGFUSE_SECRET_KEY "
base64
echo
"Auth test: "
"%{http_code}"
"Authorization: Basic $AUTH "
"$HOST /api/public/traces?limit=1"
echo
"FAILED"
echo
""
fi
"$BUNDLE_DIR /summary.txt"
if
"logs"
then
"langfuse\|trace\|generation\|flush"
log
tail
's/sk-lf-[a-zA-Z0-9]*/sk-lf-***REDACTED***/g'
's/pk-lf-[a-zA-Z0-9]*/pk-lf-***REDACTED***/g'
"$BUNDLE_DIR /app-logs-redacted.txt"
true
fi
if
"package.json"
then
'"dependencies"'
head
"$BUNDLE_DIR /package-deps.txt"
true
fi
cat
"$BUNDLE_DIR /reproduction-steps.md"
'REPRO'
## Relevant Code
```typescript
// Paste minimal reproduction here
--- Package --- tar -czf "$BUNDLE_DIR.tar.gz" "$BUNDLE_DIR" 2>/dev/null
echo ""
echo "Bundle created: $BUNDLE_DIR.tar.gz"
echo "Contents:"
ls -la "$BUNDLE_DIR/"
### Step 2: Review Before Sharing
**Always redact before submitting:**
| Include | Redact |
|---------|--------|
| Error messages and stack traces | API keys (`pk-lf-*`, `sk-lf-*`) |
| SDK versions and config structure | Secret keys and passwords |
| HTTP status codes | PII (emails, user IDs) |
| Timing and latency data | Internal URLs and IPs |
| OS and runtime versions | Database connection strings |
### Step 3: Submit to Support
1. Run: `bash langfuse-debug.sh`
2. Review bundle contents for leaked secrets
3. Fill in `reproduction-steps.md`
4. Submit via:
- [GitHub Issues](https://github.com/langfuse/langfuse/issues) (public)
- [Discord](https://langfuse.com/discord) (community)
- Email support (enterprise customers)
### Step 4: Quick Inline Diagnostic (No File)
For a fast check without creating files:
```bash
set -euo pipefail
echo "=== Quick Langfuse Check ==="
echo "Node: $(node --version 2>/dev/null || echo N/A)"
npm list langfuse @langfuse/client 2>/dev/null | head -5
echo ""
echo "Public Key: ${LANGFUSE_PUBLIC_KEY:+SET} | Secret Key: ${LANGFUSE_SECRET_KEY:+SET}"
HOST="${LANGFUSE_BASE_URL:-${LANGFUSE_HOST:-https://cloud.langfuse.com}}"
echo "Health: $(curl -s -o /dev/null -w '%{http_code}' $HOST/api/public/health)"
Error Handling Collected Item Why It Matters SDK version Version-specific bugs, breaking changes between v3/v4/v5 Environment versions Node 18+ required, Python 3.9+ Network test Firewall, DNS, self-hosted connectivity Auth test Key validity, project mismatch Redacted logs Trace errors, flush failures, rate limits Package deps Conflicting versions, missing peer deps
Resources