emit-rs / emit

Developer-first diagnostics for Rust applications
Apache License 2.0
123 stars 2 forks source link

Emitter wrapping #90

Closed KodrAus closed 1 month ago

KodrAus commented 1 month ago

This PR generalizes the pattern we were using for wrapping emitters in filters with a new wrapping API. It lets you wrap emitters in middleware that can transform and filter along the way.

KodrAus commented 1 month ago

It also maps the well-known err property in emit_otlp to exception.message.