mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-17 13:12:36 +00:00
add back span
This commit is contained in:
parent
a4a29ea3a3
commit
62bb230ab0
3 changed files with 13 additions and 15 deletions
|
|
@ -259,6 +259,10 @@ class SpanContextManager:
|
|||
return wrapper
|
||||
|
||||
|
||||
def span(name: str, attributes: Dict[str, Any] = None):
|
||||
return SpanContextManager(name, attributes)
|
||||
|
||||
|
||||
def get_current_span() -> Optional[Span]:
|
||||
global CURRENT_TRACE_CONTEXT
|
||||
context = CURRENT_TRACE_CONTEXT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue