In this article
Normalized severity must follow a documented source mapping; missing severity is not a verified error.
The diagnostic situation
A serving stack combines Python application logs, a proxy access log and a native runtime logger. Their level names resemble each other but represent different events. A collector maps an unfamiliar level to the most severe category, and an alert reports a sudden inference failure burst after a library upgrade. The service behavior may be unchanged.
Why the observation changes meaning
The OpenTelemetry log model distinguishes original SeverityText from normalized SeverityNumber. Mapping is based on the source level meaning, not alphabetical order or arbitrary integer comparison across libraries. Source formats without severity may omit it. Unknown severity and an explicitly erroneous event are different cases; the latter can still be mapped according to the documented error semantics.
Define the instrumentation contract
Inventory the log producers and their effective formats. For each, define mappings for known levels, missing levels and unsupported values. Preserve safe source identity with the normalized record. Keep an explicit error outcome field where the application defines one, rather than inferring every request result from a log level. Multiple diagnostic lines can describe the same operation.
A bounded verification procedure
Build synthetic records representing ordinary progress, a known warning, a genuine operation failure and an unfamiliar source level. Pass them through the configured parser and destination. Compare original level text, normalized severity and resulting alert classification. Include records that have no severity concept at all. A missing level must follow the declared mapping rather than accidentally taking an exception default.
Evidence required for acceptance
Acceptance needs a producer-specific mapping table, parser revision and exported fixture records. Verify both the dashboard filter and the alert query. Confirm that changing capitalization or adding a new library does not silently turn ordinary entries into request failures. Preserve an observable unmapped category or diagnostic counter so unsupported values can be investigated without losing their source provenance.
Failure cases and limits
Correct severity mapping does not make a log stream a complete request ledger. A failed request can emit several error records, and sampling can remove others. Request-level availability still requires a defined operation population and outcomes. This protocol validates semantic normalization at a specific logging boundary; it does not establish application correctness or a universal severity vocabulary across all runtime components.
Primary references and related reading
Normalized severity must follow a documented source mapping; missing severity is not a verified error. OpenTelemetry logs data model; OpenTelemetry common attribute specification.
The proposed investigation of log severity source mapping is not an executed deployment benchmark. Related reading: Terminal request records: reconcile stream, usage and logs; A successful stream for an SLO: define the event and denominator.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.