https://github.com/open-telemetry/opentelemetry-rust/pull/2374 did this for Logs. Need to replicate this in other places.