[PR #11507] [MERGED] feat(trace): opentelemetry instrument #22750

Closed
opened 2026-04-20 04:22:14 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/11507
Author: @OrenZhang
Created: 3/10/2025
Status: Merged
Merged: 3/11/2025
Merged by: @tjbck

Base: devHead: feat_ot


📝 Commits (3)

  • c761e4f feat(trace): opentelemetry instrument
  • 7bfda66 feat(trace): optimize for trace env and instrument hooks
  • 396c288 refac

📊 Changes

12 files changed (+390 additions, -92 deletions)

View changed files

📝 backend/open_webui/config.py (+3 -1)
📝 backend/open_webui/env.py (+16 -10)
📝 backend/open_webui/main.py (+14 -2)
📝 backend/open_webui/retrieval/loaders/tavily.py (+13 -18)
📝 backend/open_webui/retrieval/vector/dbs/opensearch.py (+40 -51)
📝 backend/open_webui/retrieval/web/utils.py (+8 -9)
backend/open_webui/utils/telemetry/__init__.py (+0 -0)
backend/open_webui/utils/telemetry/constants.py (+26 -0)
backend/open_webui/utils/telemetry/exporters.py (+31 -0)
backend/open_webui/utils/telemetry/instrumentors.py (+202 -0)
backend/open_webui/utils/telemetry/setup.py (+23 -0)
📝 backend/requirements.txt (+14 -1)

📄 Description

Added

  • OpenTelemetry Instrument

Screenshots or Videos

127 0 0 1_16686_trace_9541c1cbf76b55592a6eaf532951cb65(HiDPI) (1)

127 0 0 1_16686_trace_9541c1cbf76b55592a6eaf532951cb65(HiDPI) (2)

image

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/11507 **Author:** [@OrenZhang](https://github.com/OrenZhang) **Created:** 3/10/2025 **Status:** ✅ Merged **Merged:** 3/11/2025 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `feat_ot` --- ### 📝 Commits (3) - [`c761e4f`](https://github.com/open-webui/open-webui/commit/c761e4fd087643188f347289b7217692c55b29aa) feat(trace): opentelemetry instrument - [`7bfda66`](https://github.com/open-webui/open-webui/commit/7bfda6652f1ced86a8c9fbd2f12342cd2b1a93b6) feat(trace): optimize for trace env and instrument hooks - [`396c288`](https://github.com/open-webui/open-webui/commit/396c28817c65b62ab1168994f6913b63d55af6c9) refac ### 📊 Changes **12 files changed** (+390 additions, -92 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/config.py` (+3 -1) 📝 `backend/open_webui/env.py` (+16 -10) 📝 `backend/open_webui/main.py` (+14 -2) 📝 `backend/open_webui/retrieval/loaders/tavily.py` (+13 -18) 📝 `backend/open_webui/retrieval/vector/dbs/opensearch.py` (+40 -51) 📝 `backend/open_webui/retrieval/web/utils.py` (+8 -9) ➕ `backend/open_webui/utils/telemetry/__init__.py` (+0 -0) ➕ `backend/open_webui/utils/telemetry/constants.py` (+26 -0) ➕ `backend/open_webui/utils/telemetry/exporters.py` (+31 -0) ➕ `backend/open_webui/utils/telemetry/instrumentors.py` (+202 -0) ➕ `backend/open_webui/utils/telemetry/setup.py` (+23 -0) 📝 `backend/requirements.txt` (+14 -1) </details> ### 📄 Description ### Added - OpenTelemetry Instrument --- ### Screenshots or Videos ![127 0 0 1_16686_trace_9541c1cbf76b55592a6eaf532951cb65(HiDPI) (1)](https://github.com/user-attachments/assets/03b6ba95-75e7-41ad-af16-250a787fa986) ![127 0 0 1_16686_trace_9541c1cbf76b55592a6eaf532951cb65(HiDPI) (2)](https://github.com/user-attachments/assets/f29042f4-04d9-42ee-a679-82679ff243ce) <img width="1605" alt="image" src="https://github.com/user-attachments/assets/2e8b5cc9-0c44-4668-85f9-5e74d65d2013" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 04:22:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#22750