denoland/celldPublic

self-hosted, distributed Durable Objects

[Feature Req] OTEL log records always export as info

RU

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

  1. BA

    Thanks, this is now implemented and will be released in the next version

  2. bartlomiejuclosedlast month on GitHub

  3. RU
    Author

    Thank you!

  4. bartlomiejureferenced 9ff48569e312last month on GitHub

  5. bartlomiejureferenced f2bf648663a6last month on GitHub

  6. ewhauserreferenced this in Merge upstream celld v0.6.1 #90last month on GitHub