add observability to the recording system

This commit is contained in:
Ashwin Bharambe 2025-10-16 19:27:17 -07:00
parent 1fc0fd5935
commit 483ae9e918
3 changed files with 462 additions and 11 deletions

View file

@ -42,3 +42,8 @@ def sync_test_context_from_provider_data():
return TEST_CONTEXT.set(provider_data["__test_id"])
return None
def is_debug_mode() -> bool:
"""Check if test recording debug mode is enabled via LLAMA_STACK_TEST_DEBUG env var."""
return os.environ.get("LLAMA_STACK_TEST_DEBUG", "").lower() in ("1", "true", "yes")