Improve system message extraction in traced_llm
Enhanced the logic for extracting the system message in the traced_llm decorator to support LLMContext via adapter and handle exceptions gracefully. This improves compatibility with different context types and ensures better tracing information.
This commit is contained in:
committed by
Mark Backman
parent
7f9f151b7c
commit
112d1bd375
1
changelog/3449.fixed.md
Normal file
1
changelog/3449.fixed.md
Normal file
@@ -0,0 +1 @@
|
||||
- Fixed telemetry record correct system_instruction in span for LLM services
|
||||
Reference in New Issue
Block a user