refac
This commit is contained in:
1 parent
1dcbfd47fb
commit
bd3a3635ee
3 files changed
+36
-23
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user