Skip to content

chore: add temporary langfuse tracing passthrough#1019

Merged
lefarcen merged 7 commits intomainfrom
feat/langfuse-spike-main
Apr 10, 2026
Merged

chore: add temporary langfuse tracing passthrough#1019
lefarcen merged 7 commits intomainfrom
feat/langfuse-spike-main

Conversation

@lefarcen
Copy link
Copy Markdown
Collaborator

What

Add a temporary Langfuse tracing path for the desktop runtime by shipping a langfuse-tracer OpenClaw runtime plugin and passing LANGFUSE_* env vars through the desktop/controller/OpenClaw launch paths.

Why

We need a same-day observability spike that can be enabled with BYOK environment variables without embedding Langfuse secrets in the client binary.

How

  • add a runtime plugin under apps/controller/static/runtime-plugins/langfuse-tracer
  • allow and enable the plugin in compiled OpenClaw config
  • pass LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY, and LANGFUSE_BASE_URL through desktop runtime config, managed manifests, and launchd plist generation
  • add targeted desktop tests for config, manifest, and plist passthrough

Affected areas

  • Desktop app (Electron shell)
  • Controller (backend / API)
  • Web dashboard (React UI)
  • OpenClaw runtime
  • Skills
  • Shared schemas / packages
  • Build / CI / Tooling

Checklist

  • pnpm typecheck passes
  • pnpm lint passes
  • pnpm test passes
  • pnpm generate-types run (if API routes/schemas changed)
  • No credentials or tokens in code or logs
  • No any types introduced (use unknown with narrowing)

Notes for reviewers

This is a temporary BYOK rollout path. It does not ship a Langfuse secret in code; tracing only activates when LANGFUSE_* env vars are injected at launch time.

I could not run repo checks in this worktree because dependencies are not installed here (vitest, tsc, and biome were unavailable).

Copy link
Copy Markdown

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

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: 555f60ae13

ℹ️ 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".

Comment thread apps/desktop/main/services/launchd-bootstrap.ts
@lefarcen lefarcen merged commit 64bb3d7 into main Apr 10, 2026
15 checks passed
@lefarcen lefarcen mentioned this pull request Apr 10, 2026
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.

3 participants