Skip to content

Commit 567817d

Browse files
authored
BUG: Thread span name down to resource (#117)
* BUG: Thread span name down to resource * another
1 parent d4e5535 commit 567817d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

quotientai/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ def init(
493493

494494
return self
495495

496-
def trace(self):
496+
def trace(self, name: Optional[str] = None):
497497
"""
498498
Decorator to trace function calls for Quotient.
499499
@@ -515,7 +515,7 @@ async def my_async_function():
515515
return lambda func: func
516516

517517
# Call the tracing resource without parameters since it's now configured
518-
return self.tracing_resource.trace()
518+
return self.tracing_resource.trace(name)
519519

520520
def force_flush(self):
521521
"""
@@ -720,9 +720,9 @@ def log(
720720
)
721721
return log_id
722722

723-
def trace(self):
723+
def trace(self, name: Optional[str] = None):
724724
"""Direct access to the tracer's trace decorator."""
725-
return self.tracer.trace()
725+
return self.tracer.trace(name)
726726

727727
def poll_for_detection(
728728
self, log_id: str, timeout: int = 300, poll_interval: float = 2.0

0 commit comments

Comments
 (0)