I Built an OpenTelemetry Logs Bridge. Encoding Was the Easy Part

Part 2 of Engineering HaloLog: making high-performance telemetry claims reproducible and falsifiable. Part 1 examined what a 23.9 ns logging benchmark does and does not prove.The implementation and measurements discussed here are pinned to otelbridge/v1.0.3. An OpenTelemetry Logs bridge looks like a mapping problem. Message becomes Body. Level maps to Severity. Ordinary fields become Attributes; valid correlation fields can become trace context. Then the bridge calls Emit. That part was straightforward. The difficult part was preserving the contracts that live between the APIs: the context used to ask whether a record is enabled, ownership after a pooled entry is returned, masking precedence
…