mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-31 07:10:00 +00:00
fix(telemetry): library client does not log span
# What does this PR do? ## Test Plan
This commit is contained in:
parent
a182705ade
commit
820c04ae48
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