bc62b3da76
* add metrics for composer threadgate * add metrics to the in-thread version * fix type error
* add metrics for composer threadgate * add metrics to the in-thread version * fix type error