hashload/horse/horse-telemetry-observability
Claude Code and agent skill by hashload/horse
- community
Checking that the SKILL.md file is still in the repository.
Guidelines for registering, executing, and optimizing native high-precision telemetry hooks (AddOnTelemetry) in the Horse Web Framework.
Install
npx vskill@latest install hashload/horse/horse-telemetry-observabilitySKILL.md
The same SKILL.md was published earlier as hashload/horse/horse-telemetry-observability.
Horse Telemetry & Observability
Native Telemetry Hook (AddOnTelemetry)
Horse provides a high-precision, native, and Zero-Allocation telemetry hook based on stack-allocated TStopwatch. This hook allows monitoring and logging the total processing latency of all requests passing through the server pipeline.
The telemetry callback is defined as follows:
Registering the Telemetry Hook
1. Global Registration
For applications using the standard static THorse facade, register the telemetry hook globally during the bootstrap process:
2. Multi-Instance Registration
For applications utilizing THorseInstance, register telemetry hooks directly on each instance. Telemetry is fully isolated per port and polymorphically resolved based on the incoming request port:
Design Safeguards & AI Best Practices
- Catch Internal Exceptions: Always wrap the code inside custom telemetry callbacks with a
try-exceptblock (or rely on Horse's native try-except boundary) to ensure failures during metrics collecting (like database logging or APM networking errors) never interrupt the HTTP response loop or crash the socket execution thread. - Zero-Allocation Logging: To maintain Horse's zero-allocation characteristics, avoid dynamic heap allocations (such as concatenating strings or creating new logger objects) inside the telemetry callback. Prefer reusing static buffers or writing to stack-allocated variables.
- Multi-Instance Port Resolution: Always use
Req.RawWebRequest.ServerPortif you need to determine the active port of the incoming request dynamically inside the telemetry handler. - FPC/Lazarus Compatibility: In FPC (Lazarus), the callback type is a standard procedural pointer. Do not use inline anonymous methods (
procedure begin end) when compiling libraries or handlers for Lazarus.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdoc/skills/horse-telemetry-observability/SKILL.md
Popularity
- Repository stars
- 1,368
- Repository forks
- 244
- 7-day trend score
- 36
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hashload/horse/horse-telemetry-observability)