mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-05 12:21:52 +00:00
bug fixes to make this work, trace creation worked - spans dont yet
This commit is contained in:
parent
84ebed9c9f
commit
6e5ca1350e
3 changed files with 25 additions and 10 deletions
|
@ -223,13 +223,11 @@ class SpanContextManager:
|
|||
def __call__(self, func: Callable):
|
||||
@wraps(func)
|
||||
def sync_wrapper(*args, **kwargs):
|
||||
print("sync wrapper")
|
||||
with self:
|
||||
return func(*args, **kwargs)
|
||||
|
||||
@wraps(func)
|
||||
async def async_wrapper(*args, **kwargs):
|
||||
print("async wrapper")
|
||||
async with self:
|
||||
return await func(*args, **kwargs)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue