Publish all console logs to OpenTelemetry Collector

For people who already use OTEL to collect metrics, traces or logs on Balena devices it would simplify the log collection from multiple services if Balena would offer a way of publishing console logs from all services to the OTEL collector running on the device. Ideally with some settings to specify from which service the logs should be exported and from what severity level.

Regarding the last point: Balena doesn’t know the severity level or other meta data for a log entry by default. The severity level could probably be guessed quite accurately and overall this would serve as a good catch all solution, while leaving it open to the user to manually instrumentalise a specific service if needed.

Ken Bannister: We just updated the experimental collector container to collect logs. Let us know how that works for you.