Converts one Loki entry to a normalized LogRecord: the line becomes body; structured
metadata and parsed labels become attributes (the SDK's own keys are mapped back to
severity, traceId, spanId, traceFlags, observedTimestamp); stream labels become
resource (service_name → service.name, deployment_environment →
deployment.environment, …).
Converts one Loki entry to a normalized LogRecord: the line becomes
body; structured metadata and parsed labels becomeattributes(the SDK's own keys are mapped back toseverity,traceId,spanId,traceFlags,observedTimestamp); stream labels becomeresource(service_name→service.name,deployment_environment→deployment.environment, …).