feat(Observability): add zero-dep hooks, HookLease, ContextSnapshot, bounded metrics/tracing, and snapshot exporter (S-OBSERVABILITY-01..04)
This commit is contained in:
1 parent
809b6f548d
commit
fe99051ded
16 files changed
+3545
No files matched your search
@@ -0,0 +1,11 @@
|
||||
#include <Void/Observability/Hooks.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
Void::Observability::HookSlot slot;
|
||||
Void::Observability::kNullObservationHooks.emit_metric(
|
||||
Void::Observability::MetricPoint{.name = "probe", .integer_delta = 1});
|
||||
slot.invoke_metric(
|
||||
Void::Observability::MetricPoint{.name = "probe", .integer_delta = 1});
|
||||
return slot.active() ? 1 : 0;
|
||||
}
|
||||
Reference in new issue
Block a user