add tracing back to the lib cli

This commit is contained in:
Dinesh Yeduguru 2024-12-10 11:31:41 -08:00
parent e2054d53e4
commit 84904914c2
5 changed files with 106 additions and 61 deletions

View file

@ -259,10 +259,6 @@ 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