Skip to content

docs: update OpenWebUI integration for Langfuse v4 - #3503

Open
hassiebp wants to merge 3 commits into
mainfrom
hassiebbot/openwebui-langfuse-v4-docs
Open

docs: update OpenWebUI integration for Langfuse v4#3503
hassiebp wants to merge 3 commits into
mainfrom
hassiebbot/openwebui-langfuse-v4-docs

Conversation

@hassiebp

@hassiebp hassiebp commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • update the OpenWebUI integration to reference the new Langfuse v4 filter pipeline
  • document langfuse~=4.7 (pip-equivalent to >=4.7,<5) and OpenTelemetry-based behavior
  • explain chat/session/user correlation, parented observations, model data, and token usage

Dependency

This documentation must not merge until open-webui/pipelines#608 is merged, because the new langfuse_v4_filter_pipeline.py URL does not exist on upstream main yet.

Linear: LFE-14968

Verification

  • pnpm run format
  • pnpm run format:checkAll matched files use Prettier code style!
  • node scripts/check-h1-headings.jsSuccess: All checked markdown/MDX files have at most one H1 heading.

The checkout uses Node.js 24 while the repository declares Node.js 22; the focused content checks still passed.


Note

Low Risk
Documentation-only change to an integration guide; no application or security-critical code is modified.

Overview
Updates the OpenWebUI integration guide to use the Langfuse v4 filter pipeline instead of the v3 pipeline.

Documents that the pipeline uses the OpenTelemetry-based Langfuse Python SDK (langfuse~=4.7), and explains that it groups chat turns into one trace with parented observations, user/session/tags propagation, and optional token usage. Also clarifies post-install key/host setup and lightly cleans up related wording.

Reviewed by Cursor Bugbot for commit 3dc02f7. Bugbot is set up for automated code reviews on this repo. Configure here.

Greptile Summary

Updates the OpenWebUI integration guide for the forthcoming Langfuse v4 filter pipeline.

  • Replaces v3 pipeline links and terminology with the v4 integration.
  • Documents the langfuse~=4.7 dependency constraint and automatic installation.
  • Describes OpenTelemetry-based trace correlation, observations, model metadata, and token usage.

Confidence Score: 5/5

The documentation appears safe to merge once the explicitly declared upstream pipeline dependency is available.

No unacknowledged actionable defect remains in the changed documentation; the currently unavailable installation target is already identified as a merge-order dependency.

Reviews (1): Last reviewed commit: "docs: clarify OpenWebUI SDK constraint" | Re-trigger Greptile

@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
langfuse-docs Building Building Preview Aug 12, 2026 9:10am

Request Review

hassiebp commented Aug 11, 2026

Copy link
Copy Markdown
Contributor Author

The upstream migration is now published as open-webui/pipelines#608 from commit ac2bb6eb26be61b86c44ec6ccb0180fdaa45be3d. It declares langfuse~=4.7 (pip-equivalent to >=4.7,<5) because Pipelines splits frontmatter requirements on commas. The focused upstream suite has 5 passing tests, including parser compatibility.

@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. documentation Improvements or additions to documentation labels Aug 12, 2026
@github-actions

Copy link
Copy Markdown

@claude review

@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: 3dc02f708d

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


```
https://github.com/open-webui/pipelines/blob/main/examples/filters/langfuse_v3_filter_pipeline.py
https://github.com/open-webui/pipelines/blob/main/examples/filters/langfuse_v4_filter_pipeline.py

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Wait until the v4 pipeline URL exists

If this documentation lands before open-webui/pipelines#608 merges, this newly referenced file is absent from upstream main—as the commit's Dependency section itself notes—so the link returns 404 and the installation step cannot be completed. Keep the v3 instructions, point to an existing ref, or block this commit from landing until the upstream file is available.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Confirmed in this run: open-webui/pipelines#608 is still open, so the v4 pipeline file is not yet available on upstream main. The PR's stated merge gate remains in effect; no documentation change is appropriate until that external dependency merges.

[Pipelines](https://github.com/open-webui/pipelines/) is OpenWebUI's UI-agnostic framework for OpenAI API plugins. It can inject plugins that intercept, process, and forward user prompts to the final LLM.

To trace your application data with Langfuse, you can use the [Langfuse pipeline](https://github.com/open-webui/pipelines/blob/039f9c54f8e9f9bcbabde02c2c853e80d25c79e4/examples/filters/langfuse_v3_filter_pipeline.py), which enables real-time monitoring and analysis of message interactions.
To trace your application data with Langfuse, install the [Langfuse v4 filter pipeline](https://github.com/open-webui/pipelines/blob/main/examples/filters/langfuse_v4_filter_pipeline.py). It uses the OpenTelemetry-based Langfuse Python SDK v4 and declares `langfuse~=4.7`, the pip-compatible constraint for Langfuse versions `>=4.7,<5`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Remove the internal ticket from the commit message

The commit message includes the internal ID LFE-14968 and its Linear URL, which will expose repository readers to an inaccessible internal reference and directly violates the repository rule forbidding ticket IDs and Linear URLs in commit messages. Rewrite the message to describe the dependency without the internal reference.

AGENTS.md reference: AGENTS.md:L117-L117

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I do not think a history rewrite is justified here. The PR’s three published commit messages contain no Linear ID or URL, and AGENTS.md line 117 is blank; the Linear reference is in the PR body, not a commit message. Rewriting published history would add churn without addressing the stated concern.

@claude claude 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.

I reviewed this PR and didn't find any bugs. Because the PR description states this must not merge until the upstream open-webui/pipelines#608 PR lands (the new langfuse_v4_filter_pipeline.py URL doesn't exist on main yet), a human should confirm that dependency is satisfied before merging.

What was reviewed: the updated pipeline install URL and version constraint text, the v3→v4 migration wording (trace/observation/session/user/token semantics), and the streaming-usage callout. Checked whether link-check would catch the not-yet-existing upstream URL — it wouldn't, since that's an external GitHub link outside this repo's build, not a docs bug.

Extended reasoning...

This is a single-file, documentation-only change to content/integrations/no-code/openwebui.mdx updating the OpenWebUI integration guide from the Langfuse v3 to v4 filter pipeline. No application code, security-sensitive logic, or CODEOWNER-restricted paths are touched.

Security risk is essentially none — this only changes prose and a GitHub URL reference in docs. The main non-security consideration is a merge-timing dependency explicitly called out by the author: the new pipeline URL (blob/main/examples/filters/langfuse_v4_filter_pipeline.py) does not exist upstream until open-webui/pipelines#608 merges. The author has already tracked this and posted an update noting the upstream PR is now published, but confirming it's actually merged before this PR merges is outside what an automated content review can verify.

Given the low blast radius (docs prose + one external link) but the presence of an explicit external dependency gating mergeability, I'm deferring rather than approving outright — not because of a code-quality concern, but so a human confirms the upstream dependency is resolved at merge time. No md-override file exists for this route, so that synchronization rule doesn't apply. Formatting and H1 checks were already verified by the author per the PR description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant