{"id":"diagnostics--RenderTraceSnapshot","name":"RenderTraceSnapshot","owner":"yeho","package":"diagnostics","kind":"function","signature":"external RenderTraceSnapshot(text subject, text state, text detail, text cause, text nextStep) returns text","description":"Format trace snapshot as readable text.","context":"Describe failures, collect runtime traces, and make execution observable.","parameters":[{"name":"subject","type":"text","description":"Supply subject as text."},{"name":"state","type":"text","description":"Supply state as text."},{"name":"detail","type":"text","description":"Supply detail as text."},{"name":"cause","type":"text","description":"Supply cause as text."},{"name":"nextStep","type":"text","description":"Supply next step as text."}],"returns":"text","members":[],"tags":["cpu","diagnostics","function","source-example","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/diagnostics/diagnostics.yh","line":83,"sha256":"f8041e2c90790610b2c1f7c093d8c7b6b81d374d6d198b93c490dd256677345a"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use RenderTraceSnapshot","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using diagnostics\n\n// Describe failures, collect runtime traces, and make execution observable.\ntext subject = \"subject\"\ntext state = \"state\"\ntext detail = \"detail\"\ntext cause = \"cause\"\ntext nextStep = \"next Step\"\ntext result = RenderTraceSnapshot(subject, state, detail, cause, nextStep)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.diagnostics__rendertracesnapshot\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"5161aa3ccb390a5b9bf8acd47b4c79619e9905c6fdb7012ec27ce2394ef1dd8d","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=diagnostics--RenderTraceSnapshot","json":"https://demonhunterlabs.com/reference/items/diagnostics--RenderTraceSnapshot.json","markdown":"https://demonhunterlabs.com/reference/text/diagnostics--RenderTraceSnapshot.md"}
