In emit_batcher, if the tokio feature is enabled then we should always check if we're on one of its threads before running blocking work. The only blocking should be in blocking_flush, which is intended to run at the end of the main function, but to make sure we're good async citizens, we should be trying to avoid blocking up the runtime, or at least informing it before we do.
In
emit_batcher
, if thetokio
feature is enabled then we should always check if we're on one of its threads before running blocking work. The only blocking should be inblocking_flush
, which is intended to run at the end of themain
function, but to make sure we're good async citizens, we should be trying to avoid blocking up the runtime, or at least informing it before we do.