Skip to main content

emit_any

Function emit_any 

Source
pub(crate) fn emit_any(j: &mut Json, bytes: &[u8])
Expand description

Render a protobuf-encoded AnyValue — the attribute ser column, and a log body that was not a string — as the JSON it describes.

A decode failure becomes null. These bytes were written by this process from an already-decoded message, so a failure here means the block is damaged, and one damaged value must not take the whole response with it.