📝 Simple log data structure for transmission over Rednet.
This is the wire format for sending log records from clients to collectors. Each log includes severity, context, and rich metadata for analysis.
const log: RednetLog = { body: "User login successful", severity: SeverityNumber.INFO, attributes: { "user.id": "123", "login.method": "password" }, timestamp: os.epoch("utc"), resource: { "service.name": "auth-service" }, scope: { name: "auth-service", version: "2.0.0" }}; Copy
const log: RednetLog = { body: "User login successful", severity: SeverityNumber.INFO, attributes: { "user.id": "123", "login.method": "password" }, timestamp: os.epoch("utc"), resource: { "service.name": "auth-service" }, scope: { name: "auth-service", version: "2.0.0" }};
Key-value attributes providing context
The main log message or structured data
Resource attributes identifying the source
Instrumentation scope information
Name of the instrumentation scope
Version of the instrumentation scope
Severity level using OpenTelemetry standard numbers
Timestamp in nanoseconds since Unix epoch
📝 Simple log data structure for transmission over Rednet.
This is the wire format for sending log records from clients to collectors. Each log includes severity, context, and rich metadata for analysis.
Example