The Archivist consumes lifecycle events to ingest diagnostics data. This document explains what these events are.
Archivist consumption of lifecycle events
The archivist ingests events from the component framework. The following diagram shows a very high level overview of the three lifecycle events (started, directory_ready and stopped) the archivist is interested in.
The archivist consumes the following lifecycle events under component manager through
- Directory ready: The archivist listens for directory ready of the
out/diagnosticsdirectory. When the component starts serving this directory, the component manager sends this event to the Archivist.
- Capability requested: The archivist receives
Capability requestedevents for connections to
fuchsia.inspect.InspectSinkwhich allows it to attribute Inspect and logs.