(entry: LogEntry): ReadonlyArray<string>Decode lineage segment keys from a captured entry's annotations.
Reads annotation key LogAnnotationKeys.lineage only (JSON array of Tag.key segments).
export const const lineage: (
entry: LogEntry
) => ReadonlyArray<string>
Decode lineage segment keys from a captured entry's annotations.
Reads annotation key
LogAnnotationKeys.lineage
only (JSON array of Tag.key segments).
lineage = (entry: LogEntry(parameter) entry: {
date: string;
level: LogLevel;
message: string;
cause: string;
annotations: Readonly<Record<string, string>>;
spans: ReadonlyArray<string>;
}
entry: LogEntry): interface ReadonlyArray<T>ReadonlyArray<string> =>
const parseLineageJson: (
raw: string | undefined
) => ReadonlyArray<string>
parseLineageJson(entry: LogEntry(parameter) entry: {
date: string;
level: LogLevel;
message: string;
cause: string;
annotations: Readonly<Record<string, string>>;
spans: ReadonlyArray<string>;
}
entry.LogEntry.annotations: Readonly<Record<string, string>>annotations[const LogAnnotationKeys: {
readonly node: "node";
readonly lineage: "hyperlink-ts/lineage";
readonly lineId: "hyperlink-ts/lineId";
}
Standard annotation key names on
LogEntry.annotations
.
| Property | Annotation key (field name) | Value is |
|----------|----------------------------|----------|
| node | "node" | node log key (Node.Tag.key) |
| lineage | "hyperlink-ts/lineage" | JSON array of lineage segment keys |
| lineId | "hyperlink-ts/lineId" | Stable id for one published relay line (memo / dedupe) |
Package: hyperlink-ts/LogContext · Source: src/LogContext.ts · See docs/LOGS.md.
LogAnnotationKeys.lineage: "hyperlink-ts/lineage"Annotation key whose value is JSON lineage segment keys.
lineage]);