forked from phoenix-oss/llama-stack-mirror
fix(telemetry): library client does not log span (#1833)
This commit is contained in:
parent
d8a8a734b5
commit
3a2314dcef
2 changed files with 2 additions and 8 deletions
|
@ -328,8 +328,9 @@ class AsyncLlamaStackAsLibraryClient(AsyncLlamaStackClient):
|
|||
|
||||
body = self._convert_body(path, options.method, body)
|
||||
|
||||
await start_trace(route, {"__location__": "library_client"})
|
||||
|
||||
async def gen():
|
||||
await start_trace(route, {"__location__": "library_client"})
|
||||
try:
|
||||
async for chunk in await func(**body):
|
||||
data = json.dumps(convert_pydantic_to_json_value(chunk))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue