Expand description
Install identity and the constant half of the batch envelope.
Structs§
- Install
Id - The on-disk install identity.
- Telemetry
State - Per-machine telemetry bookkeeping. Never contains anything about the user’s work — only what this crate needs to avoid re-reporting an install and to rate-limit its own flushes.
Constants§
- ROTATION_
DAYS - How long an install id may live before it is replaced.
Functions§
- current_
arch - The CPU family, mapped onto the closed whitelist.
- current_
libc - The libc this binary was compiled against.
- current_
os - The OS family this binary is running on, mapped onto the closed whitelist.
- current_
tty - Whether both stdin and stdout are terminals.
- now_
rfc3339 - RFC3339 UTC at second precision. The only timestamp this crate produces, and it is per-batch: individual events carry no timestamps at all.
- read_
or_ create_ install_ id - Read the install id, minting a fresh one if it is missing, unreadable,
not a UUID, or older than
ROTATION_DAYS. - read_
state - Read
state.json, or a default when it is missing or unreadable. - reduce_
panic_ site - Reduce a panic location to something that is safe to send.
- release_
build_ sha - The build sha of a release-CI binary, or
None. - short_
hex_ sha - Reduce a full sha to the first 12 lowercase hex characters, rejecting anything that is not a sha.
- write_
state - Write
state.json.