MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / HookLogLayer

Class HookLogLayer

atomic-agent/src/hook_log.rs:91–91  ·  view source on GitHub ↗

Capture synchronously, then persist outside the subscriber callback. This avoids blocking/re-entering the async service runtime from tracing's on_event.

Source from the content-addressed store, hash-verified

89// Capture synchronously, then persist outside the subscriber callback. This
90// avoids blocking/re-entering the async service runtime from tracing's on_event.
91struct HookLogLayer(Arc<Mutex<Option<SessionLogEvent>>>);
92impl<S: Subscriber> Layer<S> for HookLogLayer {
93 fn on_event(&self, event: &Event<'_>, _: Context<'_, S>) {
94 if event.metadata().target() != "atomic::hook" {

Callers 1

record_resultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected