feat: record the observability fields end to end through telemetry
This commit is contained in:
@@ -39,6 +39,8 @@ _EXPECTED_COLUMNS = [
|
||||
"error",
|
||||
"cost",
|
||||
"created_at",
|
||||
"cached_prompt_tokens",
|
||||
"model_reported",
|
||||
]
|
||||
|
||||
# run 级前缀: 同库并存的其他运行(迁移批跑/另一开发机)互不可见
|
||||
@@ -100,6 +102,8 @@ async def _record_minimal(
|
||||
"cache_hit": False,
|
||||
"error": None,
|
||||
"cost": None,
|
||||
"cached_prompt_tokens": None,
|
||||
"model_reported": None,
|
||||
}
|
||||
fields.update(overrides)
|
||||
await recorder.record_llm_call(**fields)
|
||||
|
||||
Reference in New Issue
Block a user