mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #15117] [CLOSED] feat(logger): Integrate OpenTelemetry tracing information into logger #39352
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/15117
Author: @tcx4c70
Created: 6/18/2025
Status: ❌ Closed
Base:
dev← Head:feat/log/trace_info📝 Commits (1)
a910cb4feat(logger): Add trace_id and span_id to log📊 Changes
1 file changed (+11 additions, -1 deletions)
View changed files
📝
backend/open_webui/utils/logger.py(+11 -1)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
This PR enhances the logging functionality in
backend/open_webui/utils/logger.pyby adding support for OpenTelemetry tracing. This improvement facilitates better log correlation and distributed traceability, thereby improving observability and debugging capabilities.Added
Changed
trace_idandspan_idto the eatra of logs when theENABLE_OTELflag is enabledBreaking Changes
None
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.