pub trait CaptureEntityResolver {
// Required method
fn resolve_container_entity_for_live_pid(
&self,
process_id: u32,
) -> Option<EntityId>;
}Expand description
Resolves live process IDs observed from local socket credentials to workload entities.
This is intentionally narrower than WorkloadProvider: callers should only use it for current PIDs obtained
directly from the local operating system. Callers that defer processing should retain the returned entity ID rather
than resolve the PID again later. This isn’t a general-purpose historical PID lookup API.
Required Methods§
Sourcefn resolve_container_entity_for_live_pid(
&self,
process_id: u32,
) -> Option<EntityId>
fn resolve_container_entity_for_live_pid( &self, process_id: u32, ) -> Option<EntityId>
Resolves a live process ID to the container entity that owns it, if known.