MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / worker

Method worker

tests/unit/test_context_manager.py:319–326  ·  view source on GitHub ↗
(thread_id)

Source from the content-addressed store, hash-verified

317 errors = []
318
319 def worker(thread_id):
320 try:
321 with start_trace(f"thread_{thread_id}_trace") as trace:
322 # Each thread should get its own trace
323 results.append((thread_id, trace))
324 time.sleep(0.01) # Simulate some work
325 except Exception as e:
326 errors.append((thread_id, str(e)))
327
328 # Start multiple threads
329 threads = []

Callers

nothing calls this directly

Calls 1

start_traceFunction · 0.90

Tested by

no test coverage detected