This commit is contained in:
Timothy Jaeryang Baek committed 2026-04-10 10:15:55 -07:00
1 parent 1dcbfd47fb
commit bd3a3635ee
3 files changed
+36 -23

No files matched your search

+3 -1
View File
@@ -4,7 +4,7 @@ import sys
from typing import TYPE_CHECKING
from loguru import logger
from opentelemetry import trace
from open_webui.env import (
ENABLE_AUDIT_STDOUT,
ENABLE_AUDIT_LOGS_FILE,
@@ -100,6 +100,8 @@ class InterceptHandler(logging.Handler):
if not ENABLE_OTEL:
return {}
from opentelemetry import trace
extras = {}
context = trace.get_current_span().get_span_context()
if context.is_valid: