[Feature Req] OTEL log records always export as info
russjeffery opened 路
Every console.log, .warn, .etc.. line a Worker writes reaches the exporter with severity_number = 9 (INFO) and also prefixes the message/body with the console level. For example, console.error('something bad') becomes info:'ERROR something bad'.
`log_message` in crates/celld/otlp.rs hardcodes `field_varint(&mut out, 2, 9); // SEVERITY_NUMBER_INFO`.
What I'd expect is to follow standard OTEL severity mapping:
Method | severity_number | severity_text -- | -- | -- console.debug | 5 | DEBUG console.log, console.info | 9 | INFO console.warn | 13 | WARN console.error | 17 | ERROR
- BA
Thanks, this is now implemented and will be released in the next version
- RU
Thank you!
bartlomiejureferenced 9ff48569e312last month on GitHub
bartlomiejureferenced f2bf648663a6last month on GitHub
ewhauserreferenced this in Merge upstream celld v0.6.1 #90last month on GitHub