Skip to main content

diagnostics_log_encoding/
constants.rs

1// Copyright 2024 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5pub(crate) const PID: &str = "pid";
6pub(crate) const TID: &str = "tid";
7pub(crate) const TAG: &str = "tag";
8pub(crate) const NUM_DROPPED: &str = "num_dropped";
9pub(crate) const MESSAGE: &str = "message";
10pub(crate) const FILE: &str = "file";
11pub(crate) const LINE: &str = "line";
12
13/// Argument name for the component moniker in FXT manifest records.
14pub const MONIKER: &str = "moniker";
15/// Argument name for the component URL in FXT manifest records.
16pub const URL: &str = "url";
17/// Rolled out count field for log records provided by the archivist.
18pub const ROLLED_OUT: &str = "rolled_out";
19
20/// Size of the FXT header.
21pub const FXT_HEADER_SIZE: usize = 8;
22
23/// The component URL of the archivist.
24pub const ARCHIVIST_URL: &str = "fuchsia-boot:///archivist#meta/archivist.cm";
25
26/// The tracing format supports many types of records, we're sneaking in as a log message.
27pub const TRACING_FORMAT_LOG_RECORD_TYPE: u8 = 9;