(thread_id)
| 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 = [] |
nothing calls this directly
no test coverage detected