The Runtime Code Sensor
Hud’s Runtime Code Sensor is a lightweight SDK that runs alongside your code in production. It captures how every function behaves, detects issues automatically, and surfaces the runtime evidence behind them. This gives engineers and AI agents all the context they need to understand and resolve issues faster.
Install the SDK with a single line of code and deploy your service.
The sensor runs alongside your application without requiring any manual instrumentation. No thresholds, dashboards, or alert rules need to be defined upfront. It works out of the box from the moment it is live.
The sensor is designed to stay lightweight in production.
During steady state, it continuously captures aggregated runtime data across every endpoint and function, building a behavioral baseline for typical execution patterns. As new code is deployed, coverage extends automatically, with no added setup or maintenance required.
When something goes wrong, the sensor automatically goes deeper.
If the sensor detects an issue such as an error spike, a latency regression, or a post-deployment degradation, it gathers deep forensic context, collecting all the execution data needed to understand what actually happened, where, and why.
Production-grade by design
Negligible footprint
The sensor operates with minimal performance overhead (1%-2%) and runs within your existing permissions and access controls.
Self-monitoring
The sensor continuously monitors its own health and its environment’s health. In case the machine is resource constrained and there’s a risk for any degradation, the sensor shuts down gracefully without impacting your application.
Never sending source code
The sensor collects runtime metadata only. It does not send your source code back.
Secure by default
PII is scrubbed automatically with configurable rules. Hud is SOC2 Type II, ISO 27001, and GDPR compliant.
See Hud Runtime Sensor in action
FAQs
How can I see how my code behaves in production?
Most teams rely on APM dashboards and log aggregation, which show endpoint-level metrics like response times and error rates. Going deeper usually means adding custom log statements, defining tracing spans, or building dashboards manually.
Runtime code sensors like Hud take a different approach. It automatically captures execution frequency, latency distributions, error rates, and behavioral trends for every function, endpoint, and queue consumer, with no instrumentation or configuration. The data surfaces in the IDE, the web app, and through an MCP server for AI coding agents.
How do I know which function is causing a performance issue?
A common starting point is APM traces, which show high-level spans but typically lack function-level granularity. When that’s not enough, engineers add targeted logs, redeploy, and wait for the issue to reproduce, a cycle that can stretch over days in complex systems. Profilers offer function-level timing but are better suited for targeted investigations than continuous monitoring.
A newer category of tools: runtime intelligence, run continuously alongside application code and track every function’s execution time in production with minimal overhead. When a degradation occurs, they capture the call flow, the responsible function, and surrounding context automatically.
How do I know if a function is even being used in production?
Without runtime data, teams typically rely on code analysis, or institutional knowledge to guess whether a function is still active. This makes refactoring risky: removing or changing code that turns out to be critical can cause production incidents, so legacy code tends to accumulate.
Tools like Hud track every function invocation. If a function runs once a day or millions of times, you see the real number. If it never runs, that’s visible too.
How do I know if a deployment caused a regression?
Post-deploy regressions are often discovered through user complaints, on-call alerts, or manual metric checks, sometimes hours after the code went live. Even with canary deployments, pinpointing which change caused a degradation typically requires correlating timestamps across tools and investigating multiple recent commits.
Some tools address this by automatically detecting new deployments and comparing behavior against the previous baseline. Runtime code sensors like Hud, for example, surface regressions within minutes, tied to the specific deployment and the function that changed behavior, for both standard rollouts and canary deployments.
How can I debug without adding logs and redeploying?
The traditional cycle is familiar: add log statements, redeploy, wait for the issue to reproduce, read the logs, realize you need more context, and repeat. Each iteration takes time, and in production environments where issues are intermittent, the full cycle can stretch over days.
One alternative is runtime code sensors, which run continuously alongside application code and already have execution data when an issue occurs. Tools like Hud, for example, automatically capture deep forensic context at the moment of issues, including the originating function, call flow, inputs, and resource metrics, reducing the need to reproduce and re-instrument.
Trusted by engineers.
Human & artificial alike.
Hud runs on millions of services across massive production environments, with negligible overhead.