fix: logger error in streaming interface (#2807)

This commit is contained in:
cthomas
2025-09-09 16:02:27 -07:00
committed by GitHub
parent d7a17285b0
commit 9c098e8912
2 changed files with 2 additions and 2 deletions

View File

@@ -226,7 +226,7 @@ class AnthropicStreamingInterface:
except Exception as e:
import traceback
logger.error("Error processing stream: %s", e, traceback.format_exc())
logger.error("Error processing stream: %s\n%s", e, traceback.format_exc())
ttft_span.add_event(
name="stop_reason",
attributes={"stop_reason": StopReasonType.error.value, "error": str(e), "stacktrace": traceback.format_exc()},

View File

@@ -166,7 +166,7 @@ class OpenAIStreamingInterface:
except Exception as e:
import traceback
logger.error("Error processing stream: %s", e, traceback.format_exc())
logger.error("Error processing stream: %s\n%s", e, traceback.format_exc())
ttft_span.add_event(
name="stop_reason",
attributes={"stop_reason": StopReasonType.error.value, "error": str(e), "stacktrace": traceback.format_exc()},