fix(telemetry): library client does not log span

# What does this PR do?


## Test Plan
This commit is contained in:
Eric Huang 2025-03-28 23:45:01 -07:00
parent a182705ade
commit 820c04ae48
2 changed files with 2 additions and 8 deletions

View file

@ -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))