{"id":"diagnostics--traceSnapshot","name":"traceSnapshot","owner":"yeho","package":"diagnostics","kind":"thing","signature":"external thing traceSnapshot","description":"A trace snapshot record carrying subject, state, detail, cause, nextStep.","context":"Describe failures, collect runtime traces, and make execution observable.","parameters":[],"returns":"void","members":[{"name":"subject","kind":"field","type":"text","description":"Stores subject as text.","signature":"text subject","tags":["thing","field","diagnostics"],"updated":"2026-09-09"},{"name":"state","kind":"field","type":"text","description":"Stores state as text.","signature":"text state","tags":["thing","field","diagnostics"],"updated":"2026-09-09"},{"name":"detail","kind":"field","type":"text","description":"Stores detail as text.","signature":"text detail","tags":["thing","field","diagnostics"],"updated":"2026-09-09"},{"name":"cause","kind":"field","type":"text","description":"Stores cause as text.","signature":"text cause","tags":["thing","field","diagnostics"],"updated":"2026-09-09"},{"name":"nextStep","kind":"field","type":"text","description":"Stores next step as text.","signature":"text nextStep","tags":["thing","field","diagnostics"],"updated":"2026-09-09"},{"name":"traceSnapshot","kind":"constructor","parameters":[{"name":"subject","type":"text","description":"Subject."},{"name":"state","type":"text","description":"State."},{"name":"detail","type":"text","description":"Detail."},{"name":"cause","type":"text","description":"Cause."},{"name":"nextStep","type":"text","description":"Next step."}],"returns":"void","signature":"traceSnapshot(text subject, text state, text detail, text cause, text nextStep)","description":"Trace snapshot.","tags":["thing","constructor","diagnostics"],"updated":"2026-09-09"},{"name":"Render","kind":"method","parameters":[],"returns":"text","signature":"Render() returns text","description":"Render.","tags":["thing","method","diagnostics"],"exampleId":"method-Render-6","updated":"2026-09-09"}],"tags":["cpu","diagnostics","method","source-example","thing","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/diagnostics/diagnostics.yh","line":24,"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 traceSnapshot","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.\ntraceSnapshot sample = traceSnapshot(\"subject\", \"state\", \"detail\", \"cause\", \"next Step\")\nConsole.Log(Text.From(sample.subject))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.diagnostics__tracesnapshot\"\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":"78fcc748780d63d470aa85d0b774a8892914d6dcb4b24c8d177b07d990f3e9d3","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Render-6","title":"traceSnapshot.Render","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using diagnostics\n\n// Render.\ntraceSnapshot instance = traceSnapshot(\"subject\", \"state\", \"detail\", \"cause\", \"next Step\")\ntext result = instance.Render()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.diagnostics__tracesnapshot\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"82aa55b866319541027ce78d8c9b70285c6976add15988f4a4bd2d63dd51d732","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["subject","state","detail","cause","nextStep","traceSnapshot","Render"],"url":"https://demonhunterlabs.com/academy/api?item=diagnostics--traceSnapshot","json":"https://demonhunterlabs.com/reference/items/diagnostics--traceSnapshot.json","markdown":"https://demonhunterlabs.com/reference/text/diagnostics--traceSnapshot.md"}
