refac
This commit is contained in:
@@ -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