Skip to content

Add an "I use Langfuse" route to the onboarding skill - #37

Merged
sam-bretz merged 2 commits into
mainfrom
langfuse-onboarding-route
Nov 30, 2026
Merged

sam-bretz merged 2 commits into
mainfrom
langfuse-onboarding-route

Conversation

@sam-bretz

Copy link
Copy Markdown
Contributor

What

Applications that already trace with Langfuse can reach MeterGraph without new instrumentation, but the onboarding skill had no route for them. This adds one.

metergraph-onboarding now links references/langfuse.md, which:

  1. Asks three questions: where Langfuse runs (Cloud or self-hosted, and whether the internet can reach it), which Cloud region the project is in, and whether the person wants history or live capture.
  2. Picks one path:
    • Hosted Langfuse connector (default): connect the project on the Imports page. No code change.
    • metergraphrelay 0.8.0 or newer: for a Langfuse on a private network.
    • Dual export: the Python SDK exporter (metergraph[otel]>=0.6.24) on Langfuse's tracer provider, or a second OTLPTraceExporter on the same provider as LangfuseSpanProcessor for Langfuse JS 4 to 6.
  3. Gives the steps for each path, including the region (EU default; US projects need https://us.cloud.langfuse.com), the import filters (environment, trace names, tags), content defaults, and never asking for keys in chat.
  4. Lists what a first imported call should look like (route is the Langfuse trace name, the real provider, cost, latency, and Langfuse tags, release, prompt and metadata as langfuse.* metadata pairs) and a recovery table: wrong-region keys, empty selections, legacy self-hosted versions, JS spans missing attributes, double counting.

The skill description mentions Langfuse so agents find the route. plugin/ is regenerated.

Testing

  • node scripts/validate.mjs: 12 skills valid.
  • python3 scripts/check_publication.py origin/main: no internal references.
  • python3 scripts/build_plugin.py: plugin regenerated and committed.
  • An independent agent walked four scenarios through the skill and the public docs (Cloud US with the hosted connector, private self-hosted with the relay, Python dual export, Next.js with Langfuse JS 5) and checked each step against the dashboard's connect form and server messages. Its findings (field order, the exact wrong-region message, an undefined variable in the JS snippet, the content opt-out code, the Next.js entry point) are fixed here.
  • Not yet run end to end by an agent against a live workspace.

The public docs pages this links to (/docs/import/langfuse/, /docs/instrument/otlp/#langfuse) are being updated to match in the docs site; until that deploys, the region and filter wording on those pages may be older than this skill.

🤖 Generated with Claude Code

Applications that already trace with Langfuse can reach MeterGraph without new
instrumentation. The onboarding skill now links a reference that asks where
Langfuse runs, which Cloud region it is in and whether the person wants
history or live capture, then picks one of three paths: the hosted Langfuse
connector (default), metergraphrelay 0.8.0 for a Langfuse on a private
network, or dual export (the Python SDK exporter from 0.6.24, or a second OTLP
exporter on the Langfuse JS tracer provider). It covers the import filters,
content defaults, what a first imported call should look like, and recovery
for wrong-region keys, empty selections and double counting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T20:31:56.630894Z 6f55bab New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 27b47cfbd1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

The standard OTLP exporter sends every span attribute, including Langfuse's
input and output, so a resource attribute read by MeterGraph on arrival
cannot keep prompts and responses in the application. The Langfuse route now
asks the workspace owner first, points to an exporter wrapper that drops the
content attributes and span events before sending, and says the resource
attribute only stops MeterGraph from storing content it has received.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sam-bretz
sam-bretz merged commit 9f7f90a into main Nov 30, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant